- adjust package structure.

This commit is contained in:
gazebo
2018-06-20 15:53:08 +08:00
parent 9ca830c240
commit 157d36c47f
9 changed files with 139 additions and 124 deletions

View File

@@ -2,7 +2,7 @@ package controller
import (
"git.rosy.net.cn/baseapi/platform/mtpsapi"
"git.rosy.net.cn/jx-callback/globals"
"git.rosy.net.cn/jx-callback/globals/globals2"
)
type OrderController struct {
@@ -18,9 +18,9 @@ func Error2Response(err error) *mtpsapi.MtpsCallbackResponse {
}
func (c *OrderController) OrderStatusChanged(order *mtpsapi.MtpsCallbackOrderMsg) *mtpsapi.MtpsCallbackResponse {
return Error2Response(globals.FreshFoodAPI.MtpsOrderStatusChanged(order))
return Error2Response(globals2.FreshFoodAPI.MtpsOrderStatusChanged(order))
}
func (c *OrderController) OrderException(order *mtpsapi.MtpsCallbackOrderExceptionMsg) *mtpsapi.MtpsCallbackResponse {
return Error2Response(globals.FreshFoodAPI.MtpsOrderException(order))
return Error2Response(globals2.FreshFoodAPI.MtpsOrderException(order))
}