AccountController.ts
2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import {AxiosResponse, AxiosStatic} from 'axios';
import dayjs,{Dayjs} from 'dayjs';
// region 前端扩展导入包
import {Account} from "lib/src/entity/account/entity/Account";
import {AccountTag} from "lib/src/entity/account/entity/AccountTag";
import {AccountProfile} from "lib/src/entity/account/domain/AccountProfile";
import {Page} from "autumn-vue/lib/core/page/Page";
import {AccountInfo} from "lib/src/entity/account/domain/AccountInfo";
// endregion
/**
* 个人账户(Account) PI接口
* @author gonglei
* @since 2025-10-13 12:18:11
*/
export class AccountController{
/**
*/
static certifyAccount(axios:AxiosStatic, certification: any): Promise<AxiosResponse<Account>> {
return axios.post('account/certifyAccount', certification);
}
/**
* 根据id查询用户分组
* @param groupId
* @return AccountTag
*/
static getAccountGroupById(axios:AxiosStatic, groupId: number): Promise<AxiosResponse<AccountTag>> {
return axios.get('account/getAccountGroupById', {params: {groupId: groupId}});
}
/**
* 查询个人账户信息
* @param account
* @return AccountInfo
*/
static getAccountInfo(axios:AxiosStatic): Promise<AxiosResponse<AccountInfo>> {
return axios.get('account/getAccountInfo');
}
/**
* 根据id查询个人账户
* @param account
* @return AccountProfile
*/
static getAccountProfile(axios:AxiosStatic): Promise<AxiosResponse<AccountProfile>> {
return axios.get('account/getAccountProfile');
}
/**
*/
static getLoginAccount(axios:AxiosStatic): Promise<AxiosResponse<Account>> {
return axios.get('account/getLoginAccount');
}
/**
*/
static updateAccountAvatar(axios:AxiosStatic, accountInfo: any): Promise<AxiosResponse<Account>> {
return axios.post('account/updateAccountAvatar', accountInfo);
}
/**
*/
static updateAccountCityCode(axios:AxiosStatic, cityCode: string): Promise<AxiosResponse<string>> {
return axios.post('account/updateAccountCityCode', null, {params: {cityCode: cityCode}});
}
/**
* 修改个人账户
* @param account
* @return Account
*/
static updateAccountInfo(axios:AxiosStatic, accountInfo: any): Promise<AxiosResponse<Account>> {
return axios.post('account/updateAccountInfo', accountInfo);
}
/**
*/
static updateAccountNickName(axios:AxiosStatic, accountInfo: any): Promise<AxiosResponse<Account>> {
return axios.post('account/updateAccountNickName', accountInfo);
}
// region 前端扩展代码区
// endregion
}