增加环境配置
This commit is contained in:
@@ -11,15 +11,14 @@ export class AuthService {
|
||||
}
|
||||
private constructor(private api = ApiClient.I) {}
|
||||
|
||||
private EP_LOGIN: Endpoint<proto.ProtoMsg.ILoginReq, proto.ProtoMsg.ILoginRsp> = {
|
||||
path: "login",
|
||||
method: "POST",
|
||||
codec: "json",
|
||||
needsAuth: false
|
||||
};
|
||||
|
||||
// 登录
|
||||
public async login(req: proto.ProtoMsg.ILoginReq): Promise<ApiResponse<proto.ProtoMsg.ILoginRsp>> {
|
||||
return this.api.call(this.EP_LOGIN, req);
|
||||
let EP_LOGIN: Endpoint<proto.ProtoMsg.ILoginReq, proto.ProtoMsg.ILoginRsp> = {
|
||||
path: "login",
|
||||
method: "POST",
|
||||
codec: "json",
|
||||
needsAuth: false
|
||||
};
|
||||
return this.api.call(EP_LOGIN, req);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user