wip
This commit is contained in:
@@ -42,9 +42,11 @@ type MetaDto struct {
|
||||
|
||||
type ResponseDto struct {
|
||||
ecore.SmallMain
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
Parent_Id *int16 `json:"parent_id"`
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
Parent_Id *int16 `json:"parent_id"`
|
||||
Parent *Division `json:"parent"`
|
||||
Childrens []Division `json:"childrens"`
|
||||
}
|
||||
|
||||
func (d Division) ToResponse() ResponseDto {
|
||||
@@ -52,6 +54,8 @@ func (d Division) ToResponse() ResponseDto {
|
||||
Code: d.Code,
|
||||
Name: d.Name,
|
||||
Parent_Id: d.Parent_Id,
|
||||
Parent: d.Parent,
|
||||
Childrens: d.Childrens,
|
||||
}
|
||||
resp.SmallMain = d.SmallMain
|
||||
return resp
|
||||
|
||||
@@ -39,10 +39,6 @@ func (a AuthInfo) IsPayment() bool {
|
||||
return a.User_Position_Code == string(ero.UPCPay)
|
||||
}
|
||||
|
||||
func (a AuthInfo) IsPaymentVerificator() bool {
|
||||
return a.User_Position_Code == string(ero.UPCPav)
|
||||
}
|
||||
|
||||
func (a AuthInfo) IsManagement() bool {
|
||||
return a.User_Position_Code == string(ero.UPCMan)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user