Skip to content

Commit

Permalink
Feat/add updated at (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjuruu authored Feb 16, 2025
1 parent d26fb41 commit fa02781
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto_tag.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Auto Tag on Merge
name: On Merge

on:
push:
Expand Down
5 changes: 5 additions & 0 deletions go-client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ components:
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
email: email
username: username
updatedAt: updatedAt
properties:
id:
description: User id.
Expand All @@ -292,11 +293,15 @@ components:
createdAt:
description: User creation date.
type: string
updatedAt:
description: User update date.
type: string
required:
- createdAt
- email
- id
- role
- updatedAt
- username
type: object
ICreatePostRequestDTO:
Expand Down
23 changes: 22 additions & 1 deletion go-client/docs/IUserDTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ Name | Type | Description | Notes
**Email** | **string** | User email. |
**Role** | [**IUserRoleEnum**](IUserRoleEnum.md) | |
**CreatedAt** | **string** | User creation date. |
**UpdatedAt** | **string** | User update date. |

## Methods

### NewIUserDTO

`func NewIUserDTO(id string, username string, email string, role IUserRoleEnum, createdAt string, ) *IUserDTO`
`func NewIUserDTO(id string, username string, email string, role IUserRoleEnum, createdAt string, updatedAt string, ) *IUserDTO`

NewIUserDTO instantiates a new IUserDTO object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -129,6 +130,26 @@ and a boolean to check if the value has been set.
SetCreatedAt sets CreatedAt field to given value.


### GetUpdatedAt

`func (o *IUserDTO) GetUpdatedAt() string`

GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.

### GetUpdatedAtOk

`func (o *IUserDTO) GetUpdatedAtOk() (*string, bool)`

GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetUpdatedAt

`func (o *IUserDTO) SetUpdatedAt(v string)`

SetUpdatedAt sets UpdatedAt field to given value.



[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
31 changes: 30 additions & 1 deletion go-client/model_i_user_dto.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ components:

IUserDTO:
type: object
required: [id, username, email, role, createdAt]
required: [id, username, email, role, createdAt, updatedAt]
properties:
id:
type: string
Expand All @@ -268,6 +268,9 @@ components:
createdAt:
type: string
description: User creation date.
updatedAt:
type: string
description: User update date.

# request
ICreatePostRequestDTO:
Expand Down
6 changes: 6 additions & 0 deletions typescript-client/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ export interface IUserDTO {
* @memberof IUserDTO
*/
'createdAt': string;
/**
* User update date.
* @type {string}
* @memberof IUserDTO
*/
'updatedAt': string;
}


Expand Down

0 comments on commit fa02781

Please sign in to comment.