feat: Update UserTitle implemented
All checks were successful
Build and Deploy Go App / build (push) Successful in 6m35s
Build and Deploy Go App / deploy (push) Successful in 25s

This commit is contained in:
Iron_Felix 2025-11-27 08:16:12 +03:00
parent 451df61127
commit a25a912ead
3 changed files with 47 additions and 15 deletions

View file

@ -874,10 +874,10 @@ RETURNING user_id, title_id, status, rate, review_id, ctime
`
type UpdateUserTitleParams struct {
Status NullUsertitleStatusT `json:"status"`
Rate *int32 `json:"rate"`
UserID int64 `json:"user_id"`
TitleID int64 `json:"title_id"`
Status *UsertitleStatusT `json:"status"`
Rate *int32 `json:"rate"`
UserID int64 `json:"user_id"`
TitleID int64 `json:"title_id"`
}
// Fails with sql.ErrNoRows if (user_id, title_id) not found

View file

@ -14,6 +14,11 @@ sql:
emit_pointers_for_null_types: true
emit_empty_slices: true #slices returned by :many queries will be empty instead of nil
overrides:
- db_type: "usertitle_status_t"
nullable: true
go_type:
type: "UsertitleStatusT"
pointer: true
- db_type: "storage_type_t"
nullable: true
go_type: