1
This commit is contained in:
44
controllers/lakala_callback.go
Normal file
44
controllers/lakala_callback.go
Normal file
@@ -0,0 +1,44 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user