Files
online-backend/internal/identity/userbranch/dto.go
2026-07-15 18:08:19 +05:00

35 lines
787 B
Go

package userbranch
import "time"
type LocalizedText struct {
En string `json:"en"`
Ru string `json:"ru"`
Tm string `json:"tm"`
}
type UserBranchDTO struct {
Id int64 `json:"id"`
UserId int64 `json:"userId"`
UserName string `json:"userName"`
BranchId int64 `json:"branchId"`
BranchName LocalizedText `json:"branchName"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type ListUserBranchDTO struct {
Count int64 `json:"count"`
Items []UserBranchDTO `json:"items"`
}
type ListFilter struct {
UserId *int64
BranchName string
}
type CreateUserBranchDTO struct {
BranchId int64 `json:"branchId" binding:"required"`
UserId int64 `json:"userId" binding:"required"`
}