UPDATE: Change type response
All checks were successful
Build and Release / release (push) Successful in 1m7s

This commit is contained in:
2026-04-16 12:39:05 +07:00
parent 822a92d1cc
commit 5c363589d8
11 changed files with 336 additions and 69 deletions

View File

@@ -13,6 +13,14 @@ type UserResponse struct {
Roles []*RoleSimpleResponse `json:"roles"`
}
type UserSimpleResponse struct {
ID string `json:"id"`
Email string `json:"email"`
DisplayName string `json:"display_name"`
FullName string `json:"full_name"`
AvatarUrl string `json:"avatar_url"`
}
type UserProfileSimpleResponse struct {
DisplayName string `json:"display_name"`
FullName string `json:"full_name"`

View File

@@ -4,11 +4,11 @@ import "time"
type UserVerificationResponse struct {
ID string `json:"id"`
UserID string `json:"user_id"`
User *UserSimpleResponse `json:"user"`
VerifyType string `json:"verify_type"`
Content string `json:"content"`
Status string `json:"status"`
ReviewedBy string `json:"reviewed_by"`
Reviewer *UserSimpleResponse `json:"reviewer"`
ReviewNote string `json:"review_note"`
ReviewedAt *time.Time `json:"reviewed_at"`
CreatedAt *time.Time `json:"created_at"`