后台:军团管理
This commit is contained in:
@@ -225,4 +225,41 @@ export class UpdateGiftCode {
|
||||
if(!isNumber(this.codeLen) || this.codeLen <= 0) return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
export class GuildFormParam {
|
||||
code: string;
|
||||
name: string;
|
||||
notice: string;
|
||||
fund: number;
|
||||
lv: number;
|
||||
equipProduce: number;
|
||||
boss: number;
|
||||
train: number;
|
||||
wishPool: number;
|
||||
store: number;
|
||||
donate: number;
|
||||
|
||||
constructor(obj?: any) {
|
||||
if(obj) {
|
||||
for(let key in obj) {
|
||||
this[key] = obj[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
checkParams() {
|
||||
if(!this.code || !isString(this.code)) return false;
|
||||
if(this.name && !isString(this.name)) return false;
|
||||
if(this.notice && !isString(this.notice)) return false;
|
||||
if(this.fund && !isNumber(this.fund)) return false;
|
||||
if(this.lv && !isNumber(this.lv)) return false;
|
||||
if(this.equipProduce && !isNumber(this.equipProduce)) return false;
|
||||
if(this.boss && !isNumber(this.boss)) return false;
|
||||
if(this.train && !isNumber(this.train)) return false;
|
||||
if(this.wishPool && !isNumber(this.wishPool)) return false;
|
||||
if(this.store && !isNumber(this.store)) return false;
|
||||
if(this.donate && !isNumber(this.donate)) return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,17 @@ export interface SearchEquipParam {
|
||||
id?: number;
|
||||
}
|
||||
|
||||
export interface SearchItemParam {
|
||||
roleId?: string;
|
||||
roleName?: string;
|
||||
id?: number;
|
||||
}
|
||||
|
||||
export interface SearchGuildParam {
|
||||
serverId?: number;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export interface SearchMailParam {
|
||||
createTimeStart?: number;
|
||||
createTimeEnd?: number;
|
||||
|
||||
Reference in New Issue
Block a user