mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-19 08:53:46 +08:00
init minio
This commit is contained in:
@@ -610,6 +610,44 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/iam/avatar/upload": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"identity-access-controller"
|
||||
],
|
||||
"operationId": "uploadAvatar",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"multipart/form-data": {
|
||||
"schema": {
|
||||
"required": [
|
||||
"file"
|
||||
],
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"file": {
|
||||
"type": "string",
|
||||
"format": "binary"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"content": {
|
||||
"text/plain": {
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/department": {
|
||||
"post": {
|
||||
"tags": [
|
||||
@@ -1300,6 +1338,9 @@
|
||||
},
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"avatar": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1732,6 +1773,9 @@
|
||||
"type": "string",
|
||||
"writeOnly": true
|
||||
},
|
||||
"avatar": {
|
||||
"type": "string"
|
||||
},
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
||||
45
frontend/src/api/types/schema.d.ts
vendored
45
frontend/src/api/types/schema.d.ts
vendored
@@ -292,6 +292,22 @@ export interface paths {
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/iam/avatar/upload": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
get?: never;
|
||||
put?: never;
|
||||
post: operations["uploadAvatar"];
|
||||
delete?: never;
|
||||
options?: never;
|
||||
head?: never;
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/department": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
@@ -631,6 +647,7 @@ export interface components {
|
||||
username: string;
|
||||
password?: string;
|
||||
enable: boolean;
|
||||
avatar?: string;
|
||||
};
|
||||
RoleUpsertDto: {
|
||||
/** Format: int64 */
|
||||
@@ -780,6 +797,7 @@ export interface components {
|
||||
id?: number;
|
||||
username?: string;
|
||||
password?: string;
|
||||
avatar?: string;
|
||||
enable?: boolean;
|
||||
roles?: components["schemas"]["RoleDto"][];
|
||||
/** Format: date-time */
|
||||
@@ -1402,6 +1420,33 @@ export interface operations {
|
||||
};
|
||||
};
|
||||
};
|
||||
uploadAvatar: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
requestBody?: {
|
||||
content: {
|
||||
"multipart/form-data": {
|
||||
/** Format: binary */
|
||||
file: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description OK */
|
||||
200: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"text/plain": string;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
upsertDepartment: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
|
||||
Reference in New Issue
Block a user