Browse Source

Merge branch 'dev_v1.0.4_wh' of CRM/application into feature/v1.0.4

王浩 1 year ago
parent
commit
7ef1b0472f
2 changed files with 18 additions and 15 deletions
  1. 1 0
      api/internal/handler/routes.go
  2. 17 15
      api/internal/types/types.go

+ 1 - 0
api/internal/handler/routes.go

@@ -143,5 +143,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
 				Handler: candidateChannelHandler(serverCtx),
 			},
 		},
+		rest.WithMaxBytes(104857600),
 	)
 }

+ 17 - 15
api/internal/types/types.go

@@ -258,20 +258,22 @@ type CoopHistoryReq struct {
 }
 
 type AddOrUpdateReq struct {
-	PositionId             int64  `header:"positionId"`
-	EntUserId              int64  `header:"entUserId,optional"`
-	EntId                  int64  `header:"entId,optional"`
-	EntDeptId              int64  `header:"entDeptId,optional"`
-	Company_id             string `json:"company_id,optional"`
-	Company_name           string `json:"company_name,optional"`
-	Contact_person         string `json:"contact_person"`
-	Contact_phone          string `json:"contact_phone"`
-	Introduce_owner_id     string `json:"introduce_owner_id,optional"`
-	Introduce_owner_name   string `json:"introduce_owner_name,optional"`
-	Introduce_project_id   string `json:"introduce_project_id,optional"`
-	Introduce_project_name string `json:"introduce_project_name,optional"`
-	Id                     int64  `json:"id,optional"`
-	Type                   string `json:"type"`
+	PositionId              int64  `header:"positionId"`
+	EntUserId               int64  `header:"entUserId,optional"`
+	EntId                   int64  `header:"entId,optional"`
+	EntDeptId               int64  `header:"entDeptId,optional"`
+	Qyxy_id                 string `json:"company_id,optional"`
+	Company_id              string `json:"company_id,optional"`
+	Company_name            string `json:"company_name,optional"`
+	Contact_person          string `json:"contact_person"`
+	Contact_phone           string `json:"contact_phone"`
+	Introduce_owner_id      string `json:"introduce_owner_id,optional"`
+	Introduce_owner_qyxy_id string `json:"introduce_owner_qyxy_id,optional"`
+	Introduce_owner_name    string `json:"introduce_owner_name,optional"`
+	Introduce_project_id    string `json:"introduce_project_id,optional"`
+	Introduce_project_name  string `json:"introduce_project_name,optional"`
+	Id                      int64  `json:"id,optional"`
+	Type                    string `json:"type"`
 }
 
 type AssociateReq struct {
@@ -285,7 +287,7 @@ type AllprojectReq struct {
 	EntAccountId int64  `header:"entAccountId"`
 	PositionId   int64  `header:"positionId"`
 	Name         string `json:"name,optional"`
-	Type         int64  `json:"type,optional"`
+	Type         string `json:"type,optional"`
 	Id           string `json:"id,optional"`
 }