query delivery
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user