Files
PrivateProject/陈海波/投标平台/qiyeduan/src/application/logic/page/Index.logic.ts
2024-09-27 01:28:38 +08:00

72 lines
1.6 KiB
TypeScript

import { BaseLogic, Methods } from "@logic/Base.logic";
import { Inject } from "@ann/Ioc.annotation";
import { UserServiceImpl } from "@impl/User.service.impl";
export class IndexLogic extends BaseLogic implements Methods {
@Inject()
public readonly UserServiceImpl!: UserServiceImpl;
public info = {
"id" : 0,
"username" : "",
"role_id" : 0,
"status" : 0,
"company_status" : 0,
"reg_ip" : {
"ip" : "",
"country" : "",
"province" : "",
"city" : "",
"county" : "",
"isp" : "",
"area" : ""
},
"login_ip" : null,
"login_time" : null,
"last_login_ip" : {
"ip" : "",
"country" : "",
"province" : "",
"city" : "",
"county" : "",
"isp" : "",
"area" : ""
},
"last_login_time" : null,
"delete_time" : 0,
"create_time" : 0,
"update_time" : 0,
"route" : [],
"user" : {
"id" : 0,
"full_name" : "",
"cellphone" : "",
"update_time" : 0
},
"role_info" : {
"role" : {
"id" : 0,
"title" : ""
},
"department" : {
"id" : 0,
"title" : ""
}
}
}
constructor(point: any) {
super();
this.VueApp = point;
}
public async StartUp(): Promise<void> {
this.userGetUserInfo()
}
public async userGetUserInfo() {
let res = await this.UserServiceImpl.userGetUserInfo({})
this.info = res
}
}