| | |
| | | } |
| | | } |
| | | |
| | | // GetSupplierByNumber 用编码查询Supplier |
| | | // @Tags Supplier |
| | | // @Summary 用编码查询Supplier |
| | | // @Security ApiKeyAuth |
| | | // @accept application/json |
| | | // @Produce application/json |
| | | // @Param number path string true "供应商编码" |
| | | // @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}" |
| | | // @Router /s/getSupplierByNumber/{number} [get] |
| | | func (sApi *SupplierApi) GetSupplierByNumber(c *gin.Context) { |
| | | number := c.Param("number") |
| | | if number == "" { |
| | | response.FailWithMessage("编码参数不能为空", c) |
| | | return |
| | | } |
| | | if res, err := sService.GetSupplierByNumber(number); err != nil { |
| | | global.GVA_LOG.Error("查询失败!", zap.Error(err)) |
| | | response.FailWithMessage("查询失败", c) |
| | | } else { |
| | | response.OkWithData(gin.H{"res": res}, c) |
| | | } |
| | | } |
| | | |
| | | // GetSupplierList 分页获取Supplier列表 |
| | | // @Tags Supplier |
| | | // @Summary 分页获取Supplier列表 |