aa
This commit is contained in:
@@ -346,7 +346,7 @@ func (c *JobController) GetStationList() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Title 查询用户个人订单
|
// @Title 查询用户个人订单易加油
|
||||||
// @Description 查询用户个人订单
|
// @Description 查询用户个人订单
|
||||||
// @Param token header string true "认证token"
|
// @Param token header string true "认证token"
|
||||||
// @Param offset query int false "门店列表起始序号(以0开始,缺省为0)"
|
// @Param offset query int false "门店列表起始序号(以0开始,缺省为0)"
|
||||||
@@ -363,3 +363,22 @@ func (c *JobController) GetEjyOrders() {
|
|||||||
return retVal, "", err
|
return retVal, "", err
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @Title 用户申请退款,易加油
|
||||||
|
// @Description 用户申请退款,易加油
|
||||||
|
// @Param token header string true "认证token"
|
||||||
|
// @Param vendorOrderID query string true "易加油订单号"
|
||||||
|
// @Param reason query string true "退款原因"
|
||||||
|
// @Success 200 {object} controllers.CallResult
|
||||||
|
// @Failure 200 {object} controllers.CallResult
|
||||||
|
// @router /UserRefundEjy [get]
|
||||||
|
func (c *JobController) UserRefundEjy() {
|
||||||
|
c.callUserRefundEjy(func(params *tJobUserRefundEjyParams) (retVal interface{}, errCode string, err error) {
|
||||||
|
mobile, _ := params.Ctx.GetMobileAndUserID()
|
||||||
|
if mobile == "" {
|
||||||
|
return nil, "", fmt.Errorf("未查询到用户手机号!请确认绑定了手机!")
|
||||||
|
}
|
||||||
|
retVal, err = api.EjyAPI.UserRefund(params.VendorOrderID, mobile, params.Reason)
|
||||||
|
return retVal, "", err
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -484,6 +484,15 @@ func init() {
|
|||||||
Filters: nil,
|
Filters: nil,
|
||||||
Params: nil})
|
Params: nil})
|
||||||
|
|
||||||
|
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"],
|
||||||
|
beego.ControllerComments{
|
||||||
|
Method: "UserRefundEjy",
|
||||||
|
Router: `/UserRefundEjy`,
|
||||||
|
AllowHTTPMethods: []string{"get"},
|
||||||
|
MethodParams: param.Make(),
|
||||||
|
Filters: nil,
|
||||||
|
Params: nil})
|
||||||
|
|
||||||
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"],
|
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"],
|
||||||
beego.ControllerComments{
|
beego.ControllerComments{
|
||||||
Method: "Cash",
|
Method: "Cash",
|
||||||
|
|||||||
Reference in New Issue
Block a user