Add Balance Api
This commit is contained in:
@@ -14,6 +14,7 @@ type Context interface {
|
||||
RequestedBy() int64
|
||||
IsSuperAdmin() bool
|
||||
IsAdmin() bool
|
||||
IsPartnerAdmin() bool
|
||||
IsCasheer() bool
|
||||
GetPartnerID() *int64
|
||||
GetSiteID() *int64
|
||||
@@ -41,6 +42,10 @@ func (m *MyContextImpl) IsAdmin() bool {
|
||||
return m.roleID == int(role.SuperAdmin) || m.roleID == int(role.Admin)
|
||||
}
|
||||
|
||||
func (m *MyContextImpl) IsPartnerAdmin() bool {
|
||||
return m.roleID == int(role.PartnerAdmin)
|
||||
}
|
||||
|
||||
func (m *MyContextImpl) IsCasheer() bool {
|
||||
return m.roleID == int(role.Casheer)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user