query delivery

This commit is contained in:
苏尹岚
2020-11-03 15:01:26 +08:00
parent 686416521a
commit e1852e32c4
4 changed files with 12 additions and 7 deletions

View File

@@ -162,12 +162,13 @@ func (c *User2Controller) UpdateMyDeliveryAddress() {
// @Title 用户查询自己的配送地址
// @Description 用户查询自己的配送地址
// @Param token header string true "认证token"
// @Param type query int false "地址类型1是寄件人2是收货人"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /QueryMyDeliveryAddress [get]
func (c *User2Controller) QueryMyDeliveryAddress() {
c.callQueryMyDeliveryAddress(func(params *tUser2QueryMyDeliveryAddressParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.QueryMyDeliveryAddress(params.Ctx)
retVal, err = cms.QueryMyDeliveryAddress(params.Ctx, params.Type)
return retVal, "", err
})
}