瀏覽代碼

feat: 协议文件修改

zhangxinlei1996 1 年之前
父節點
當前提交
3a68a80e44
共有 3 個文件被更改,包括 66 次插入69 次删除
  1. 33 34
      api/application.api
  2. 0 1
      api/internal/logic/salechanceaddlogic.go
  3. 33 34
      api/internal/types/types.go

+ 33 - 34
api/application.api

@@ -29,21 +29,20 @@ type (
 		PositionId        int64    `header:"positionId,optional"`
 		EntUserId         int64    `header:"entUserId,optional"`
 		EntId             int64    `header:"entId,optional"`
-		ChanceName        string   `json:"chanceName"`        //机会名称
-		Owner             string   `json:"owner"`             //机会所有者
-		Summary           string   `json:"summary"`           //概要信息
-		ChanceClassify    int64    `json:"chanceClassify"`    //机会分类
-		ExpectedOrderTime int64    `json:"expectedOrderTime"` //最初预计落单段时间 时间戳
-		ExpectedMoney     int64    `json:"expectedOrderTime"` //最初预计落单金额
-		CustomName        string   `json:"customName"`        //客户全称
-		BusinessType      int64    `json:"businessType"`      //业务类型  1新客户需求 2老客户需求 3简易项目流程
-		Remarks           string   `json:"remarks"`           //备注
-		NextfollowUpTime  int64    `json:"nextfollowUpTime"`  //下次跟进时间戳
-		Types             int64    `json:"types"`             //处理方式 1自办;2转办
-		User              []string `json:"user"`              //企业用户id
-		EmployInfoId      int64    `json:"employInfoId"`      //资讯收录id
-		CustomId          int64    `json:"customId"`          //客户id
-		CreateName        string   `json:"createName"`        //创建人
+		ChanceName        string   `json:"chanceName"`                 //机会名称
+		Summary           string   `json:"summary"`                    //概要信息
+		ChanceClassify    int64    `json:"chanceClassify"`             //机会分类
+		ExpectedOrderTime int64    `json:"expectedOrderTime,optional"` //最初预计落单段时间 时间戳
+		ExpectedMoney     int64    `json:"expectedMoney,optional"`     //最初预计落单金额
+		CustomName        string   `json:"customName"`                 //客户全称
+		BusinessType      int64    `json:"businessType"`               //业务类型  1新客户需求 2老客户需求 3简易项目流程
+		Remarks           string   `json:"remarks,optional"`           //备注
+		NextfollowUpTime  int64    `json:"nextfollowUpTime,optional"`  //下次跟进时间戳
+		Types             int64    `json:"types"`                      //处理方式 1自办;2转办
+		User              []string `json:"user"`                       //企业用户id
+		EmployInfoId      int64    `json:"employInfoId"`               //资讯收录id
+		CustomId          int64    `json:"customId"`                   //客户id
+		CreateName        string   `json:"createName"`                 //创建人
 	}
 
 	EmployOperateReq {
@@ -94,25 +93,25 @@ type (
 		PositionId           int64    `header:"positionId,optional"`
 		EntUserId            int64    `header:"entUserId,optional"`
 		EntId                int64    `header:"entId,optional"`
-		CustomType           int64    `json:"customType"`           //客户类型
-		Summary              string   `json:"summary"`              //概要信息
-		CustomAllName        string   `json:"customAllName"`        //客户全称
-		CustomAbbreviation   string   `json:"customAbbreviation"`   //客户简称
-		CustomLevel          int64    `json:"customLevel"`          //客户级别
-		CustomIndustry       int64    `json:"customIndustry"`       //客户行业
-		CustomDetailIndustry int64    `json:"customDetailIndustry"` //客户细分行业
-		Province             string   `json:"province"`             //省份
-		City                 string   `json:"city"`                 //城市
-		District             string   `json:"district,optional"`    //地区
-		Address              string   `json:"address"`              //详细地址
-		CompanyPhone         string   `json:"companyPhone"`         //公司电话
-		NextfollowUpTime     int64    `json:"nextfollowUpTime"`     //下次跟进时间戳
-		Types                int64    `json:"types"`                //处理方式 1自办;2转办
-		User                 []string `json:"user"`                 //转办用户
-		EmployCustomId       int64    `json:"employCustomId"`       //客户收录id
-		EmployInfoId         int64    `json:"employInfoId"`         //资讯收录id
-		Remarks              string   `json:"remarks"`              //备注
-		CreateName           string   `json:"createName"`           //创建人
+		CustomType           int64    `json:"customType"`                //客户类型
+		Summary              string   `json:"summary"`                   //概要信息
+		CustomAllName        string   `json:"customAllName"`             //客户全称
+		CustomAbbreviation   string   `json:"customAbbreviation"`        //客户简称
+		CustomLevel          int64    `json:"customLevel,optional"`      //客户级别
+		CustomIndustry       int64    `json:"customIndustry"`            //客户行业
+		CustomDetailIndustry int64    `json:"customDetailIndustry"`      //客户细分行业
+		Province             string   `json:"province,optional"`         //省份
+		City                 string   `json:"city,optional"`             //城市
+		District             string   `json:"district,optional"`         //地区
+		Address              string   `json:"address,optional"`          //详细地址
+		CompanyPhone         string   `json:"companyPhone,optional"`     //公司电话
+		NextfollowUpTime     int64    `json:"nextfollowUpTime,optional"` //下次跟进时间戳
+		Types                int64    `json:"types"`                     //处理方式 1自办;2转办
+		User                 []string `json:"user"`                      //转办用户
+		EmployCustomId       int64    `json:"employCustomId,optional"`   //客户收录id
+		EmployInfoId         int64    `json:"employInfoId,optional"`     //资讯收录id
+		Remarks              string   `json:"remarks,optional"`          //备注
+		CreateName           string   `json:"createName"`                //创建人
 	}
 
 	FileUploadReq {

+ 0 - 1
api/internal/logic/salechanceaddlogic.go

@@ -33,7 +33,6 @@ func (l *SaleChanceAddLogic) SaleChanceAdd(req *types.SaleChanceReq) (resp *type
 		EntUserId:         req.EntUserId,
 		EntId:             req.EntId,
 		ChanceName:        req.ChanceName,        //机会名称
-		Owner:             req.Owner,             //机会所有者
 		Summary:           req.Summary,           //概要信息
 		ChanceClassify:    req.ChanceClassify,    //机会分类
 		ExpectedOrderTime: req.ExpectedOrderTime, //最初预计落单段时间 时间戳

+ 33 - 34
api/internal/types/types.go

@@ -29,21 +29,20 @@ type SaleChanceReq struct {
 	PositionId        int64    `header:"positionId,optional"`
 	EntUserId         int64    `header:"entUserId,optional"`
 	EntId             int64    `header:"entId,optional"`
-	ChanceName        string   `json:"chanceName"`        //机会名称
-	Owner             string   `json:"owner"`             //机会所有者
-	Summary           string   `json:"summary"`           //概要信息
-	ChanceClassify    int64    `json:"chanceClassify"`    //机会分类
-	ExpectedOrderTime int64    `json:"expectedOrderTime"` //最初预计落单段时间 时间戳
-	ExpectedMoney     int64    `json:"expectedOrderTime"` //最初预计落单金额
-	CustomName        string   `json:"customName"`        //客户全称
-	BusinessType      int64    `json:"businessType"`      //业务类型  1新客户需求 2老客户需求 3简易项目流程
-	Remarks           string   `json:"remarks"`           //备注
-	NextfollowUpTime  int64    `json:"nextfollowUpTime"`  //下次跟进时间戳
-	Types             int64    `json:"types"`             //处理方式 1自办;2转办
-	User              []string `json:"user"`              //企业用户id
-	EmployInfoId      int64    `json:"employInfoId"`      //资讯收录id
-	CustomId          int64    `json:"customId"`          //客户id
-	CreateName        string   `json:"createName"`        //创建人
+	ChanceName        string   `json:"chanceName"`                 //机会名称
+	Summary           string   `json:"summary"`                    //概要信息
+	ChanceClassify    int64    `json:"chanceClassify"`             //机会分类
+	ExpectedOrderTime int64    `json:"expectedOrderTime,optional"` //最初预计落单段时间 时间戳
+	ExpectedMoney     int64    `json:"expectedMoney,optional"`     //最初预计落单金额
+	CustomName        string   `json:"customName"`                 //客户全称
+	BusinessType      int64    `json:"businessType"`               //业务类型  1新客户需求 2老客户需求 3简易项目流程
+	Remarks           string   `json:"remarks,optional"`           //备注
+	NextfollowUpTime  int64    `json:"nextfollowUpTime,optional"`  //下次跟进时间戳
+	Types             int64    `json:"types"`                      //处理方式 1自办;2转办
+	User              []string `json:"user"`                       //企业用户id
+	EmployInfoId      int64    `json:"employInfoId"`               //资讯收录id
+	CustomId          int64    `json:"customId"`                   //客户id
+	CreateName        string   `json:"createName"`                 //创建人
 }
 
 type EmployOperateReq struct {
@@ -94,25 +93,25 @@ type CustomAddReq struct {
 	PositionId           int64    `header:"positionId,optional"`
 	EntUserId            int64    `header:"entUserId,optional"`
 	EntId                int64    `header:"entId,optional"`
-	CustomType           int64    `json:"customType"`           //客户类型
-	Summary              string   `json:"summary"`              //概要信息
-	CustomAllName        string   `json:"customAllName"`        //客户全称
-	CustomAbbreviation   string   `json:"customAbbreviation"`   //客户简称
-	CustomLevel          int64    `json:"customLevel"`          //客户级别
-	CustomIndustry       int64    `json:"customIndustry"`       //客户行业
-	CustomDetailIndustry int64    `json:"customDetailIndustry"` //客户细分行业
-	Province             string   `json:"province"`             //省份
-	City                 string   `json:"city"`                 //城市
-	District             string   `json:"district,optional"`    //地区
-	Address              string   `json:"address"`              //详细地址
-	CompanyPhone         string   `json:"companyPhone"`         //公司电话
-	NextfollowUpTime     int64    `json:"nextfollowUpTime"`     //下次跟进时间戳
-	Types                int64    `json:"types"`                //处理方式 1自办;2转办
-	User                 []string `json:"user"`                 //转办用户
-	EmployCustomId       int64    `json:"employCustomId"`       //客户收录id
-	EmployInfoId         int64    `json:"employInfoId"`         //资讯收录id
-	Remarks              string   `json:"remarks"`              //备注
-	CreateName           string   `json:"createName"`           //创建人
+	CustomType           int64    `json:"customType"`                //客户类型
+	Summary              string   `json:"summary"`                   //概要信息
+	CustomAllName        string   `json:"customAllName"`             //客户全称
+	CustomAbbreviation   string   `json:"customAbbreviation"`        //客户简称
+	CustomLevel          int64    `json:"customLevel,optional"`      //客户级别
+	CustomIndustry       int64    `json:"customIndustry"`            //客户行业
+	CustomDetailIndustry int64    `json:"customDetailIndustry"`      //客户细分行业
+	Province             string   `json:"province,optional"`         //省份
+	City                 string   `json:"city,optional"`             //城市
+	District             string   `json:"district,optional"`         //地区
+	Address              string   `json:"address,optional"`          //详细地址
+	CompanyPhone         string   `json:"companyPhone,optional"`     //公司电话
+	NextfollowUpTime     int64    `json:"nextfollowUpTime,optional"` //下次跟进时间戳
+	Types                int64    `json:"types"`                     //处理方式 1自办;2转办
+	User                 []string `json:"user"`                      //转办用户
+	EmployCustomId       int64    `json:"employCustomId,optional"`   //客户收录id
+	EmployInfoId         int64    `json:"employInfoId,optional"`     //资讯收录id
+	Remarks              string   `json:"remarks,optional"`          //备注
+	CreateName           string   `json:"createName"`                //创建人
 }
 
 type FileUploadReq struct {