浏览代码

fix:更改请求方法

xmy 3 年之前
父节点
当前提交
cff43b2d7c
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      api/internal/types/types.go
  2. 2 2
      api/jyinfo.api

+ 2 - 2
api/internal/types/types.go

@@ -10,9 +10,9 @@ type PubInfoReq struct {
 	City         string                 `json:"city,optional"`
 	Industry     []string               `json:"industry,optional"`
 	Buyer        string                 `json:"buyer,optional"`
-	Budget       string                 `json:"budget,optional"`
+	Budget       float64                `json:"budget,optional"`
 	Winner       string                 `json:"winner,optional"`
-	Amount       string                 `json:"amount,optional"`
+	Amount       float64                `json:"amount,optional"`
 	Detail       string                 `json:"detail"`
 	Attach       map[string]interface{} `json:"attach,optional"`
 	Contact      Contact                `json:"contact"`

+ 2 - 2
api/jyinfo.api

@@ -9,9 +9,9 @@ type (
 		City         string                 `json:"city,optional"`
 		Industry     []string               `json:"industry,optional"`
 		Buyer        string                 `json:"buyer,optional"`
-		Budget       string                 `json:"budget,optional"`
+		Budget       float64                `json:"budget,optional"`
 		Winner       string                 `json:"winner,optional"`
-		Amount       string                 `json:"amount,optional"`
+		Amount       float64                `json:"amount,optional"`
 		Detail       string                 `json:"detail"`
 		Attach       map[string]interface{} `json:"attach,optional"`
 		Contact      Contact                `json:"contact"`