return use

This commit is contained in:
King Wang 2021-06-20 01:24:31 +08:00
parent 71ff41bc32
commit aa5da74b6a
2 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,7 @@ export async function ApiLogin(call: ApiCall<ReqLogin, ResLogin>) {
let sso = await UserUtil.createSsoToken(user.uid); let sso = await UserUtil.createSsoToken(user.uid);
call.succ({ call.succ({
__ssoToken: sso __ssoToken: sso,
user: user
}) })
} }

View File

@ -1,3 +1,4 @@
import { CurrentUser } from '../../../models/CurrentUser';
import { BaseConf, BaseRequest, BaseResponse } from '../base'; import { BaseConf, BaseRequest, BaseResponse } from '../base';
export interface ReqLogin extends BaseRequest { export interface ReqLogin extends BaseRequest {
@ -7,6 +8,7 @@ export interface ReqLogin extends BaseRequest {
export interface ResLogin extends BaseResponse { export interface ResLogin extends BaseResponse {
__ssoToken: string; __ssoToken: string;
user: CurrentUser;
} }
export const conf: BaseConf = { export const conf: BaseConf = {