Skip to content

Commit

Permalink
feat: update api-client
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiinaKin committed Oct 28, 2024
1 parent 6874d99 commit dbf5cac
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
18 changes: 13 additions & 5 deletions app/openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3255,6 +3255,14 @@
"UserVO" : {
"type" : "object",
"properties" : {
"albumCount" : {
"type" : "integer",
"format" : "int64"
},
"allSize" : {
"type" : "number",
"format" : "double"
},
"createTime" : {
"$ref" : "#/components/schemas/kotlinx.datetime.LocalDateTime"
},
Expand All @@ -3279,14 +3287,14 @@
"type" : "boolean"
},
"totalImageSize" : {
"type" : "integer",
"format" : "int64"
"type" : "number",
"format" : "double"
},
"username" : {
"type" : "string"
}
},
"required" : [ "createTime", "groupName", "id", "imageCount", "isBanned", "isDefaultImagePrivate", "totalImageSize", "username" ]
"required" : [ "albumCount", "allSize", "createTime", "groupName", "id", "imageCount", "isBanned", "isDefaultImagePrivate", "totalImageSize", "username" ]
},
"CommonResponse_UserVO" : {
"type" : "object",
Expand Down Expand Up @@ -3404,8 +3412,8 @@
"type" : "boolean"
},
"totalImageSize" : {
"type" : "integer",
"format" : "int64"
"type" : "number",
"format" : "double"
},
"username" : {
"type" : "string"
Expand Down
18 changes: 18 additions & 0 deletions ui/packages/api-client/src/models/UserVO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ import {
* @interface UserVO
*/
export interface UserVO {
/**
*
* @type {number}
* @memberof UserVO
*/
albumCount: number;
/**
*
* @type {number}
* @memberof UserVO
*/
allSize: number;
/**
*
* @type {KotlinxDatetimeLocalDateTime}
Expand Down Expand Up @@ -87,6 +99,8 @@ export interface UserVO {
* Check if a given object implements the UserVO interface.
*/
export function instanceOfUserVO(value: object): value is UserVO {
if (!('albumCount' in value) || value['albumCount'] === undefined) return false;
if (!('allSize' in value) || value['allSize'] === undefined) return false;
if (!('createTime' in value) || value['createTime'] === undefined) return false;
if (!('groupName' in value) || value['groupName'] === undefined) return false;
if (!('id' in value) || value['id'] === undefined) return false;
Expand All @@ -108,6 +122,8 @@ export function UserVOFromJSONTyped(json: any, ignoreDiscriminator: boolean): Us
}
return {

'albumCount': json['albumCount'],
'allSize': json['allSize'],
'createTime': KotlinxDatetimeLocalDateTimeFromJSON(json['createTime']),
'email': json['email'] == null ? undefined : json['email'],
'groupName': json['groupName'],
Expand All @@ -131,6 +147,8 @@ export function UserVOFromJSONTyped(json: any, ignoreDiscriminator: boolean): Us

return {

'albumCount': value['albumCount'],
'allSize': value['allSize'],
'createTime': KotlinxDatetimeLocalDateTimeToJSON(value['createTime']),
'email': value['email'],
'groupName': value['groupName'],
Expand Down

0 comments on commit dbf5cac

Please sign in to comment.