45 lines
1.1 KiB
Go
45 lines
1.1 KiB
Go
package controllers
|
|
|
|
import (
|
|
"encoding/json"
|
|
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable"
|
|
"github.com/astaxie/beego/server/web"
|
|
"io/ioutil"
|
|
)
|
|
|
|
type LaKaLaCallbackController struct {
|
|
web.Controller
|
|
}
|
|
|
|
// SeparateMsg 开通分账业务回调
|
|
func (c *LaKaLaCallbackController) SeparateMsg() {
|
|
body, err := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
if err != nil {
|
|
c.Data["json"] = tao_vegetable.CallBackResultInfo(err)
|
|
c.ServeJSON()
|
|
return
|
|
}
|
|
|
|
separate := &SeparateCallback{}
|
|
if err = json.Unmarshal(body, &separate); err != nil {
|
|
c.Data["json"] = tao_vegetable.CallBackResultInfo(err)
|
|
c.ServeJSON()
|
|
return
|
|
}
|
|
|
|
// todo
|
|
}
|
|
|
|
type SeparateCallback struct {
|
|
ApplyId int64 `json:"applyId"`
|
|
MerCupNo string `json:"merCupNo"`
|
|
RetUrl string `json:"retUrl"`
|
|
EntrustFileName string `json:"entrustFileName"`
|
|
AuditStatus string `json:"auditStatus"`
|
|
MerInnerNo string `json:"merInnerNo"`
|
|
Remark string `json:"remark"`
|
|
AuditStatusText string `json:"auditStatusText"`
|
|
UploadAttachType string `json:"uploadAttachType"`
|
|
EntrustFilePath string `json:"entrustFilePath"`
|
|
}
|