atelino-sdk 1.0.2 → 1.0.4
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/dist/client.gen.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/sdk.gen.d.ts +29 -11
- package/dist/sdk.gen.js +46 -14
- package/dist/types.gen.d.ts +151 -31
- package/package.json +1 -1
package/dist/client.gen.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { createClient, createConfig } from './client/index.js';
|
|
3
|
-
export const client = createClient(createConfig({ baseUrl: '
|
|
3
|
+
export const client = createClient(createConfig({ baseUrl: 'http://localhost:8080/' }));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type { AtelinoInternalDtoCreateHitokotoRequest, AtelinoInternalDtoHitokotoResponse, AtelinoInternalDtoResponse, ClientOptions,
|
|
1
|
+
export { deleteApiHitokotoById, getApiHitokoto, getApiHitokotoById, getApiHitokotoList, getApiUserById, type Options, postApiHitokoto, postAuthLogin, postAuthRegister } from './sdk.gen.js';
|
|
2
|
+
export type { AtelinoInternalDtoCreateHitokotoRequest, AtelinoInternalDtoHitokotoResponse, AtelinoInternalDtoLoginRequest, AtelinoInternalDtoRegisterRequest, AtelinoInternalDtoResponse, AtelinoInternalDtoTokenResponse, AtelinoInternalDtoUserResponse, ClientOptions, DeleteApiHitokotoByIdData, DeleteApiHitokotoByIdError, DeleteApiHitokotoByIdErrors, DeleteApiHitokotoByIdResponse, DeleteApiHitokotoByIdResponses, GetApiHitokotoByIdData, GetApiHitokotoByIdError, GetApiHitokotoByIdErrors, GetApiHitokotoByIdResponse, GetApiHitokotoByIdResponses, GetApiHitokotoData, GetApiHitokotoError, GetApiHitokotoErrors, GetApiHitokotoListData, GetApiHitokotoListError, GetApiHitokotoListErrors, GetApiHitokotoListResponse, GetApiHitokotoListResponses, GetApiHitokotoResponse, GetApiHitokotoResponses, GetApiUserByIdData, GetApiUserByIdError, GetApiUserByIdErrors, GetApiUserByIdResponse, GetApiUserByIdResponses, PostApiHitokotoData, PostApiHitokotoError, PostApiHitokotoErrors, PostApiHitokotoResponse, PostApiHitokotoResponses, PostAuthLoginData, PostAuthLoginError, PostAuthLoginErrors, PostAuthLoginResponse, PostAuthLoginResponses, PostAuthRegisterData, PostAuthRegisterError, PostAuthRegisterErrors, PostAuthRegisterResponse, PostAuthRegisterResponses } from './types.gen.js';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
export {
|
|
2
|
+
export { deleteApiHitokotoById, getApiHitokoto, getApiHitokotoById, getApiHitokotoList, getApiUserById, postApiHitokoto, postAuthLogin, postAuthRegister } from './sdk.gen.js';
|
package/dist/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Client, Options as Options2, TDataShape } from './client/index.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DeleteApiHitokotoByIdData, DeleteApiHitokotoByIdErrors, DeleteApiHitokotoByIdResponses, GetApiHitokotoByIdData, GetApiHitokotoByIdErrors, GetApiHitokotoByIdResponses, GetApiHitokotoData, GetApiHitokotoErrors, GetApiHitokotoListData, GetApiHitokotoListErrors, GetApiHitokotoListResponses, GetApiHitokotoResponses, GetApiUserByIdData, GetApiUserByIdErrors, GetApiUserByIdResponses, PostApiHitokotoData, PostApiHitokotoErrors, PostApiHitokotoResponses, PostAuthLoginData, PostAuthLoginErrors, PostAuthLoginResponses, PostAuthRegisterData, PostAuthRegisterErrors, PostAuthRegisterResponses } from './types.gen.js';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -16,30 +16,48 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
16
16
|
/**
|
|
17
17
|
* 随机获取一言
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* 从数据库中随机获取一条一言记录。
|
|
20
20
|
*/
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const getApiHitokoto: <ThrowOnError extends boolean = false>(options?: Options<GetApiHitokotoData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<GetApiHitokotoResponses, GetApiHitokotoErrors, ThrowOnError, "fields">;
|
|
22
22
|
/**
|
|
23
23
|
* 添加一言
|
|
24
24
|
*
|
|
25
|
-
*
|
|
25
|
+
* 创建一条新的一言记录。
|
|
26
26
|
*/
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const postApiHitokoto: <ThrowOnError extends boolean = false>(options: Options<PostApiHitokotoData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<PostApiHitokotoResponses, PostApiHitokotoErrors, ThrowOnError, "fields">;
|
|
28
28
|
/**
|
|
29
29
|
* 获取一言列表
|
|
30
30
|
*
|
|
31
|
-
*
|
|
31
|
+
* 从数据库中查询所有的一言记录。
|
|
32
32
|
*/
|
|
33
|
-
export declare const
|
|
33
|
+
export declare const getApiHitokotoList: <ThrowOnError extends boolean = false>(options?: Options<GetApiHitokotoListData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<GetApiHitokotoListResponses, GetApiHitokotoListErrors, ThrowOnError, "fields">;
|
|
34
34
|
/**
|
|
35
35
|
* 删除一言
|
|
36
36
|
*
|
|
37
|
-
* 传入一言的 ID
|
|
37
|
+
* 传入一言的 ID,从数据库中删除对应的记录。
|
|
38
38
|
*/
|
|
39
|
-
export declare const
|
|
39
|
+
export declare const deleteApiHitokotoById: <ThrowOnError extends boolean = false>(options: Options<DeleteApiHitokotoByIdData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<DeleteApiHitokotoByIdResponses, DeleteApiHitokotoByIdErrors, ThrowOnError, "fields">;
|
|
40
40
|
/**
|
|
41
41
|
* 获取一言
|
|
42
42
|
*
|
|
43
|
-
* 传入一言的 ID
|
|
43
|
+
* 传入一言的 ID,从数据库中查询对应的记录。
|
|
44
44
|
*/
|
|
45
|
-
export declare const
|
|
45
|
+
export declare const getApiHitokotoById: <ThrowOnError extends boolean = false>(options: Options<GetApiHitokotoByIdData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<GetApiHitokotoByIdResponses, GetApiHitokotoByIdErrors, ThrowOnError, "fields">;
|
|
46
|
+
/**
|
|
47
|
+
* 获取用户
|
|
48
|
+
*
|
|
49
|
+
* 传入用户的 ID,从数据库中查询指定的用户。
|
|
50
|
+
*/
|
|
51
|
+
export declare const getApiUserById: <ThrowOnError extends boolean = false>(options: Options<GetApiUserByIdData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<GetApiUserByIdResponses, GetApiUserByIdErrors, ThrowOnError, "fields">;
|
|
52
|
+
/**
|
|
53
|
+
* 用户登录
|
|
54
|
+
*
|
|
55
|
+
* 用户登录接口
|
|
56
|
+
*/
|
|
57
|
+
export declare const postAuthLogin: <ThrowOnError extends boolean = false>(options: Options<PostAuthLoginData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<PostAuthLoginResponses, PostAuthLoginErrors, ThrowOnError, "fields">;
|
|
58
|
+
/**
|
|
59
|
+
* 用户注册
|
|
60
|
+
*
|
|
61
|
+
* 用户注册接口
|
|
62
|
+
*/
|
|
63
|
+
export declare const postAuthRegister: <ThrowOnError extends boolean = false>(options: Options<PostAuthRegisterData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<PostAuthRegisterResponses, PostAuthRegisterErrors, ThrowOnError, "fields">;
|
package/dist/sdk.gen.js
CHANGED
|
@@ -3,17 +3,17 @@ import { client } from './client.gen.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* 随机获取一言
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* 从数据库中随机获取一条一言记录。
|
|
7
7
|
*/
|
|
8
|
-
export const
|
|
8
|
+
export const getApiHitokoto = (options) => (options?.client ?? client).get({ url: '/api/hitokoto', ...options });
|
|
9
9
|
/**
|
|
10
10
|
* 添加一言
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* 创建一条新的一言记录。
|
|
13
13
|
*/
|
|
14
|
-
export const
|
|
14
|
+
export const postApiHitokoto = (options) => (options.client ?? client).post({
|
|
15
15
|
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
16
|
-
url: '/hitokoto',
|
|
16
|
+
url: '/api/hitokoto',
|
|
17
17
|
...options,
|
|
18
18
|
headers: {
|
|
19
19
|
'Content-Type': 'application/json',
|
|
@@ -23,30 +23,62 @@ export const postHitokoto = (options) => (options.client ?? client).post({
|
|
|
23
23
|
/**
|
|
24
24
|
* 获取一言列表
|
|
25
25
|
*
|
|
26
|
-
*
|
|
26
|
+
* 从数据库中查询所有的一言记录。
|
|
27
27
|
*/
|
|
28
|
-
export const
|
|
28
|
+
export const getApiHitokotoList = (options) => (options?.client ?? client).get({
|
|
29
29
|
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
30
|
-
url: '/hitokoto/list',
|
|
30
|
+
url: '/api/hitokoto/list',
|
|
31
31
|
...options
|
|
32
32
|
});
|
|
33
33
|
/**
|
|
34
34
|
* 删除一言
|
|
35
35
|
*
|
|
36
|
-
* 传入一言的 ID
|
|
36
|
+
* 传入一言的 ID,从数据库中删除对应的记录。
|
|
37
37
|
*/
|
|
38
|
-
export const
|
|
38
|
+
export const deleteApiHitokotoById = (options) => (options.client ?? client).delete({
|
|
39
39
|
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
40
|
-
url: '/hitokoto/{id}',
|
|
40
|
+
url: '/api/hitokoto/{id}',
|
|
41
41
|
...options
|
|
42
42
|
});
|
|
43
43
|
/**
|
|
44
44
|
* 获取一言
|
|
45
45
|
*
|
|
46
|
-
* 传入一言的 ID
|
|
46
|
+
* 传入一言的 ID,从数据库中查询对应的记录。
|
|
47
47
|
*/
|
|
48
|
-
export const
|
|
48
|
+
export const getApiHitokotoById = (options) => (options.client ?? client).get({
|
|
49
49
|
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
50
|
-
url: '/hitokoto/{id}',
|
|
50
|
+
url: '/api/hitokoto/{id}',
|
|
51
51
|
...options
|
|
52
52
|
});
|
|
53
|
+
/**
|
|
54
|
+
* 获取用户
|
|
55
|
+
*
|
|
56
|
+
* 传入用户的 ID,从数据库中查询指定的用户。
|
|
57
|
+
*/
|
|
58
|
+
export const getApiUserById = (options) => (options.client ?? client).get({ url: '/api/user/{id}', ...options });
|
|
59
|
+
/**
|
|
60
|
+
* 用户登录
|
|
61
|
+
*
|
|
62
|
+
* 用户登录接口
|
|
63
|
+
*/
|
|
64
|
+
export const postAuthLogin = (options) => (options.client ?? client).post({
|
|
65
|
+
url: '/auth/login',
|
|
66
|
+
...options,
|
|
67
|
+
headers: {
|
|
68
|
+
'Content-Type': 'application/json',
|
|
69
|
+
...options.headers
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
/**
|
|
73
|
+
* 用户注册
|
|
74
|
+
*
|
|
75
|
+
* 用户注册接口
|
|
76
|
+
*/
|
|
77
|
+
export const postAuthRegister = (options) => (options.client ?? client).post({
|
|
78
|
+
url: '/auth/register',
|
|
79
|
+
...options,
|
|
80
|
+
headers: {
|
|
81
|
+
'Content-Type': 'application/json',
|
|
82
|
+
...options.headers
|
|
83
|
+
}
|
|
84
|
+
});
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
|
-
baseUrl: '
|
|
2
|
+
baseUrl: 'http://localhost:8080/' | (string & {});
|
|
3
3
|
};
|
|
4
4
|
export type AtelinoInternalDtoCreateHitokotoRequest = {
|
|
5
5
|
content: string;
|
|
@@ -9,18 +9,39 @@ export type AtelinoInternalDtoHitokotoResponse = {
|
|
|
9
9
|
created_at?: string;
|
|
10
10
|
id?: number;
|
|
11
11
|
};
|
|
12
|
+
export type AtelinoInternalDtoLoginRequest = {
|
|
13
|
+
email: string;
|
|
14
|
+
password: string;
|
|
15
|
+
};
|
|
16
|
+
export type AtelinoInternalDtoRegisterRequest = {
|
|
17
|
+
code: string;
|
|
18
|
+
email: string;
|
|
19
|
+
password: string;
|
|
20
|
+
username: string;
|
|
21
|
+
};
|
|
12
22
|
export type AtelinoInternalDtoResponse = {
|
|
13
23
|
code?: number;
|
|
14
24
|
data?: unknown;
|
|
15
25
|
message?: string;
|
|
16
26
|
};
|
|
17
|
-
export type
|
|
27
|
+
export type AtelinoInternalDtoTokenResponse = {
|
|
28
|
+
access_token?: string;
|
|
29
|
+
refresh_token?: string;
|
|
30
|
+
};
|
|
31
|
+
export type AtelinoInternalDtoUserResponse = {
|
|
32
|
+
created_at?: string;
|
|
33
|
+
email?: string;
|
|
34
|
+
id?: number;
|
|
35
|
+
role?: string;
|
|
36
|
+
username?: string;
|
|
37
|
+
};
|
|
38
|
+
export type GetApiHitokotoData = {
|
|
18
39
|
body?: never;
|
|
19
40
|
path?: never;
|
|
20
41
|
query?: never;
|
|
21
|
-
url: '/hitokoto';
|
|
42
|
+
url: '/api/hitokoto';
|
|
22
43
|
};
|
|
23
|
-
export type
|
|
44
|
+
export type GetApiHitokotoErrors = {
|
|
24
45
|
/**
|
|
25
46
|
* 没有找到对应的一言
|
|
26
47
|
*/
|
|
@@ -30,8 +51,8 @@ export type GetHitokotoErrors = {
|
|
|
30
51
|
*/
|
|
31
52
|
500: AtelinoInternalDtoResponse;
|
|
32
53
|
};
|
|
33
|
-
export type
|
|
34
|
-
export type
|
|
54
|
+
export type GetApiHitokotoError = GetApiHitokotoErrors[keyof GetApiHitokotoErrors];
|
|
55
|
+
export type GetApiHitokotoResponses = {
|
|
35
56
|
/**
|
|
36
57
|
* 请求成功
|
|
37
58
|
*/
|
|
@@ -39,17 +60,17 @@ export type GetHitokotoResponses = {
|
|
|
39
60
|
data?: AtelinoInternalDtoHitokotoResponse;
|
|
40
61
|
};
|
|
41
62
|
};
|
|
42
|
-
export type
|
|
43
|
-
export type
|
|
63
|
+
export type GetApiHitokotoResponse = GetApiHitokotoResponses[keyof GetApiHitokotoResponses];
|
|
64
|
+
export type PostApiHitokotoData = {
|
|
44
65
|
/**
|
|
45
66
|
* 一言内容
|
|
46
67
|
*/
|
|
47
68
|
body: AtelinoInternalDtoCreateHitokotoRequest;
|
|
48
69
|
path?: never;
|
|
49
70
|
query?: never;
|
|
50
|
-
url: '/hitokoto';
|
|
71
|
+
url: '/api/hitokoto';
|
|
51
72
|
};
|
|
52
|
-
export type
|
|
73
|
+
export type PostApiHitokotoErrors = {
|
|
53
74
|
/**
|
|
54
75
|
* 请求参数错误
|
|
55
76
|
*/
|
|
@@ -63,8 +84,8 @@ export type PostHitokotoErrors = {
|
|
|
63
84
|
*/
|
|
64
85
|
500: AtelinoInternalDtoResponse;
|
|
65
86
|
};
|
|
66
|
-
export type
|
|
67
|
-
export type
|
|
87
|
+
export type PostApiHitokotoError = PostApiHitokotoErrors[keyof PostApiHitokotoErrors];
|
|
88
|
+
export type PostApiHitokotoResponses = {
|
|
68
89
|
/**
|
|
69
90
|
* 添加成功
|
|
70
91
|
*/
|
|
@@ -72,8 +93,8 @@ export type PostHitokotoResponses = {
|
|
|
72
93
|
data?: AtelinoInternalDtoHitokotoResponse;
|
|
73
94
|
};
|
|
74
95
|
};
|
|
75
|
-
export type
|
|
76
|
-
export type
|
|
96
|
+
export type PostApiHitokotoResponse = PostApiHitokotoResponses[keyof PostApiHitokotoResponses];
|
|
97
|
+
export type GetApiHitokotoListData = {
|
|
77
98
|
body?: never;
|
|
78
99
|
path?: never;
|
|
79
100
|
query?: {
|
|
@@ -82,9 +103,9 @@ export type GetHitokotoListData = {
|
|
|
82
103
|
*/
|
|
83
104
|
page?: number;
|
|
84
105
|
};
|
|
85
|
-
url: '/hitokoto/list';
|
|
106
|
+
url: '/api/hitokoto/list';
|
|
86
107
|
};
|
|
87
|
-
export type
|
|
108
|
+
export type GetApiHitokotoListErrors = {
|
|
88
109
|
/**
|
|
89
110
|
* 未授权
|
|
90
111
|
*/
|
|
@@ -94,8 +115,8 @@ export type GetHitokotoListErrors = {
|
|
|
94
115
|
*/
|
|
95
116
|
500: AtelinoInternalDtoResponse;
|
|
96
117
|
};
|
|
97
|
-
export type
|
|
98
|
-
export type
|
|
118
|
+
export type GetApiHitokotoListError = GetApiHitokotoListErrors[keyof GetApiHitokotoListErrors];
|
|
119
|
+
export type GetApiHitokotoListResponses = {
|
|
99
120
|
/**
|
|
100
121
|
* 请求成功
|
|
101
122
|
*/
|
|
@@ -103,8 +124,8 @@ export type GetHitokotoListResponses = {
|
|
|
103
124
|
data?: Array<AtelinoInternalDtoHitokotoResponse>;
|
|
104
125
|
};
|
|
105
126
|
};
|
|
106
|
-
export type
|
|
107
|
-
export type
|
|
127
|
+
export type GetApiHitokotoListResponse = GetApiHitokotoListResponses[keyof GetApiHitokotoListResponses];
|
|
128
|
+
export type DeleteApiHitokotoByIdData = {
|
|
108
129
|
body?: never;
|
|
109
130
|
path: {
|
|
110
131
|
/**
|
|
@@ -113,9 +134,9 @@ export type DeleteHitokotoByIdData = {
|
|
|
113
134
|
id: number;
|
|
114
135
|
};
|
|
115
136
|
query?: never;
|
|
116
|
-
url: '/hitokoto/{id}';
|
|
137
|
+
url: '/api/hitokoto/{id}';
|
|
117
138
|
};
|
|
118
|
-
export type
|
|
139
|
+
export type DeleteApiHitokotoByIdErrors = {
|
|
119
140
|
/**
|
|
120
141
|
* 请求参数错误
|
|
121
142
|
*/
|
|
@@ -133,15 +154,15 @@ export type DeleteHitokotoByIdErrors = {
|
|
|
133
154
|
*/
|
|
134
155
|
500: AtelinoInternalDtoResponse;
|
|
135
156
|
};
|
|
136
|
-
export type
|
|
137
|
-
export type
|
|
157
|
+
export type DeleteApiHitokotoByIdError = DeleteApiHitokotoByIdErrors[keyof DeleteApiHitokotoByIdErrors];
|
|
158
|
+
export type DeleteApiHitokotoByIdResponses = {
|
|
138
159
|
/**
|
|
139
160
|
* 删除成功
|
|
140
161
|
*/
|
|
141
162
|
200: AtelinoInternalDtoResponse;
|
|
142
163
|
};
|
|
143
|
-
export type
|
|
144
|
-
export type
|
|
164
|
+
export type DeleteApiHitokotoByIdResponse = DeleteApiHitokotoByIdResponses[keyof DeleteApiHitokotoByIdResponses];
|
|
165
|
+
export type GetApiHitokotoByIdData = {
|
|
145
166
|
body?: never;
|
|
146
167
|
path: {
|
|
147
168
|
/**
|
|
@@ -150,9 +171,9 @@ export type GetHitokotoByIdData = {
|
|
|
150
171
|
id: number;
|
|
151
172
|
};
|
|
152
173
|
query?: never;
|
|
153
|
-
url: '/hitokoto/{id}';
|
|
174
|
+
url: '/api/hitokoto/{id}';
|
|
154
175
|
};
|
|
155
|
-
export type
|
|
176
|
+
export type GetApiHitokotoByIdErrors = {
|
|
156
177
|
/**
|
|
157
178
|
* 请求参数错误
|
|
158
179
|
*/
|
|
@@ -170,8 +191,8 @@ export type GetHitokotoByIdErrors = {
|
|
|
170
191
|
*/
|
|
171
192
|
500: AtelinoInternalDtoResponse;
|
|
172
193
|
};
|
|
173
|
-
export type
|
|
174
|
-
export type
|
|
194
|
+
export type GetApiHitokotoByIdError = GetApiHitokotoByIdErrors[keyof GetApiHitokotoByIdErrors];
|
|
195
|
+
export type GetApiHitokotoByIdResponses = {
|
|
175
196
|
/**
|
|
176
197
|
* 请求成功
|
|
177
198
|
*/
|
|
@@ -179,4 +200,103 @@ export type GetHitokotoByIdResponses = {
|
|
|
179
200
|
data?: AtelinoInternalDtoHitokotoResponse;
|
|
180
201
|
};
|
|
181
202
|
};
|
|
182
|
-
export type
|
|
203
|
+
export type GetApiHitokotoByIdResponse = GetApiHitokotoByIdResponses[keyof GetApiHitokotoByIdResponses];
|
|
204
|
+
export type GetApiUserByIdData = {
|
|
205
|
+
body?: never;
|
|
206
|
+
path: {
|
|
207
|
+
/**
|
|
208
|
+
* 用户 ID
|
|
209
|
+
*/
|
|
210
|
+
id: number;
|
|
211
|
+
};
|
|
212
|
+
query?: never;
|
|
213
|
+
url: '/api/user/{id}';
|
|
214
|
+
};
|
|
215
|
+
export type GetApiUserByIdErrors = {
|
|
216
|
+
/**
|
|
217
|
+
* 请求参数错误
|
|
218
|
+
*/
|
|
219
|
+
400: AtelinoInternalDtoResponse;
|
|
220
|
+
/**
|
|
221
|
+
* 未授权
|
|
222
|
+
*/
|
|
223
|
+
401: AtelinoInternalDtoResponse;
|
|
224
|
+
/**
|
|
225
|
+
* 查询失败
|
|
226
|
+
*/
|
|
227
|
+
500: AtelinoInternalDtoResponse;
|
|
228
|
+
};
|
|
229
|
+
export type GetApiUserByIdError = GetApiUserByIdErrors[keyof GetApiUserByIdErrors];
|
|
230
|
+
export type GetApiUserByIdResponses = {
|
|
231
|
+
/**
|
|
232
|
+
* 请求成功
|
|
233
|
+
*/
|
|
234
|
+
200: AtelinoInternalDtoResponse & {
|
|
235
|
+
data?: AtelinoInternalDtoUserResponse;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
export type GetApiUserByIdResponse = GetApiUserByIdResponses[keyof GetApiUserByIdResponses];
|
|
239
|
+
export type PostAuthLoginData = {
|
|
240
|
+
/**
|
|
241
|
+
* 登录请求体
|
|
242
|
+
*/
|
|
243
|
+
body: AtelinoInternalDtoLoginRequest;
|
|
244
|
+
path?: never;
|
|
245
|
+
query?: never;
|
|
246
|
+
url: '/auth/login';
|
|
247
|
+
};
|
|
248
|
+
export type PostAuthLoginErrors = {
|
|
249
|
+
/**
|
|
250
|
+
* 请求参数错误
|
|
251
|
+
*/
|
|
252
|
+
400: AtelinoInternalDtoResponse;
|
|
253
|
+
/**
|
|
254
|
+
* 用户名或密码错误
|
|
255
|
+
*/
|
|
256
|
+
401: AtelinoInternalDtoResponse;
|
|
257
|
+
/**
|
|
258
|
+
* 登录失败
|
|
259
|
+
*/
|
|
260
|
+
500: AtelinoInternalDtoResponse;
|
|
261
|
+
};
|
|
262
|
+
export type PostAuthLoginError = PostAuthLoginErrors[keyof PostAuthLoginErrors];
|
|
263
|
+
export type PostAuthLoginResponses = {
|
|
264
|
+
/**
|
|
265
|
+
* 登录成功
|
|
266
|
+
*/
|
|
267
|
+
200: AtelinoInternalDtoResponse & {
|
|
268
|
+
data?: AtelinoInternalDtoTokenResponse;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
export type PostAuthLoginResponse = PostAuthLoginResponses[keyof PostAuthLoginResponses];
|
|
272
|
+
export type PostAuthRegisterData = {
|
|
273
|
+
/**
|
|
274
|
+
* 注册请求体
|
|
275
|
+
*/
|
|
276
|
+
body: AtelinoInternalDtoRegisterRequest;
|
|
277
|
+
path?: never;
|
|
278
|
+
query?: never;
|
|
279
|
+
url: '/auth/register';
|
|
280
|
+
};
|
|
281
|
+
export type PostAuthRegisterErrors = {
|
|
282
|
+
/**
|
|
283
|
+
* 请求参数错误
|
|
284
|
+
*/
|
|
285
|
+
400: AtelinoInternalDtoResponse;
|
|
286
|
+
/**
|
|
287
|
+
* 该邮箱已注册
|
|
288
|
+
*/
|
|
289
|
+
409: AtelinoInternalDtoResponse;
|
|
290
|
+
/**
|
|
291
|
+
* 注册失败
|
|
292
|
+
*/
|
|
293
|
+
500: AtelinoInternalDtoResponse;
|
|
294
|
+
};
|
|
295
|
+
export type PostAuthRegisterError = PostAuthRegisterErrors[keyof PostAuthRegisterErrors];
|
|
296
|
+
export type PostAuthRegisterResponses = {
|
|
297
|
+
/**
|
|
298
|
+
* 注册成功
|
|
299
|
+
*/
|
|
300
|
+
200: AtelinoInternalDtoResponse;
|
|
301
|
+
};
|
|
302
|
+
export type PostAuthRegisterResponse = PostAuthRegisterResponses[keyof PostAuthRegisterResponses];
|