1
This commit is contained in:
@@ -97,6 +97,42 @@ func (c *StoreController) GetVendorStore() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 查询远程平台可以金额
|
||||
// @Description 查询远程平台可以金额
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorID query int true "门店所属的厂商ID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /QueryPlatformBalance [get]
|
||||
func (c *StoreController) QueryPlatformBalance() {
|
||||
c.callQueryPlatformBalance(func(params *tStoreQueryPlatformBalanceParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = cms.QueryPlatformBalance(params.VendorID)
|
||||
return retVal, "", err
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 远程平台充值
|
||||
// @Description 远程平台充值
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorID query int true "门店所属的厂商ID"
|
||||
// @Param amount query int true "充值金额分"
|
||||
// @Param category query string true "链接场景[PC,H5]"
|
||||
// @Param notifyUrl query string false "成功跳转链接(支付宝有,微信没有)"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /BalanceRecharge [post]
|
||||
func (c *StoreController) BalanceRecharge() {
|
||||
c.callBalanceRecharge(func(params *tStoreBalanceRechargeParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = cms.BalanceRecharge(params.VendorID, &utils.RechargeBalance{
|
||||
Amount: float64(params.Amount) / 100,
|
||||
Category: params.Category,
|
||||
NotifyUrl: params.NotifyUrl,
|
||||
})
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 修改门店信息
|
||||
// @Description 修改门店信息
|
||||
// @Param token header string true "认证token"
|
||||
|
||||
Reference in New Issue
Block a user