116 lines
3.0 KiB
TypeScript
116 lines
3.0 KiB
TypeScript
export class EquService {
|
||
/**
|
||
* 获取装备信息
|
||
* GET /Equ/GetEquInfo
|
||
*/
|
||
static async GetEquInfo(equId: number, ueId: string) {
|
||
return await ApiService.Request("get", "/Equ/GetEquInfo", { equId, ueId });
|
||
}
|
||
|
||
/**
|
||
* 获取套装详情
|
||
* GET /Equ/GetEquSuitInfo
|
||
*/
|
||
static async GetEquSuitInfo(suitCode: string) {
|
||
return await ApiService.Request("get", "/Equ/GetEquSuitInfo", { suitCode });
|
||
}
|
||
|
||
/**
|
||
* 绑定操作
|
||
* GET /Equ/EquLock
|
||
*/
|
||
static async EquLock(ueId: string) {
|
||
return await ApiService.Request("get", "/Equ/EquLock", { ueId });
|
||
}
|
||
|
||
/**
|
||
* 获取用户穿戴的装备
|
||
* GET /Equ/GetUserOnEqu
|
||
*/
|
||
static async GetUserOnEqu() {
|
||
return await ApiService.Request("get", "/Equ/GetUserOnEqu");
|
||
}
|
||
|
||
/**
|
||
* 鉴定装备
|
||
* GET /Equ/ApprEqu
|
||
*/
|
||
static async ApprEqu(ueId: string) {
|
||
return await ApiService.Request("get", "/Equ/ApprEqu", { ueId });
|
||
}
|
||
|
||
/**
|
||
* 穿/卸装备
|
||
* GET /Equ/DownOrUpEqu
|
||
*/
|
||
static async DownOrUpEqu(ueId: string, de: string) {
|
||
return await ApiService.Request("get", "/Equ/DownOrUpEqu", { ueId, de });
|
||
}
|
||
|
||
/**
|
||
* 获取可穿戴装备
|
||
* GET /Equ/GetCanOnEqu
|
||
*/
|
||
static async GetCanOnEqu(type: number) {
|
||
return await ApiService.Request("get", "/Equ/GetCanOnEqu", { type });
|
||
}
|
||
|
||
/**
|
||
* 获取激活套装属性
|
||
* GET /Equ/GetUserOnSuitInfo
|
||
*/
|
||
static async GetUserOnSuitInfo(suitCode: string) {
|
||
return await ApiService.Request("get", "/Equ/GetUserOnSuitInfo", { suitCode });
|
||
}
|
||
|
||
/**
|
||
* 获取装备觉醒所需
|
||
* GET /Equ/GetEquAwakenInfo
|
||
*/
|
||
static async GetEquAwakenInfo(ue: string) {
|
||
return await ApiService.Request("get", "/Equ/GetEquAwakenInfo", { ue });
|
||
}
|
||
|
||
/**
|
||
* 觉醒装备
|
||
* GET /Equ/HandleEquAwaken
|
||
* @param type 0重置,1正常觉醒
|
||
*/
|
||
static async HandleEquAwaken(ue: string, type: number) {
|
||
return await ApiService.Request("get", "/Equ/HandleEquAwaken", { ue, type });
|
||
}
|
||
|
||
/**
|
||
* 获取强化信息
|
||
* GET /Equ/GetEquUpInfo
|
||
*/
|
||
static async GetEquUpInfo(ueId: string) {
|
||
return await ApiService.Request("get", "/Equ/GetEquUpInfo", { ueId });
|
||
}
|
||
|
||
/**
|
||
* 强化装备
|
||
* POST /Equ/HandleEquUp
|
||
* @param ueId body
|
||
* @param needs body
|
||
*/
|
||
static async HandleEquUp(ueId: string, needs: string) {
|
||
return await ApiService.Request("post", "/Equ/HandleEquUp", { ueId, needs });
|
||
}
|
||
|
||
/**
|
||
* 获取洗练装备属性
|
||
* GET /Equ/GetEquQualityInfo
|
||
*/
|
||
static async GetEquQualityInfo(ueId: string) {
|
||
return await ApiService.Request("get", "/Equ/GetEquQualityInfo", { ueId });
|
||
}
|
||
|
||
/**
|
||
* 洗练装备
|
||
* GET /Equ/HandleEquQuality
|
||
*/
|
||
static async HandleEquQuality(ueId: string) {
|
||
return await ApiService.Request("get", "/Equ/HandleEquQuality", { ueId });
|
||
}
|
||
} |