1
This commit is contained in:
@@ -11,6 +11,46 @@ type LaKaLaController struct {
|
||||
web.Controller
|
||||
}
|
||||
|
||||
// LaKaLaApplyContract 拉卡拉商户合同申请
|
||||
// @Title 拉卡拉商户合同申请
|
||||
// @Description 拉卡拉商户合同申请
|
||||
// @Param token header string true "认证token"
|
||||
// @Param payload formData string true "json数据,lakala.ApplyContractParam 对象"
|
||||
// @Param storeID formData int true "门店ID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /LaKaLaApplyContract [post]
|
||||
func (c *LaKaLaController) LaKaLaApplyContract() {
|
||||
c.callLaKaLaApplyContract(func(params *tLakalaLaKaLaApplyContractParams) (retVal interface{}, errCode string, err error) {
|
||||
contract := &lakala.ApplyContractParam{}
|
||||
err = utils.UnmarshalUseNumber([]byte(params.Payload), contract)
|
||||
if err != nil {
|
||||
return retVal, "", err
|
||||
}
|
||||
|
||||
retVal, err = lakalaServer.LaKaLaApplyContract(params.Ctx, contract, params.StoreID)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// QueryElectronicContract 合同申请状态查询
|
||||
// @Title 合同申请状态查询
|
||||
// @Description 合同申请状态查询
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeID formData int true "门店ID"
|
||||
// @Param orderNo formData string true "订单编号"
|
||||
// @Param orgId formData int true "组织ID"
|
||||
// @Param ecApplyId formData string true "申请ID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /QueryElectronicContract [post]
|
||||
func (c *LaKaLaController) QueryElectronicContract() {
|
||||
c.callQueryElectronicContract(func(params *tLakalaQueryElectronicContractParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = lakalaServer.QueryElectronicContract(params.OrderNo, params.OrgId, params.EcApplyId, params.StoreID)
|
||||
return
|
||||
})
|
||||
}
|
||||
|
||||
// MerchantIncoming 拉卡拉商户进件
|
||||
// @Title 创建拉卡拉商户
|
||||
// @Description 创建拉卡拉商户
|
||||
@@ -809,6 +849,24 @@ func (c *LaKaLaController) WithdrawalList() {
|
||||
})
|
||||
}
|
||||
|
||||
// QueryApplyContractList 门店合同申请记录查询
|
||||
// @Title 门店合同申请记录查询
|
||||
// @Description 门店合同申请记录查询
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeId query int false "门店ID"
|
||||
// @Param orderNo query string false "京西订单ID"
|
||||
// @Param offset query int true "列表起始序号(以0开始,缺省为0)"
|
||||
// @Param pageSize query int true "列表页大小(缺省为50,-1表示全部)"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /QueryApplyContractList [get]
|
||||
func (c *LaKaLaController) QueryApplyContractList() {
|
||||
c.callQueryApplyContractList(func(params *tLakalaQueryApplyContractListParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = lakalaServer.QueryApplyContractList(params.OrderNo, params.StoreId, params.PageSize, params.PageSize)
|
||||
return
|
||||
})
|
||||
}
|
||||
|
||||
// GetCardBin 卡BIN查询
|
||||
// @Title 卡BIN查询
|
||||
// @Description 卡BIN查询
|
||||
|
||||
Reference in New Issue
Block a user