UpdateMyDeliveryAddress的isDefault从bool改为int
This commit is contained in:
@@ -300,13 +300,12 @@ func (c *User2Controller) DeleteMyDeliveryAddress() {
|
|||||||
// @Param lat formData float64 false "纬度"
|
// @Param lat formData float64 false "纬度"
|
||||||
// @Param tag formData string false "标签"
|
// @Param tag formData string false "标签"
|
||||||
// @Param remark formData string false "备注"
|
// @Param remark formData string false "备注"
|
||||||
// @Param isDefault formData bool false "是否是默认"
|
// @Param isDefault formData int false "是否是默认(0:否,1:是)"
|
||||||
// @Success 200 {object} controllers.CallResult
|
// @Success 200 {object} controllers.CallResult
|
||||||
// @Failure 200 {object} controllers.CallResult
|
// @Failure 200 {object} controllers.CallResult
|
||||||
// @router /UpdateMyDeliveryAddress [put]
|
// @router /UpdateMyDeliveryAddress [put]
|
||||||
func (c *User2Controller) UpdateMyDeliveryAddress() {
|
func (c *User2Controller) UpdateMyDeliveryAddress() {
|
||||||
c.callUpdateMyDeliveryAddress(func(params *tUser2UpdateMyDeliveryAddressParams) (retVal interface{}, errCode string, err error) {
|
c.callUpdateMyDeliveryAddress(func(params *tUser2UpdateMyDeliveryAddressParams) (retVal interface{}, errCode string, err error) {
|
||||||
params.MapData["isDefault"] = utils.Bool2Int(params.IsDefault)
|
|
||||||
err = cms.UpdateMyDeliveryAddress(params.Ctx, params.AddressID, params.MapData)
|
err = cms.UpdateMyDeliveryAddress(params.Ctx, params.AddressID, params.MapData)
|
||||||
return retVal, "", err
|
return retVal, "", err
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user