Also accept flexible card-order form values, move mock seed under db/mock, and regenerate Swagger. Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
610 B
Go
25 lines
610 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 CreateUserBranchDTO struct {
|
|
BranchId int64 `json:"branchId" binding:"required"`
|
|
UserId int64 `json:"userId" binding:"required"`
|
|
}
|