Files
new_wms_admin/src/api/interface/login.ts
2025-09-16 16:38:30 +08:00

62 lines
1.6 KiB
TypeScript

// 登录模块
export interface Dept {
id: number;
deptCode: string;
deptName: string;
managerId: null;
}
export namespace Login {
//登录要传的参数
export interface ReqLoginCode {
code: string;
}
//登录返回的参数
interface Dept {
id: number;
deptCode: string;
deptName: string;
managerId: null;
}
export interface ResLogin {
isSuccess: boolean;
message: string;
status: number;
data: {
accessToken: {
token: string;
phpToken: string;
tokenType: string;
refreshToken: string;
expired: string;
};
signedIn: boolean;
userInfo: {
seesionId: string;
ucId: number;
depts: Dept[];
staffId: number;
staff_code: string;
business_code: null;
avatar: null;
closed: number;
createdAt: string;
email: null;
mobile: string;
nickname: string;
roleId: string;
signinAt: string;
updatedAt: string;
companyId: number;
companyName: string;
orgId: number;
supplierId: null;
supplierName: null;
customerId: null;
customerName: null;
identity: number;
};
};
}
}