changed arhitecture
This commit is contained in:
1 parent
7e3a5cebcc
commit
585ba63bc2
95 files changed
+4985
-1360
No files matched your search
@@ -0,0 +1,34 @@
|
||||
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"`
|
||||
}
|
||||
Reference in new issue
Block a user