init minio

This commit is contained in:
Chuck1sn
2025-06-15 15:09:52 +08:00
parent c64f2eb0f6
commit dc7780e0a8
28 changed files with 333 additions and 25 deletions

View File

@@ -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"
},

View File

@@ -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;