| | |
| | | "wms/pkg/structx" |
| | | "wms/proto/product_inventory" |
| | | "wms/proto/purchase_wms" |
| | | "wms/proto/supplier" |
| | | "wms/request" |
| | | "wms/utils/http" |
| | | "wms/utils/upload" |
| | |
| | | return fileUrl, nil |
| | | |
| | | } |
| | | |
| | | // GetSupplierList |
| | | // @Tags 入库/出库 |
| | | // @Summary 获取物流公司列表 |
| | | // @Produce application/json |
| | | // |
| | | // @Success 200 {object} util.Response "成功" |
| | | // |
| | | // @Router /api-wms/v1/operation/getSupplierList [get] |
| | | func (slf OperationController) GetSupplierList(c *gin.Context) { |
| | | cli := supplier.NewSupplierServiceClient(supplier.SupplierConn) |
| | | resp, err := cli.GetSupplierList(c, &supplier.SupplierListRequest{Status: 1}) |
| | | if err != nil { |
| | | util.ResponseFormat(c, code.RequestParamError, "grpc调用失败:"+err.Error()) |
| | | return |
| | | } |
| | | util.ResponseFormat(c, code.Success, resp.List) |
| | | } |