@liujitcn/kratos-taro-app-core 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/dist/build.mjs +38 -0
- package/dist/runner.mjs +321 -0
- package/package.json +51 -0
- package/src/api/base/config.ts +20 -0
- package/src/api/base/file.ts +57 -0
- package/src/api/base/login.ts +87 -0
- package/src/api/base/menu.ts +17 -0
- package/src/api/base/oauth.ts +149 -0
- package/src/api/system/auth.ts +54 -0
- package/src/api/system/base_area.ts +34 -0
- package/src/api/system/base_dict.ts +24 -0
- package/src/bootstrap.ts +32 -0
- package/src/build.ts +24 -0
- package/src/components/BootstrapStatus.scss +28 -0
- package/src/components/BootstrapStatus.tsx +25 -0
- package/src/components/KratosPageFrame.scss +41 -0
- package/src/components/KratosPageFrame.tsx +51 -0
- package/src/components/KratosTabBar.scss +34 -0
- package/src/components/KratosTabBar.tsx +45 -0
- package/src/index.ts +36 -0
- package/src/module.ts +63 -0
- package/src/navigation-pattern.d.mts +2 -0
- package/src/navigation-pattern.mjs +29 -0
- package/src/navigation-tree.d.mts +12 -0
- package/src/navigation-tree.mjs +45 -0
- package/src/navigation.ts +336 -0
- package/src/pages.ts +21 -0
- package/src/rpc/base/v1/config.ts +34 -0
- package/src/rpc/base/v1/file.ts +66 -0
- package/src/rpc/base/v1/login.ts +128 -0
- package/src/rpc/base/v1/mcp.ts +20 -0
- package/src/rpc/base/v1/oauth.ts +199 -0
- package/src/rpc/base/v1/sse.ts +22 -0
- package/src/rpc/common/v1/common.ts +71 -0
- package/src/rpc/common/v1/enum.ts +71 -0
- package/src/rpc/common/v1/types.ts +77 -0
- package/src/rpc/google/protobuf/empty.ts +19 -0
- package/src/rpc/google/protobuf/wrappers.ts +124 -0
- package/src/rpc/system/app/v1/auth.ts +54 -0
- package/src/rpc/system/app/v1/base_area.ts +24 -0
- package/src/rpc/system/app/v1/base_dict.ts +37 -0
- package/src/rpc/system/app/v1/base_menu.ts +61 -0
- package/src/rpc/system/common/v1/enum.ts +80 -0
- package/src/runner.ts +390 -0
- package/src/static/images/avatar.png +0 -0
- package/src/static/images/center_bg.png +0 -0
- package/src/static/images/logo_icon.png +0 -0
- package/src/static/images/navigator_bg.png +0 -0
- package/src/static/tabs/home_default.png +0 -0
- package/src/static/tabs/home_selected.png +0 -0
- package/src/static/tabs/user_default.png +0 -0
- package/src/static/tabs/user_selected.png +0 -0
- package/src/stores/index.ts +2 -0
- package/src/stores/setting.ts +43 -0
- package/src/stores/user.ts +152 -0
- package/src/styles/base.scss +45 -0
- package/src/types/assets.d.ts +9 -0
- package/src/utils/auth.ts +55 -0
- package/src/utils/file.ts +48 -0
- package/src/utils/http.ts +262 -0
- package/src/utils/index.ts +35 -0
- package/src/utils/navigation.ts +72 -0
- package/src/utils/passwordCrypto.ts +257 -0
- package/src/views/pages/index/index.scss +137 -0
- package/src/views/pages/index/index.tsx +74 -0
- package/src/views/pages/login/components/BehaviorCaptcha.h5.tsx +46 -0
- package/src/views/pages/login/components/BehaviorCaptcha.tsx +6 -0
- package/src/views/pages/login/components/BehaviorCaptcha.weapp.tsx +6 -0
- package/src/views/pages/login/components/types.ts +32 -0
- package/src/views/pages/login/login.scss +310 -0
- package/src/views/pages/login/login.tsx +493 -0
- package/src/views/pages/login/protocal.scss +84 -0
- package/src/views/pages/login/protocal.tsx +73 -0
- package/src/views/pages/status/index.tsx +42 -0
- package/src/views/pages/webview/webview.scss +43 -0
- package/src/views/pages/webview/webview.tsx +41 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: base/v1/oauth.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import type { PasswordCrypto } from "../../common/v1/types";
|
|
9
|
+
import type { Empty } from "../../google/protobuf/empty";
|
|
10
|
+
|
|
11
|
+
/** 个人中心三方账号绑定列表查询条件 */
|
|
12
|
+
export interface ListOauthBindingRequest {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** 个人中心三方账号绑定列表响应 */
|
|
16
|
+
export interface ListOauthBindingResponse {
|
|
17
|
+
/** 三方账号绑定列表 */
|
|
18
|
+
bindings: OauthBinding[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** 三方登录方式查询条件 */
|
|
22
|
+
export interface ListOauthProviderRequest {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** 三方登录方式查询结果 */
|
|
26
|
+
export interface ListOauthProviderResponse {
|
|
27
|
+
/** 三方登录方式列表 */
|
|
28
|
+
providers: OauthProvider[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** 三方登录授权地址创建条件 */
|
|
32
|
+
export interface CreateOauthAuthorizationRequest {
|
|
33
|
+
/** 登录方式标识 */
|
|
34
|
+
provider: string;
|
|
35
|
+
/** 三方登录完成后的前端接收地址 */
|
|
36
|
+
redirect_url: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** 三方登录授权地址创建结果 */
|
|
40
|
+
export interface CreateOauthAuthorizationResponse {
|
|
41
|
+
/** 三方授权地址 */
|
|
42
|
+
authorization_url: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** 个人中心三方账号绑定授权地址创建条件 */
|
|
46
|
+
export interface CreateOauthBindingAuthorizationRequest {
|
|
47
|
+
/** 登录方式标识 */
|
|
48
|
+
provider: string;
|
|
49
|
+
/** 绑定完成后回跳地址 */
|
|
50
|
+
redirect_url: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** 个人中心三方账号绑定授权地址创建响应 */
|
|
54
|
+
export interface CreateOauthBindingAuthorizationResponse {
|
|
55
|
+
/** 三方授权地址 */
|
|
56
|
+
authorization_url: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** 三方登录会话创建请求 */
|
|
60
|
+
export interface CreateOauthSessionRequest {
|
|
61
|
+
/** 登录方式标识 */
|
|
62
|
+
provider: string;
|
|
63
|
+
/** 三方授权码 */
|
|
64
|
+
code: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** 绑定已有账号的三方登录会话创建条件 */
|
|
68
|
+
export interface BindOauthSessionRequest {
|
|
69
|
+
/** 登录方式标识 */
|
|
70
|
+
provider: string;
|
|
71
|
+
/** 三方授权码 */
|
|
72
|
+
code: string;
|
|
73
|
+
/** 租户编码 */
|
|
74
|
+
tenant_code: string;
|
|
75
|
+
/** 用户名 */
|
|
76
|
+
user_name: string;
|
|
77
|
+
/** 用户密码 */
|
|
78
|
+
password:
|
|
79
|
+
| PasswordCrypto
|
|
80
|
+
| undefined;
|
|
81
|
+
/** 验证码 */
|
|
82
|
+
captcha_code: string;
|
|
83
|
+
/** 验证码Id */
|
|
84
|
+
captcha_id: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** 三方登录会话创建响应 */
|
|
88
|
+
export interface CreateOauthSessionResponse {
|
|
89
|
+
/** 访问令牌,必选项。 */
|
|
90
|
+
access_token: string;
|
|
91
|
+
/** 更新令牌,用来获取下一次的访问令牌,可选项。 */
|
|
92
|
+
refresh_token: string;
|
|
93
|
+
/** 令牌类型,该值大小写不敏感,必选项,可以是bearer类型或mac类型。 */
|
|
94
|
+
token_type: string;
|
|
95
|
+
/** 令牌有效时间,单位为秒。 */
|
|
96
|
+
expires_in: number;
|
|
97
|
+
/** 是否需要绑定已有账号。 */
|
|
98
|
+
binding_required: boolean;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** 三方登录回调请求 */
|
|
102
|
+
export interface HandleOauthCallbackRequest {
|
|
103
|
+
/** 登录方式标识 */
|
|
104
|
+
provider: string;
|
|
105
|
+
/** 三方授权码 */
|
|
106
|
+
code: string;
|
|
107
|
+
/** 授权状态码 */
|
|
108
|
+
state: string;
|
|
109
|
+
/** 三方错误码 */
|
|
110
|
+
error: string;
|
|
111
|
+
/** 三方错误描述 */
|
|
112
|
+
error_description: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** 三方登录回调结果 */
|
|
116
|
+
export interface HandleOauthCallbackResponse {
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** 三方登录票据兑换请求 */
|
|
120
|
+
export interface ExchangeOauthTicketRequest {
|
|
121
|
+
/** 三方登录票据 */
|
|
122
|
+
ticket: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** 三方登录票据兑换结果 */
|
|
126
|
+
export interface ExchangeOauthTicketResponse {
|
|
127
|
+
/** 访问令牌,必选项。 */
|
|
128
|
+
access_token: string;
|
|
129
|
+
/** 更新令牌,用来获取下一次的访问令牌,可选项。 */
|
|
130
|
+
refresh_token: string;
|
|
131
|
+
/** 令牌类型,该值大小写不敏感,必选项,可以是bearer类型或mac类型。 */
|
|
132
|
+
token_type: string;
|
|
133
|
+
/** 令牌有效时间,单位为秒。 */
|
|
134
|
+
expires_in: number;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/** 个人中心三方账号绑定回调请求 */
|
|
138
|
+
export interface HandleOauthBindingCallbackRequest {
|
|
139
|
+
/** 登录方式标识 */
|
|
140
|
+
provider: string;
|
|
141
|
+
/** 三方授权码 */
|
|
142
|
+
code: string;
|
|
143
|
+
/** 授权状态码 */
|
|
144
|
+
state: string;
|
|
145
|
+
/** 三方错误码 */
|
|
146
|
+
error: string;
|
|
147
|
+
/** 三方错误描述 */
|
|
148
|
+
error_description: string;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** 个人中心三方账号绑定回调响应 */
|
|
152
|
+
export interface HandleOauthBindingCallbackResponse {
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** 个人中心三方账号解绑条件 */
|
|
156
|
+
export interface UnbindOauthAccountRequest {
|
|
157
|
+
/** 登录方式标识 */
|
|
158
|
+
provider: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/** 三方登录方式信息 */
|
|
162
|
+
export interface OauthProvider {
|
|
163
|
+
/** 登录方式标识 */
|
|
164
|
+
provider: string;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/** 个人中心三方账号绑定信息 */
|
|
168
|
+
export interface OauthBinding {
|
|
169
|
+
/** 登录方式标识 */
|
|
170
|
+
provider: string;
|
|
171
|
+
/** 是否已绑定 */
|
|
172
|
+
bound: boolean;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/** Base三方登录公共服务 */
|
|
176
|
+
export interface OauthService {
|
|
177
|
+
/** 查询个人中心三方账号绑定列表 */
|
|
178
|
+
ListOauthBinding(request: ListOauthBindingRequest): Promise<ListOauthBindingResponse>;
|
|
179
|
+
/** 查询三方登录方式 */
|
|
180
|
+
ListOauthProvider(request: ListOauthProviderRequest): Promise<ListOauthProviderResponse>;
|
|
181
|
+
/** 创建三方登录授权地址 */
|
|
182
|
+
CreateOauthAuthorization(request: CreateOauthAuthorizationRequest): Promise<CreateOauthAuthorizationResponse>;
|
|
183
|
+
/** 创建个人中心三方账号绑定授权地址 */
|
|
184
|
+
CreateOauthBindingAuthorization(
|
|
185
|
+
request: CreateOauthBindingAuthorizationRequest,
|
|
186
|
+
): Promise<CreateOauthBindingAuthorizationResponse>;
|
|
187
|
+
/** 创建三方登录会话 */
|
|
188
|
+
CreateOauthSession(request: CreateOauthSessionRequest): Promise<CreateOauthSessionResponse>;
|
|
189
|
+
/** 绑定已有账号并创建三方登录会话 */
|
|
190
|
+
BindOauthSession(request: BindOauthSessionRequest): Promise<CreateOauthSessionResponse>;
|
|
191
|
+
/** 处理三方登录回调 */
|
|
192
|
+
HandleOauthCallback(request: HandleOauthCallbackRequest): Promise<HandleOauthCallbackResponse>;
|
|
193
|
+
/** 兑换三方登录票据 */
|
|
194
|
+
ExchangeOauthTicket(request: ExchangeOauthTicketRequest): Promise<ExchangeOauthTicketResponse>;
|
|
195
|
+
/** 处理个人中心三方账号绑定回调 */
|
|
196
|
+
HandleOauthBindingCallback(request: HandleOauthBindingCallbackRequest): Promise<HandleOauthBindingCallbackResponse>;
|
|
197
|
+
/** 解绑个人中心三方账号 */
|
|
198
|
+
UnbindOauthAccount(request: UnbindOauthAccountRequest): Promise<Empty>;
|
|
199
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: base/v1/sse.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import type { Empty } from "../../google/protobuf/empty";
|
|
9
|
+
|
|
10
|
+
/** SSE订阅请求参数 */
|
|
11
|
+
export interface SubscribeSseRequest {
|
|
12
|
+
/** SSE流标识 */
|
|
13
|
+
stream: string;
|
|
14
|
+
/** SSE通道ID */
|
|
15
|
+
channel_id?: string | undefined;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Base SSE服务 */
|
|
19
|
+
export interface SseService {
|
|
20
|
+
/** 订阅SSE事件流 */
|
|
21
|
+
SubscribeSse(request: SubscribeSseRequest): Promise<Empty>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: common/v1/common.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
|
|
9
|
+
/** 状态设置请求参数 */
|
|
10
|
+
export interface SetStatusRequest {
|
|
11
|
+
/** 主键id */
|
|
12
|
+
id: number;
|
|
13
|
+
/** 状态 */
|
|
14
|
+
status: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** 树形选项响应 */
|
|
18
|
+
export interface TreeOptionResponse {
|
|
19
|
+
/** 选项列表 */
|
|
20
|
+
list: TreeOptionResponse_Option[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** 树形选项 */
|
|
24
|
+
export interface TreeOptionResponse_Option {
|
|
25
|
+
/** 选项名 */
|
|
26
|
+
label: string;
|
|
27
|
+
/** 选项值 */
|
|
28
|
+
value: number;
|
|
29
|
+
/** 是否禁用 */
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
/** 是否存在子节点 */
|
|
32
|
+
has_children: boolean;
|
|
33
|
+
/** 子节点树 */
|
|
34
|
+
children: TreeOptionResponse_Option[];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** 下拉选项响应 */
|
|
38
|
+
export interface SelectOptionResponse {
|
|
39
|
+
/** 选项列表 */
|
|
40
|
+
list: SelectOptionResponse_Option[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** 下拉选项 */
|
|
44
|
+
export interface SelectOptionResponse_Option {
|
|
45
|
+
/** 选项名 */
|
|
46
|
+
label: string;
|
|
47
|
+
/** 选项值 */
|
|
48
|
+
value: number;
|
|
49
|
+
/** 是否禁用 */
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** 应用树形选项响应 */
|
|
54
|
+
export interface AppTreeOptionResponse {
|
|
55
|
+
/** 选项列表 */
|
|
56
|
+
list: AppTreeOptionResponse_Option[];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** 应用树形选项 */
|
|
60
|
+
export interface AppTreeOptionResponse_Option {
|
|
61
|
+
/** 值。必填 */
|
|
62
|
+
value: string;
|
|
63
|
+
/** 显示文字。必填 */
|
|
64
|
+
text: string;
|
|
65
|
+
/** 是否默认选中。默认值false */
|
|
66
|
+
selected: boolean;
|
|
67
|
+
/** 是否禁用。默认值false */
|
|
68
|
+
disable: boolean;
|
|
69
|
+
/** 子节点树 */
|
|
70
|
+
children: AppTreeOptionResponse_Option[];
|
|
71
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: common/v1/enum.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
|
|
9
|
+
/** 状态 */
|
|
10
|
+
export enum Status {
|
|
11
|
+
UNKNOWN = 0,
|
|
12
|
+
/** ENABLE - 启用 */
|
|
13
|
+
ENABLE = 1,
|
|
14
|
+
/** DISABLE - 禁用 */
|
|
15
|
+
DISABLE = 2,
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** 系统配置位置 */
|
|
19
|
+
export enum BaseConfigSite {
|
|
20
|
+
UNKNOWN_BCS = 0,
|
|
21
|
+
/** SYSTEM - 系统内使用 */
|
|
22
|
+
SYSTEM = 1,
|
|
23
|
+
/** ADMIN - 管理端 */
|
|
24
|
+
ADMIN = 2,
|
|
25
|
+
/** APP - 移动端 */
|
|
26
|
+
APP = 3,
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** 密码加密场景枚举 */
|
|
30
|
+
export enum PasswordCryptoScene {
|
|
31
|
+
/** UNKNOWN_PCS - 未指定密码加密场景 */
|
|
32
|
+
UNKNOWN_PCS = 0,
|
|
33
|
+
/** LOGIN - 登录密码加密场景 */
|
|
34
|
+
LOGIN = 1,
|
|
35
|
+
/** CREATE_BASE_USER - 新增后台用户密码加密场景 */
|
|
36
|
+
CREATE_BASE_USER = 2,
|
|
37
|
+
/** RESET_BASE_USER_PASSWORD - 重置后台用户密码加密场景 */
|
|
38
|
+
RESET_BASE_USER_PASSWORD = 3,
|
|
39
|
+
/** UPDATE_USER_PASSWORD - 个人修改密码加密场景 */
|
|
40
|
+
UPDATE_USER_PASSWORD = 4,
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** AI 助手消息状态 */
|
|
44
|
+
export enum AiMessageStatus {
|
|
45
|
+
/** UNKNOWN_AAMS - 未知AI助手消息状态 */
|
|
46
|
+
UNKNOWN_AAMS = 0,
|
|
47
|
+
/** GENERATING_AAMS - 生成中 */
|
|
48
|
+
GENERATING_AAMS = 1,
|
|
49
|
+
/** SUCCESS_AAMS - 成功 */
|
|
50
|
+
SUCCESS_AAMS = 2,
|
|
51
|
+
/** FAILED_AAMS - 失败 */
|
|
52
|
+
FAILED_AAMS = 3,
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** 支付通知资源类型 */
|
|
56
|
+
export enum ResourceType {
|
|
57
|
+
/** TRANSACTION - 支付 */
|
|
58
|
+
TRANSACTION = 0,
|
|
59
|
+
/** REFUND - 退款 */
|
|
60
|
+
REFUND = 1,
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** 终端类型 */
|
|
64
|
+
export enum Terminal {
|
|
65
|
+
/** TERMINAL_UNSPECIFIED - 未知终端 */
|
|
66
|
+
TERMINAL_UNSPECIFIED = 0,
|
|
67
|
+
/** TERMINAL_APP - 移动端 */
|
|
68
|
+
TERMINAL_APP = 1,
|
|
69
|
+
/** TERMINAL_ADMIN - 管理端 */
|
|
70
|
+
TERMINAL_ADMIN = 2,
|
|
71
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: common/v1/types.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
|
|
9
|
+
/** double 类型数组包装消息。 */
|
|
10
|
+
export interface DoubleValues {
|
|
11
|
+
/** 值列表。 */
|
|
12
|
+
value: number[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** float 类型数组包装消息。 */
|
|
16
|
+
export interface FloatValues {
|
|
17
|
+
/** 值列表。 */
|
|
18
|
+
value: number[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** int64 类型数组包装消息。 */
|
|
22
|
+
export interface Int64Values {
|
|
23
|
+
/** 值列表。 */
|
|
24
|
+
value: number[];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** uint64 类型数组包装消息。 */
|
|
28
|
+
export interface UInt64Values {
|
|
29
|
+
/** 值列表。 */
|
|
30
|
+
value: number[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** int32 类型数组包装消息。 */
|
|
34
|
+
export interface Int32Values {
|
|
35
|
+
/** 值列表。 */
|
|
36
|
+
value: number[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** uint32 类型数组包装消息。 */
|
|
40
|
+
export interface UInt32Values {
|
|
41
|
+
/** 值列表。 */
|
|
42
|
+
value: number[];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** bool 类型数组包装消息。 */
|
|
46
|
+
export interface BoolValues {
|
|
47
|
+
/** 值列表。 */
|
|
48
|
+
value: boolean[];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** string 类型数组包装消息。 */
|
|
52
|
+
export interface StringValues {
|
|
53
|
+
/** 值列表。 */
|
|
54
|
+
value: string[];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** bytes 类型数组包装消息。 */
|
|
58
|
+
export interface BytesValues {
|
|
59
|
+
/** 值列表。 */
|
|
60
|
+
value: Uint8Array[];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** 密码密文。 */
|
|
64
|
+
export interface PasswordCrypto {
|
|
65
|
+
/** 临时密钥ID */
|
|
66
|
+
key_id: string;
|
|
67
|
+
/** 随机值 */
|
|
68
|
+
nonce: string;
|
|
69
|
+
/** 加密算法 */
|
|
70
|
+
algorithm: string;
|
|
71
|
+
/** 加密后的对称密钥 */
|
|
72
|
+
encrypted_key: string;
|
|
73
|
+
/** 初始化向量 */
|
|
74
|
+
iv: string;
|
|
75
|
+
/** 密码加密数据 */
|
|
76
|
+
ciphertext: string;
|
|
77
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: google/protobuf/empty.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A generic empty message that you can re-use to avoid defining duplicated
|
|
11
|
+
* empty messages in your APIs. A typical example is to use it as the request
|
|
12
|
+
* or the response type of an API method. For instance:
|
|
13
|
+
*
|
|
14
|
+
* service Foo {
|
|
15
|
+
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
export interface Empty {
|
|
19
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: google/protobuf/wrappers.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Wrapper message for `double`.
|
|
11
|
+
*
|
|
12
|
+
* The JSON representation for `DoubleValue` is JSON number.
|
|
13
|
+
*
|
|
14
|
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
|
15
|
+
* has no plan to be removed.
|
|
16
|
+
*/
|
|
17
|
+
export interface DoubleValue {
|
|
18
|
+
/** The double value. */
|
|
19
|
+
value: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Wrapper message for `float`.
|
|
24
|
+
*
|
|
25
|
+
* The JSON representation for `FloatValue` is JSON number.
|
|
26
|
+
*
|
|
27
|
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
|
28
|
+
* has no plan to be removed.
|
|
29
|
+
*/
|
|
30
|
+
export interface FloatValue {
|
|
31
|
+
/** The float value. */
|
|
32
|
+
value: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Wrapper message for `int64`.
|
|
37
|
+
*
|
|
38
|
+
* The JSON representation for `Int64Value` is JSON string.
|
|
39
|
+
*
|
|
40
|
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
|
41
|
+
* has no plan to be removed.
|
|
42
|
+
*/
|
|
43
|
+
export interface Int64Value {
|
|
44
|
+
/** The int64 value. */
|
|
45
|
+
value: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Wrapper message for `uint64`.
|
|
50
|
+
*
|
|
51
|
+
* The JSON representation for `UInt64Value` is JSON string.
|
|
52
|
+
*
|
|
53
|
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
|
54
|
+
* has no plan to be removed.
|
|
55
|
+
*/
|
|
56
|
+
export interface UInt64Value {
|
|
57
|
+
/** The uint64 value. */
|
|
58
|
+
value: number;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Wrapper message for `int32`.
|
|
63
|
+
*
|
|
64
|
+
* The JSON representation for `Int32Value` is JSON number.
|
|
65
|
+
*
|
|
66
|
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
|
67
|
+
* has no plan to be removed.
|
|
68
|
+
*/
|
|
69
|
+
export interface Int32Value {
|
|
70
|
+
/** The int32 value. */
|
|
71
|
+
value: number;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Wrapper message for `uint32`.
|
|
76
|
+
*
|
|
77
|
+
* The JSON representation for `UInt32Value` is JSON number.
|
|
78
|
+
*
|
|
79
|
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
|
80
|
+
* has no plan to be removed.
|
|
81
|
+
*/
|
|
82
|
+
export interface UInt32Value {
|
|
83
|
+
/** The uint32 value. */
|
|
84
|
+
value: number;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Wrapper message for `bool`.
|
|
89
|
+
*
|
|
90
|
+
* The JSON representation for `BoolValue` is JSON `true` and `false`.
|
|
91
|
+
*
|
|
92
|
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
|
93
|
+
* has no plan to be removed.
|
|
94
|
+
*/
|
|
95
|
+
export interface BoolValue {
|
|
96
|
+
/** The bool value. */
|
|
97
|
+
value: boolean;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Wrapper message for `string`.
|
|
102
|
+
*
|
|
103
|
+
* The JSON representation for `StringValue` is JSON string.
|
|
104
|
+
*
|
|
105
|
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
|
106
|
+
* has no plan to be removed.
|
|
107
|
+
*/
|
|
108
|
+
export interface StringValue {
|
|
109
|
+
/** The string value. */
|
|
110
|
+
value: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Wrapper message for `bytes`.
|
|
115
|
+
*
|
|
116
|
+
* The JSON representation for `BytesValue` is JSON string.
|
|
117
|
+
*
|
|
118
|
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
|
119
|
+
* has no plan to be removed.
|
|
120
|
+
*/
|
|
121
|
+
export interface BytesValue {
|
|
122
|
+
/** The bytes value. */
|
|
123
|
+
value: Uint8Array;
|
|
124
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: system/app/v1/auth.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import type { Empty } from "../../../google/protobuf/empty";
|
|
9
|
+
|
|
10
|
+
/** 获取用户资料请求参数 */
|
|
11
|
+
export interface GetUserProfileRequest {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** 用户资料表单 */
|
|
15
|
+
export interface UserProfileForm {
|
|
16
|
+
/** 用户账号 */
|
|
17
|
+
user_name: string;
|
|
18
|
+
/** 用户昵称 */
|
|
19
|
+
nick_name: string;
|
|
20
|
+
/** 性别 */
|
|
21
|
+
gender: number;
|
|
22
|
+
/** 手机号 */
|
|
23
|
+
phone: string;
|
|
24
|
+
/** 头像 */
|
|
25
|
+
avatar: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** 更新用户资料请求参数 */
|
|
29
|
+
export interface UpdateUserProfileRequest {
|
|
30
|
+
/** 用户资料 */
|
|
31
|
+
user_profile: UserProfileForm | undefined;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** 手机号授权请求参数 */
|
|
35
|
+
export interface BindUserPhoneRequest {
|
|
36
|
+
/** 授权信息 */
|
|
37
|
+
code: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** 手机号授权响应 */
|
|
41
|
+
export interface BindUserPhoneResponse {
|
|
42
|
+
/** 手机号 */
|
|
43
|
+
phone: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** App用户认证服务 */
|
|
47
|
+
export interface AuthService {
|
|
48
|
+
/** 获取已经登录的用户的数据 */
|
|
49
|
+
GetUserProfile(request: GetUserProfileRequest): Promise<UserProfileForm>;
|
|
50
|
+
/** 修改个人中心用户信息 */
|
|
51
|
+
UpdateUserProfile(request: UpdateUserProfileRequest): Promise<Empty>;
|
|
52
|
+
/** 手机号授权 */
|
|
53
|
+
BindUserPhone(request: BindUserPhoneRequest): Promise<BindUserPhoneResponse>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: system/app/v1/base_area.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import type { AppTreeOptionResponse_Option } from "../../../common/v1/common";
|
|
9
|
+
|
|
10
|
+
/** 行政区域树形查询条件 */
|
|
11
|
+
export interface TreeBaseAreaRequest {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** 行政区域树形响应 */
|
|
15
|
+
export interface TreeBaseAreaResponse {
|
|
16
|
+
/** 行政区域树形选项 */
|
|
17
|
+
areas: AppTreeOptionResponse_Option[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** App行政区域服务 */
|
|
21
|
+
export interface BaseAreaService {
|
|
22
|
+
/** 查询行政区域树形列表 */
|
|
23
|
+
TreeBaseArea(request: TreeBaseAreaRequest): Promise<TreeBaseAreaResponse>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: system/app/v1/base_dict.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
|
|
9
|
+
/** 查询字典请求参数 */
|
|
10
|
+
export interface GetBaseDictRequest {
|
|
11
|
+
/** 字典编号 */
|
|
12
|
+
code: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** 字典表单 */
|
|
16
|
+
export interface BaseDictForm {
|
|
17
|
+
/** 字典编号 */
|
|
18
|
+
code: string;
|
|
19
|
+
/** 字典名称 */
|
|
20
|
+
name: string;
|
|
21
|
+
/** 字典属性 */
|
|
22
|
+
items: BaseDictForm_DictItem[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** 字典项 */
|
|
26
|
+
export interface BaseDictForm_DictItem {
|
|
27
|
+
/** 字典值 */
|
|
28
|
+
value: string;
|
|
29
|
+
/** 字典项标签 */
|
|
30
|
+
label: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** App字典服务 */
|
|
34
|
+
export interface BaseDictService {
|
|
35
|
+
/** 查询字典 */
|
|
36
|
+
GetBaseDict(request: GetBaseDictRequest): Promise<BaseDictForm>;
|
|
37
|
+
}
|