UserDeliveryAddress添加DetailAddress
This commit is contained in:
@@ -255,19 +255,19 @@ func (c *User2Controller) TransferLegacyWeixins() {
|
||||
// @Param token header string true "认证token"
|
||||
// @Param consigneeName formData string true "收货人"
|
||||
// @Param consigneeMobile formData string true "收货人手机"
|
||||
// @Param address formData string true "详细地址"
|
||||
// @Param address formData string false "地址(区县以下,门牌号以上的地址信息)"
|
||||
// @Param detailAddress formData string false "门牌号"
|
||||
// @Param lng formData float64 true "经度"
|
||||
// @Param lat formData float64 true "纬度"
|
||||
// @Param tag formData string false "标签"
|
||||
// @Param remark formData string false "备注"
|
||||
// @Param isDefault formData bool false "是否是默认"
|
||||
// @Param isDefault formData int false "是否是默认"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /AddMyDeliveryAddress [post]
|
||||
func (c *User2Controller) AddMyDeliveryAddress() {
|
||||
c.callAddMyDeliveryAddress(func(params *tUser2AddMyDeliveryAddressParams) (retVal interface{}, errCode string, err error) {
|
||||
var address *model.UserDeliveryAddress
|
||||
params.MapData["isDefault"] = utils.Bool2Int(params.IsDefault)
|
||||
if err = utils.Map2StructByJson(params.MapData, &address, true); err == nil {
|
||||
retVal, err = cms.AddMyDeliveryAddress(params.Ctx, address)
|
||||
}
|
||||
@@ -295,7 +295,8 @@ func (c *User2Controller) DeleteMyDeliveryAddress() {
|
||||
// @Param addressID formData int true "地址ID"
|
||||
// @Param consigneeName formData string false "收货人"
|
||||
// @Param consigneeMobile formData string false "收货人手机"
|
||||
// @Param address formData string false "详细地址"
|
||||
// @Param address formData string false "地址(区县以下,门牌号以上的地址信息)"
|
||||
// @Param detailAddress formData string false "门牌号"
|
||||
// @Param lng formData float64 false "经度"
|
||||
// @Param lat formData float64 false "纬度"
|
||||
// @Param tag formData string false "标签"
|
||||
|
||||
Reference in New Issue
Block a user