add order and payment
This commit is contained in:
@@ -13,6 +13,7 @@ type Context interface {
|
||||
|
||||
RequestedBy() int64
|
||||
IsSuperAdmin() bool
|
||||
IsCasheer() bool
|
||||
GetPartnerID() *int64
|
||||
}
|
||||
|
||||
@@ -33,6 +34,10 @@ func (m *MyContextImpl) IsSuperAdmin() bool {
|
||||
return m.roleID == int(role.SuperAdmin)
|
||||
}
|
||||
|
||||
func (m *MyContextImpl) IsCasheer() bool {
|
||||
return m.roleID == int(role.Casheer)
|
||||
}
|
||||
|
||||
func (m *MyContextImpl) GetPartnerID() *int64 {
|
||||
if m.partnerID != 0 {
|
||||
return &m.partnerID
|
||||
|
||||
Reference in New Issue
Block a user