# Interface: UpgradeAttributeParams
• UpgradeAttributeParams()
升级属性 - 请求参数
# Properties
# attributeId
• attributeId: number
要升级的属性id,对应AttachedAttribute中的id AttachedAttribute
Returns: number
# Optional
itemType
• itemType? : number
要升级的物品类型(只有等于0时,才是关联背包中的物品,不传则默认取0)
Returns: number
# itemUid
• itemUid: string
要升级的物品id,对应itemAttributesMap中的key itemAttributesMap
Returns: string
# Methods
# Optional
complete
▸ complete(this
: void, res
: UpgradeAttributeRes | MogsError): void
Inherited from GetUserSignParams.complete
操作完成时(成功或失败),均会调用该回调函数
# 参数:
属性 | 类型 |
---|---|
this | void |
res | UpgradeAttributeRes | MogsError |
# 返回值:
void
# Optional
fail
▸ fail(this
: void, error
: MogsError): void
Inherited from GetUserSignParams.fail
操作失败时,调用该回调函数
# 参数:
属性 | 类型 |
---|---|
this | void |
error | MogsError |
# 返回值:
void
# Optional
success
▸ success(this
: void, res
: UpgradeAttributeRes): void
Inherited from GetUserSignParams.success
操作成功时,调用该回调函数
# 参数:
属性 | 类型 |
---|---|
this | void |
res | UpgradeAttributeRes |
UpgradeAttributeRes
属性 | 类型 | 描述 |
---|---|---|
eventList? | keyof MogsEvent | 当前 Action 所触发的所有事件的列表 |
# 返回值:
void