|
@@ -19,7 +19,7 @@ type Order struct {
|
|
|
func (o Order) OrderListQuery(token string, objectShopId int64, jsonStr string, sign string) string {
|
|
func (o Order) OrderListQuery(token string, objectShopId int64, jsonStr string, sign string) string {
|
|
|
optId := o.checkPermission(token, objectShopId)
|
|
optId := o.checkPermission(token, objectShopId)
|
|
|
|
|
|
|
|
- rst, err := postgre.PGOrder{}.OrderListQuery(optId, objectShopId, jsonStr, sign)
|
|
|
|
|
|
|
+ rst, err := postgre.PGOrder{}.OrderListQueryByManager(optId, objectShopId, jsonStr, sign)
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
panic(errors.PGError)
|
|
panic(errors.PGError)
|
|
|
}
|
|
}
|
|
@@ -29,7 +29,7 @@ func (o Order) OrderListQuery(token string, objectShopId int64, jsonStr string,
|
|
|
func (o Order) OrderAddByManager(token string, objectShopId int64, jsonStr string, sign string) string {
|
|
func (o Order) OrderAddByManager(token string, objectShopId int64, jsonStr string, sign string) string {
|
|
|
optId := o.checkPermission(token, objectShopId)
|
|
optId := o.checkPermission(token, objectShopId)
|
|
|
|
|
|
|
|
- rst, err := postgre.PGOrder{}.OrderAdd(optId, objectShopId, jsonStr, sign)
|
|
|
|
|
|
|
+ rst, err := postgre.PGOrder{}.OrderAddByManager(optId, objectShopId, jsonStr, sign)
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
panic(errors.PGError)
|
|
panic(errors.PGError)
|
|
|
}
|
|
}
|
|
@@ -39,7 +39,7 @@ func (o Order) OrderAddByManager(token string, objectShopId int64, jsonStr strin
|
|
|
func (o Order) OrderCancelByManager(token string, objectShopId int64, jsonStr string, sign string) string {
|
|
func (o Order) OrderCancelByManager(token string, objectShopId int64, jsonStr string, sign string) string {
|
|
|
optId := o.checkPermission(token, objectShopId)
|
|
optId := o.checkPermission(token, objectShopId)
|
|
|
|
|
|
|
|
- rst, err := postgre.PGOrder{}.OrderCancel(optId, objectShopId, jsonStr, sign)
|
|
|
|
|
|
|
+ rst, err := postgre.PGOrder{}.OrderCancelByManager(optId, objectShopId, jsonStr, sign)
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
panic(errors.PGError)
|
|
panic(errors.PGError)
|
|
|
}
|
|
}
|