20 lines
562 B
Go
20 lines
562 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type BranchRegisterBody struct {
|
|
BranchName string `json:"branch_name" validate:"required"`
|
|
CompanyID string `json:"company_id" bson:"company_id"`
|
|
}
|
|
|
|
type BranchInfo struct {
|
|
BranchName string `json:"branch_name" bson:"branch_name"`
|
|
BranchID string `json:"branch_id" bson:"branch_id"`
|
|
CompanyID string `json:"company_id" bson:"company_id"`
|
|
Owner []string `json:"owner" bson:"owner"`
|
|
CreateAt time.Time `json:"create_at" bson:"create_at"`
|
|
UpdateAt time.Time `json:"update_at" bson:"update_at"`
|
|
}
|