auth, user, userbranch and org/branches each declared their own identical
{en, ru, tm} struct; they now use shared.LocalizedText. No JSON change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
596 B
Go
23 lines
596 B
Go
package userbranch
|
|
|
|
import (
|
|
"time"
|
|
|
|
"online-back/internal/shared"
|
|
)
|
|
|
|
type UserBranchDTO struct {
|
|
Id int64 `json:"id"`
|
|
UserId int64 `json:"userId"`
|
|
UserName string `json:"userName"`
|
|
BranchId int64 `json:"branchId"`
|
|
BranchName shared.LocalizedText `json:"branchName"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
type CreateUserBranchDTO struct {
|
|
BranchId int64 `json:"branchId" binding:"required"`
|
|
UserId int64 `json:"userId" binding:"required"`
|
|
}
|