Bladeren bron

feat: 落点金额改为float

zhangxinlei1996 1 jaar geleden
bovenliggende
commit
c4f2a43920
3 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 1 1
      api/application.api
  2. 1 1
      api/internal/types/types.go
  3. 1 1
      service/sale_chance.go

+ 1 - 1
api/application.api

@@ -37,7 +37,7 @@ type (
 		Summary           string  `json:"summary"`                    //概要信息
 		ChanceClassify    int64   `json:"chanceClassify"`             //机会分类
 		ExpectedOrderTime int64   `json:"expectedOrderTime,optional"` //最初预计落单段时间 时间戳
-		ExpectedMoney     int64   `json:"expectedMoney,optional"`     //最初预计落单金额
+		ExpectedMoney     float64 `json:"expectedMoney,optional"`     //最初预计落单金额
 		CustomName        string  `json:"customName"`                 //客户全称
 		BusinessType      int64   `json:"businessType"`               //业务类型  1新客户需求 2老客户需求 3简易项目流程
 		Remarks           string  `json:"remarks,optional"`           //备注

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

@@ -37,7 +37,7 @@ type SaleChanceReq struct {
 	Summary           string  `json:"summary"`                    //概要信息
 	ChanceClassify    int64   `json:"chanceClassify"`             //机会分类
 	ExpectedOrderTime int64   `json:"expectedOrderTime,optional"` //最初预计落单段时间 时间戳
-	ExpectedMoney     int64   `json:"expectedMoney,optional"`     //最初预计落单金额
+	ExpectedMoney     float64 `json:"expectedMoney,optional"`     //最初预计落单金额
 	CustomName        string  `json:"customName"`                 //客户全称
 	BusinessType      int64   `json:"businessType"`               //业务类型  1新客户需求 2老客户需求 3简易项目流程
 	Remarks           string  `json:"remarks,optional"`           //备注

+ 1 - 1
service/sale_chance.go

@@ -31,7 +31,7 @@ type SaleChanceService struct {
 	Summary           string  //概要信息
 	ChanceClassify    int64   //机会分类
 	ExpectedOrderTime int64   //最初预计落单段时间 时间戳
-	ExpectedMoney     int64   //最初预计落单金额
+	ExpectedMoney     float64 //最初预计落单金额
 	CustomName        string  //客户全称
 	BusinessType      int64   //业务类型
 	Remarks           string  //备注