Browse Source

往企业下边加人

WH01243 16 hours ago
parent
commit
8eea2018f0

+ 35 - 27
api/biService.api

@@ -191,6 +191,11 @@ type (
 		OldCompanyName string `json:"oldCompanyName"`
 		OldEntId       int64  `json:"oldEntId"`
 	}
+	AddEntPersonReq {
+		EntId      int64  `json:"entId"`
+		Phone      string `json:"phone"`
+		PersonName string `json:"personName"`
+	}
 )
 
 @server (
@@ -200,102 +205,105 @@ type (
 service biService-api {
 	@handler MyDataAsset
 	post /biService/myDataAsset (myDataAssetReq) returns (biResp)
-	
+
 	@handler AddProjectReq
 	post /biService/addProject (addProjectReq) returns (biResp)
-	
+
 	@handler GetInfoId
 	post /biService/getInfoId (getInfoIdReq) returns (biResp)
-	
+
 	@handler DrawClue
 	post /biService/drawClue (drawClueReq) returns (biResp)
-	
+
 	@handler Call
 	post /biService/call (callReq) returns (biResp) //拨打电话
-	
+
 	@handler DistributeClue
 	post /biService/distributeClue (DistributeClueReq) returns (biResp)
-	
+
 	@handler DistributeClueShow
 	post /biService/distributeClueShow (DistributeClueShowReq) returns (biResp)
-	
+
 	@handler ClueImport
 	post /biService/clueImport (ClueImportReq) returns (biResp)
-	
+
 	@handler ClueAdd
 	post /biService/ClueAdd (ClueAddReq) returns (biResp)
-	
+
 	@handler ClueImportTl
 	post /biService/clueImportTt (ClueImportReq) returns (biResp)
-	
+
 	@handler AutoFollow
 	post /biService/autoFollow (callReq) returns (biResp)
-	
+
 	@doc "bi通用接口"
 	@handler sqlManage
 	post /biService/sqlManage (SqlManageReq) returns (biResp)
-	
+
 	@doc "用户身份"
 	@handler Myinfo
 	post /biService/myInfo (MyInfoReq) returns (biResp)
-	
+
 	@doc "资源中台授权"
 	@handler ResEmpower
 	post /biService/resEmpower (ResEmpowerReq) returns (biResp)
-	
+
 	@doc "项目全量导出"
 	@handler allProjectExport
 	post /biService/allProjectExport (ExportReq) returns (biResp)
-	
+
 	@doc "资讯全量导出"
 	@handler allInfoExport
 	post /biService/allInfoExport (ExportReq) returns (biResp)
-	
+
 	@doc "资讯操作"
 	@handler infoOperate
 	post /biService/infoOperate (OperateReq) returns (biResp)
-	
+
 	@doc "公司类型"
 	@handler getCompanyType
 	post /biService/getCompanyType (getCompanyTypeReq) returns (biResp)
-	
+
 	@doc "数据导出(通用),发邮件"
 	@handler sendMail
 	post /biService/sendMail (ExportByDbReq) returns (biResp)
-	
+
 	@doc "附件上传"
 	@handler upFile
 	post /biService/upFile (UpFileReq) returns (biResp)
-	
+
 	@doc "发送邮件"
 	@handler sendComMail
 	post /biService/sendCommonndMail (SendMailReq) returns (biResp)
-	
+
 	@doc "新增受理单"
 	@handler addAcceptance
 	post /biService/addAcceptance (AcceptanceReq) returns (biResp)
-	
+
 	@doc "创建线索"
 	@handler createClue
 	post /biService/createClueByPhone (CreateClueReq) returns (biResp)
-	
+
 	@doc "客成线索移交"
 	@handler transferClueSucc
 	post /biService/transferClueByPhone (TransferClueReq) returns (biResp)
-	
+
 	@doc "线索查询"
 	@handler findClueInfo
 	post /biService/findClueInfo (FindClueInfoReq) returns (biResp)
-	
+
 	@doc "线索验重 列表"
 	@handler getClueInfoList
 	post /biService/getClueInfoList (ClueInfoReq) returns (biResp)
-	
+
 	@handler MaterialSave
 	post /biService/materialSave (MaterialSaveReq) returns (biResp)
 	@handler ClueTransfer
 	post /biService/clueTransfer (ClueTransferReq) returns (biResp)
-	
+
 	@handler UpdateCompanyNameReq
 	post /biService/updateCompanyNameReq (UpdateCompanyNameReq) returns (biResp)
+
+	@handler AddEntPerson
+	post /biService/AddEntPerson (AddEntPersonReq) returns (biResp)
 }

+ 28 - 0
api/internal/handler/addentpersonhandler.go

@@ -0,0 +1,28 @@
+package handler
+
+import (
+	"net/http"
+
+	"bp.jydev.jianyu360.cn/BaseService/biService/api/internal/logic"
+	"bp.jydev.jianyu360.cn/BaseService/biService/api/internal/svc"
+	"bp.jydev.jianyu360.cn/BaseService/biService/api/internal/types"
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func AddEntPersonHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.AddEntPersonReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.ErrorCtx(r.Context(), w, err)
+			return
+		}
+
+		l := logic.NewAddEntPersonLogic(r.Context(), svcCtx)
+		resp, err := l.AddEntPerson(&req)
+		if err != nil {
+			httpx.ErrorCtx(r.Context(), w, err)
+		} else {
+			httpx.OkJsonCtx(r.Context(), w, resp)
+		}
+	}
+}

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

@@ -157,6 +157,12 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
 				Path:    "/biService/updateCompanyNameReq",
 				Handler: UpdateCompanyNameReqHandler(serverCtx),
 			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/biService/AddEntPerson",
+				Handler: AddEntPersonHandler(serverCtx),
+			},
 		},
+		rest.WithMaxBytes(104857600),
 	)
 }

+ 37 - 0
api/internal/logic/addentpersonlogic.go

@@ -0,0 +1,37 @@
+package logic
+
+import (
+	"bp.jydev.jianyu360.cn/BaseService/biService/rpc/biservice"
+	"context"
+	"fmt"
+
+	"bp.jydev.jianyu360.cn/BaseService/biService/api/internal/svc"
+	"bp.jydev.jianyu360.cn/BaseService/biService/api/internal/types"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type AddEntPersonLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+}
+
+func NewAddEntPersonLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddEntPersonLogic {
+	return &AddEntPersonLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+	}
+}
+
+func (l *AddEntPersonLogic) AddEntPerson(req *types.AddEntPersonReq) (resp *types.BiResp, err error) {
+	// todo: add your logic here and delete this line
+	fmt.Println(req)
+	res, err := l.svcCtx.BiServiceRpc.AddEntPerson(l.ctx, &biservice.AddEntPersonReq{
+		EntId:      req.EntId,
+		Phone:      req.Phone,
+		PersonName: req.PersonName,
+	})
+	return &types.BiResp{Error_code: res.ErrorCode, Error_msg: res.ErrorMsg, Data: res.Data}, err
+}

+ 16 - 17
api/internal/svc/servicecontext.go

@@ -6,7 +6,6 @@ import (
 	"bp.jydev.jianyu360.cn/BaseService/biService/rpc/biservice"
 	"bp.jydev.jianyu360.cn/BaseService/resourceCenter/rpc/resource"
 	"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/usercenter"
-	"github.com/zeromicro/go-zero/core/discov"
 	"github.com/zeromicro/go-zero/zrpc"
 )
 
@@ -22,26 +21,26 @@ func NewServiceContext(c config.Config) *ServiceContext {
 	return &ServiceContext{
 		Config:       c,
 		BiServiceRpc: biservice.NewBiService(zrpc.MustNewClient(c.BiServiceRpc)),
-		ResourceCenterRpc: resource.NewResource(zrpc.MustNewClient(zrpc.RpcClientConf{
+		/*ResourceCenterRpc: resource.NewResource(zrpc.MustNewClient(zrpc.RpcClientConf{
 			Etcd: discov.EtcdConf{
 				Hosts: c.BiServiceRpc.Etcd.Hosts,
 				//Hosts: []string{"172.31.31.205:2379"},
 				Key: c.ResourceCenterKey,
 			},
-		})),
-		UserCenterRpc: usercenter.NewUserCenter(zrpc.MustNewClient(zrpc.RpcClientConf{
-			Etcd: discov.EtcdConf{
-				Hosts: c.BiServiceRpc.Etcd.Hosts,
-				//Hosts: []string{"172.31.31.205:2379"},
-				Key: c.UserCenterKey,
-			},
-		})),
-		MessageCenterRpc: messageclient.NewMessage(zrpc.MustNewClient(zrpc.RpcClientConf{
-			Etcd: discov.EtcdConf{
-				Hosts: c.BiServiceRpc.Etcd.Hosts,
-				//Hosts: []string{"172.31.31.205:2379"},
-				Key: c.MessageCenterKey,
-			},
-		})),
+		})),*/
+		/*	UserCenterRpc: usercenter.NewUserCenter(zrpc.MustNewClient(zrpc.RpcClientConf{
+				Etcd: discov.EtcdConf{
+					Hosts: c.BiServiceRpc.Etcd.Hosts,
+					//Hosts: []string{"172.31.31.205:2379"},
+					Key: c.UserCenterKey,
+				},
+			})),
+			MessageCenterRpc: messageclient.NewMessage(zrpc.MustNewClient(zrpc.RpcClientConf{
+				Etcd: discov.EtcdConf{
+					Hosts: c.BiServiceRpc.Etcd.Hosts,
+					//Hosts: []string{"172.31.31.205:2379"},
+					Key: c.MessageCenterKey,
+				},
+			})),*/
 	}
 }

+ 6 - 0
api/internal/types/types.go

@@ -216,3 +216,9 @@ type UpdateCompanyNameReq struct {
 	OldCompanyName string `json:"oldCompanyName"`
 	OldEntId       int64  `json:"oldEntId"`
 }
+
+type AddEntPersonReq struct {
+	EntId      int64  `json:"entId"`
+	Phone      string `json:"phone"`
+	PersonName string `json:"personName"`
+}

+ 7 - 1
rpc/biService.proto

@@ -284,7 +284,7 @@ message MaterialSaveReq {
 message MaterialSaveResp {
   int64 error_code = 1;
   string error_msg = 2;
-  int64 msg_id =3;
+  int64 msg_id = 3;
   int64 Material_id = 5;
   repeated string userIdArr = 4;
 }
@@ -305,6 +305,11 @@ message UpdateCompanyNameReq {
   string oldCompanyName = 5; //原企业名称
   int64 oldEntId = 6; //原企业id
 }
+message AddEntPersonReq {
+  int64 entId = 1;
+  string phone = 2;
+  string PersonName = 3;
+}
 
 service BiService {
   rpc myDataAsset (MyDataAssetReq) returns (MyDataAssetResp); //我的数据资产
@@ -335,4 +340,5 @@ service BiService {
   rpc MaterialSave(MaterialSaveReq) returns(MaterialSaveResp);//物料分发保存
   rpc clueTransfer(ClueTransferReq) returns(BiResp);
   rpc updateCompanyName(UpdateCompanyNameReq) returns(BiResp);
+  rpc  AddEntPerson(AddEntPersonReq) returns(BiResp);
 }

+ 10 - 9
rpc/biservice.go

@@ -12,7 +12,6 @@ import (
 	"bp.jydev.jianyu360.cn/BaseService/fileCenter/rpc/filecenter"
 	"flag"
 	"fmt"
-	"github.com/nsqio/go-nsq"
 	"github.com/zeromicro/go-zero/core/conf"
 	"github.com/zeromicro/go-zero/core/logx"
 	"github.com/zeromicro/go-zero/zrpc"
@@ -30,29 +29,31 @@ func main() {
 	entity.PublicKey = IC.IC.PublicKey
 	entity.InitMysql(IC.IC.Mysql.JianYu, IC.IC.Mysql.JyDoc, IC.IC.Mysql.Bi, IC.IC.Mysql.Tidb, IC.IC.Mysql.BiTidb, IC.IC.Mysql.CallTidb, IC.IC.Mysql.BiService, IC.IC.Mysql.WorkOrder, IC.IC.Mysql.Crm)
 	entity.InitMail(IC.IC.Mail)
-	entity.InitMongo(IC.IC.Mongo.Qfw.MongodbAddr, IC.IC.Mongo.Qfw.DbName, IC.IC.Mongo.Qfw.Size)
-	entity.InitBiddingMgo(IC.IC.Mongo.Bidding.MongodbAddr, IC.IC.Mongo.Bidding.DbName, IC.IC.Mongo.Bidding.UserName, IC.IC.Mongo.Bidding.Password, IC.IC.Mongo.Bidding.Size)
-	entity.InitQyxyMgo(IC.IC.Mongo.Qyxy.MongodbAddr, IC.IC.Mongo.Qyxy.DbName, IC.IC.Mongo.Qyxy.UserName, IC.IC.Mongo.Qyxy.Password, IC.IC.Mongo.Qyxy.Size)
-	entity.InitEs(IC.IC.Es.Version, IC.IC.Es.Address, IC.IC.Es.UserName, IC.IC.Es.Password, IC.IC.Es.DbSize)
-	entity.InitEntEs(IC.IC.EntEs.Version, IC.IC.EntEs.Address, IC.IC.EntEs.UserName, IC.IC.EntEs.Password, IC.IC.EntEs.DbSize)
+	//entity.InitMongo(IC.IC.Mongo.Qfw.MongodbAddr, IC.IC.Mongo.Qfw.DbName, IC.IC.Mongo.Qfw.Size)
+	//entity.InitBiddingMgo(IC.IC.Mongo.Bidding.MongodbAddr, IC.IC.Mongo.Bidding.DbName, IC.IC.Mongo.Bidding.UserName, IC.IC.Mongo.Bidding.Password, IC.IC.Mongo.Bidding.Size)
+	//entity.InitQyxyMgo(IC.IC.Mongo.Qyxy.MongodbAddr, IC.IC.Mongo.Qyxy.DbName, IC.IC.Mongo.Qyxy.UserName, IC.IC.Mongo.Qyxy.Password, IC.IC.Mongo.Qyxy.Size)
+	//entity.InitEs(IC.IC.Es.Version, IC.IC.Es.Address, IC.IC.Es.UserName, IC.IC.Es.Password, IC.IC.Es.DbSize)
+	//entity.InitEntEs(IC.IC.EntEs.Version, IC.IC.EntEs.Address, IC.IC.EntEs.UserName, IC.IC.EntEs.Password, IC.IC.EntEs.DbSize)
 	entity.InitArea()
 	entity.InitRedis(IC.IC.RedisAddress)
-	entity.InitConfig(IC.IC.ExportDirectory, IC.IC.ComFileDir, IC.IC.UpdateProjectUrl, IC.IC.ExportUrl, IC.IC.ComFileUrl, IC.IC.ExportCount)
+	//entity.InitConfig(IC.IC.ExportDirectory, IC.IC.ComFileDir, IC.IC.UpdateProjectUrl, IC.IC.ExportUrl, IC.IC.ComFileUrl, IC.IC.ExportCount)
 	//合力亿捷
-	entity.GetHlyj(IC.IC.Hlyj.Appid, IC.IC.Hlyj.Account, IC.IC.Hlyj.Secret, IC.IC.Hlyj.TokenUrl, IC.IC.Hlyj.CallUrl, IC.IC.Hlyj.Integratedid, IC.IC.Hlyj.CallFlag)
+	//entity.GetHlyj(IC.IC.Hlyj.Appid, IC.IC.Hlyj.Account, IC.IC.Hlyj.Secret, IC.IC.Hlyj.TokenUrl, IC.IC.Hlyj.CallUrl, IC.IC.Hlyj.Integratedid, IC.IC.Hlyj.CallFlag)
 	entity.InitMiddleground(IC.IC.RpcServerConf.Etcd.Hosts, IC.IC.ResourceCenterKey)
 
 	entity.FileCenterRpc = filecenter.NewFileCenter(zrpc.MustNewClient(IC.IC.FileCenterRpc))
 	entity.OssBucketName = IC.IC.OssBucketName
 	entity.OssUrl = IC.IC.OssUrl
 	//nsq
-	config := nsq.NewConfig()
+	/*config := nsq.NewConfig()
 	consumer, err := nsq.NewConsumer(IC.IC.TopicName, "jy_position_sync", config)
 	if err != nil {
 		fmt.Println(err)
 	}
 	consumer.AddHandler(&entity.Handler{})
 	err = consumer.ConnectToNSQLookupd(IC.IC.NsqUrl)
+	*/
+
 	if err != nil {
 		fmt.Println(err)
 	}

+ 8 - 1
rpc/biservice/biservice.go

@@ -1,4 +1,4 @@
-// Code generated by goctl. DO NOT EDIT!
+// Code generated by goctl. DO NOT EDIT.
 // Source: biService.proto
 
 package biservice
@@ -16,6 +16,7 @@ type (
 	Acceptance             = pb.Acceptance
 	AcceptanceReq          = pb.AcceptanceReq
 	AcceptanceResp         = pb.AcceptanceResp
+	AddEntPersonReq        = pb.AddEntPersonReq
 	AddProject             = pb.AddProject
 	AddProjectReq          = pb.AddProjectReq
 	AddProjectResp         = pb.AddProjectResp
@@ -86,6 +87,7 @@ type (
 		MaterialSave(ctx context.Context, in *MaterialSaveReq, opts ...grpc.CallOption) (*MaterialSaveResp, error)
 		ClueTransfer(ctx context.Context, in *ClueTransferReq, opts ...grpc.CallOption) (*BiResp, error)
 		UpdateCompanyName(ctx context.Context, in *UpdateCompanyNameReq, opts ...grpc.CallOption) (*BiResp, error)
+		AddEntPerson(ctx context.Context, in *AddEntPersonReq, opts ...grpc.CallOption) (*BiResp, error)
 	}
 
 	defaultBiService struct {
@@ -238,3 +240,8 @@ func (m *defaultBiService) UpdateCompanyName(ctx context.Context, in *UpdateComp
 	client := pb.NewBiServiceClient(m.cli.Conn())
 	return client.UpdateCompanyName(ctx, in, opts...)
 }
+
+func (m *defaultBiService) AddEntPerson(ctx context.Context, in *AddEntPersonReq, opts ...grpc.CallOption) (*BiResp, error) {
+	client := pb.NewBiServiceClient(m.cli.Conn())
+	return client.AddEntPerson(ctx, in, opts...)
+}

+ 3 - 2
rpc/etc/biservice.yaml

@@ -156,8 +156,8 @@ productArr:
     productCode: dk
     isAddMarketing: true
     personArr:
-      - name: 孙振杰
-        phone: '19838689199'
+      - name: 白小翠
+        phone: '13592557533'
         isResign: false
 
   - product: 物业专版
@@ -198,3 +198,4 @@ materialMsg:
   title: "您有1个宣传物料需要发布!"
   content: "%s给你分享了运营宣传物料,请及时处理。点击查看详情。"
 jyWebDomain: "https://jybx2-webtest.jydev.jianyu360.com"
+paymentAddress: "172.31.31.205:8170"

+ 187 - 0
rpc/etc/biservice1.yaml

@@ -0,0 +1,187 @@
+Name: biservice.rpc
+ListenOn: 0.0.0.0:9986
+Etcd:
+  Hosts:
+    - 127.0.0.1:2379
+  Key: biservice.rpc
+Timeout: 300000
+Mode: test
+Mysql:
+  WorkOrder:
+    DBName: work_order
+    Address: 172.20.45.129:4000
+    UserName: root
+    PassWord: =PDT49#80Z!RVv52_z
+    MaxOpenConns: 5
+    MaxIdleConns: 5
+  JianYu:
+    DBName: jianyu
+    Address: 172.20.45.129:4000
+    UserName: jianyu
+    PassWord: Topnet123
+    MaxOpenConns: 5
+    MaxIdleConns: 5
+  JyDoc:
+    DBName: jydocs
+    Address: 172.20.45.129:4000
+    UserName: jianyu
+    PassWord: Topnet123
+    MaxOpenConns: 5
+    MaxIdleConns: 5
+  Bi:
+    DBName: jianyu_subjectdb_test
+    Address: 127.0.0.1:33063
+    UserName: datagroup
+    PassWord: "Dgrpdb#2024@36"
+    MaxOpenConns: 5
+    MaxIdleConns: 5
+  Tidb:
+    DBName: base_service
+    Address: 172.20.45.129:4000
+    UserName: root
+    PassWord: "=PDT49#80Z!RVv52_z"
+    MaxOpenConns: 5
+    MaxIdleConns: 5
+  BiTidb:
+    DBName: jianyu_subjectdb_test
+    Address: 127.0.0.1:33063
+    UserName: datagroup
+    PassWord: "Dgrpdb#2024@36"
+    MaxOpenConns: 20
+    MaxIdleConns: 20
+  CallTidb:
+    DBName: Call_Accounting
+    Address: 127.0.0.1:33063
+    UserName: datagroup
+    PassWord: "Dgrpdb#2024@36"
+    MaxOpenConns: 5
+    MaxIdleConns: 5
+  BiService:
+    DBName: bi_service
+    Address: 172.20.45.129:4000
+    UserName: root
+    PassWord: "=PDT49#80Z!RVv52_z"
+    MaxOpenConns: 5
+    MaxIdleConns: 5
+  Crm:
+    DBName: crm
+    Address: 172.20.45.129:4000
+    UserName: root
+    PassWord: "=PDT49#80Z!RVv52_z"
+    MaxOpenConns: 5
+    MaxIdleConns: 5
+Mongo:
+  Qfw:
+    MongodbAddr: 172.20.45.129:27002,172.20.45.130:27080
+    DbName: qfw
+    Size: 10
+  Bidding:
+    MongodbAddr: 172.20.45.129:27002,172.20.45.130:27080
+    DbName: qfw
+    UserName:
+    Password:
+    Size: 10
+  Qyxy:
+    MongodbAddr: 172.20.45.129:27002,172.20.45.130:27080
+    DbName: mixdata
+    UserName: ""
+    Password: ""
+    Size: 10
+Es:
+  Address: http://172.20.45.129:9206,http://172.20.45.130:9306
+  DbSize: 10
+  Version: v7
+  UserName: ""
+  Password: ""
+  Index: bidding
+  IType: bidding
+EntEs:
+  Address: http://172.20.45.129:9206,http://172.20.45.130:9306
+  DbSize: 10
+  Version: v7
+  UserName: ""
+  Password: ""
+Logx:
+  Mode: console #console|file|volume
+  Path: logs
+  Level: info #info|error|severe
+  KeepDays: 100
+CustomerCol: customer
+AddCountLimit: 500
+DrawCountLimit: 1000
+TopicName: jy_position_sync
+NsqUrl: 172.20.45.129:4161
+#合力亿捷account_token存储
+RedisAddress:
+  - newother=172.20.45.129:1712
+  - session=172.20.45.129:1713
+#合力亿捷相关调用参数
+Hlyj:
+  Appid: w4w2ex0bnt1n61or
+  Account: N000000029739
+  Secret: 3c8f7dd04d2c11edb786132b38c4d48a
+  TokenUrl: https://a1.7x24cc.com/accessToken #获取token接口
+  CallFlag: 104 #外呼集成的接口号
+  CallUrl: https://a1.7x24cc.com/commonInte #外呼集成接口
+  Integratedid: "8546"
+PublicKey: "791c521fec164e6c"
+Mail:
+  - Addr: smtp.exmail.qq.com
+    Port: 465
+    Pwd: "ue9Rg9Sf4CVtdm5a"
+    User: "public03@topnet.net.cn"
+  - Addr: smtp.exmail.qq.com
+    Port: 465
+    Pwd: "ue9Rg9Sf4CVtdm5a"
+    User: "public03@topnet.net.cn"
+UpdateProjectUrl: "http://127.0.0.1:7778/updateProject"
+ExportDirectory: "/home/tietaRes"
+ExportUrl: "https://jybx-webtest.jydev.jianyu360.com/tietaRes"
+ExportCount: 15000
+#新增
+ComFileDir: "/home/biComFileRes"
+ComFileUrl: "https://jybx-webtest.jydev.jianyu360.com/biComFileRes"
+ResourceCenterKey: resource.rpc
+FileCenterRpc:
+  Etcd:
+    Hosts:
+      - 127.0.0.1:2379
+    Key: filecenter.rpc
+ossBucketName: jytest2022
+ossUrl: https://jytest2022.oss-cn-beijing.aliyuncs.com
+allocationCap: 20
+entId: 25917
+productArr:
+  - product: 数据流量包,结构化数据,API接口,广告服务
+    productCode: dk
+    personArr:
+      - name: 孙振杰
+        phone: '18103853130'
+      - name: 朱凤超
+        phone: '13027770072'
+      - name: 张文福
+        phone: '15615600992'
+  - product: 物业专版
+    productCode: scdk
+    personArr:
+      - name: 张文福
+        phone: '15615600992'
+  - product: 咨询服务
+    productCode: zx
+    personArr:
+      - name: 张鹏
+        phone: '13911111304'
+  - product: 三方服务
+    productCode: sc1
+    personArr:
+      - name: 贾路瑶
+        phone: '19588533063'
+  - product: 渠道合作
+    productCode: sc
+    personArr:
+      - name: 刘亚丽
+        phone: '15136225931'
+      - name: 王浩
+        phone: '13164329511'
+
+

+ 2 - 1
rpc/internal/config/config.go

@@ -104,5 +104,6 @@ type Config struct {
 		Title   string
 		Content string
 	}
-	JyWebDomain string
+	JyWebDomain    string
+	PaymentAddress string
 }

+ 41 - 0
rpc/internal/logic/addentpersonlogic.go

@@ -0,0 +1,41 @@
+package logic
+
+import (
+	"app.yhyue.com/moapp/jybase/common"
+	IC "bp.jydev.jianyu360.cn/BaseService/biService/rpc/internal/config"
+	"bp.jydev.jianyu360.cn/BaseService/biService/service"
+	"context"
+	"github.com/gogf/gf/v2/util/gconv"
+
+	"bp.jydev.jianyu360.cn/BaseService/biService/rpc/internal/svc"
+	"bp.jydev.jianyu360.cn/BaseService/biService/rpc/pb"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type AddEntPersonLogic struct {
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	logx.Logger
+}
+
+func NewAddEntPersonLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddEntPersonLogic {
+	return &AddEntPersonLogic{
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		Logger: logx.WithContext(ctx),
+	}
+}
+
+func (l *AddEntPersonLogic) AddEntPerson(in *pb.AddEntPersonReq) (*pb.BiResp, error) {
+	// todo: add your logic here and delete this line
+	status, err := service.AddEntPerrson(in.EntId, in.Phone, in.PersonName, IC.IC.PaymentAddress)
+	errMsg := ""
+	if err != nil {
+		errMsg = err.Error()
+	}
+	return &pb.BiResp{
+		ErrorCode: gconv.Int64(common.If(status, 0, 1)),
+		ErrorMsg:  errMsg,
+	}, err
+}

+ 6 - 1
rpc/internal/server/biserviceserver.go

@@ -1,4 +1,4 @@
-// Code generated by goctl. DO NOT EDIT!
+// Code generated by goctl. DO NOT EDIT.
 // Source: biService.proto
 
 package server
@@ -161,3 +161,8 @@ func (s *BiServiceServer) UpdateCompanyName(ctx context.Context, in *pb.UpdateCo
 	l := logic.NewUpdateCompanyNameLogic(ctx, s.svcCtx)
 	return l.UpdateCompanyName(in)
 }
+
+func (s *BiServiceServer) AddEntPerson(ctx context.Context, in *pb.AddEntPersonReq) (*pb.BiResp, error) {
+	l := logic.NewAddEntPersonLogic(ctx, s.svcCtx)
+	return l.AddEntPerson(in)
+}

+ 201 - 114
rpc/pb/biService.pb.go

@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
-// 	protoc-gen-go v1.28.0
-// 	protoc        v3.19.4
+// 	protoc-gen-go v1.31.0
+// 	protoc        v3.15.1
 // source: biService.proto
 
 package pb
@@ -3161,6 +3161,69 @@ func (x *UpdateCompanyNameReq) GetOldEntId() int64 {
 	return 0
 }
 
+type AddEntPersonReq struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	EntId      int64  `protobuf:"varint,1,opt,name=entId,proto3" json:"entId,omitempty"`
+	Phone      string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
+	PersonName string `protobuf:"bytes,3,opt,name=PersonName,proto3" json:"PersonName,omitempty"`
+}
+
+func (x *AddEntPersonReq) Reset() {
+	*x = AddEntPersonReq{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_biService_proto_msgTypes[43]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *AddEntPersonReq) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*AddEntPersonReq) ProtoMessage() {}
+
+func (x *AddEntPersonReq) ProtoReflect() protoreflect.Message {
+	mi := &file_biService_proto_msgTypes[43]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use AddEntPersonReq.ProtoReflect.Descriptor instead.
+func (*AddEntPersonReq) Descriptor() ([]byte, []int) {
+	return file_biService_proto_rawDescGZIP(), []int{43}
+}
+
+func (x *AddEntPersonReq) GetEntId() int64 {
+	if x != nil {
+		return x.EntId
+	}
+	return 0
+}
+
+func (x *AddEntPersonReq) GetPhone() string {
+	if x != nil {
+		return x.Phone
+	}
+	return ""
+}
+
+func (x *AddEntPersonReq) GetPersonName() string {
+	if x != nil {
+		return x.PersonName
+	}
+	return ""
+}
+
 var File_biService_proto protoreflect.FileDescriptor
 
 var file_biService_proto_rawDesc = []byte{
@@ -3548,86 +3611,95 @@ var file_biService_proto_rawDesc = []byte{
 	0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x6c, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e,
 	0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x49,
 	0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6f, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x49,
-	0x64, 0x32, 0xe9, 0x09, 0x0a, 0x09, 0x42, 0x69, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
-	0x30, 0x0a, 0x0b, 0x6d, 0x79, 0x44, 0x61, 0x74, 0x61, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x0f,
-	0x2e, 0x4d, 0x79, 0x44, 0x61, 0x74, 0x61, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x1a,
-	0x10, 0x2e, 0x4d, 0x79, 0x44, 0x61, 0x74, 0x61, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73,
-	0x70, 0x12, 0x2d, 0x0a, 0x0a, 0x61, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12,
-	0x0e, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x1a,
-	0x0f, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70,
-	0x12, 0x2b, 0x0a, 0x09, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x49, 0x64, 0x12, 0x0e, 0x2e,
-	0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e,
-	0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x29, 0x0a,
-	0x08, 0x64, 0x72, 0x61, 0x77, 0x43, 0x6c, 0x75, 0x65, 0x12, 0x0c, 0x2e, 0x44, 0x72, 0x61, 0x77,
-	0x43, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f,
-	0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x19, 0x0a, 0x04, 0x43, 0x61, 0x6c, 0x6c,
-	0x12, 0x08, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x07, 0x2e, 0x42, 0x69, 0x52,
-	0x65, 0x73, 0x70, 0x12, 0x35, 0x0a, 0x0e, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
-	0x65, 0x43, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75,
-	0x74, 0x65, 0x43, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x41, 0x64, 0x64, 0x50,
-	0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2d, 0x0a, 0x0a, 0x63, 0x6c,
-	0x75, 0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x0e, 0x2e, 0x43, 0x6c, 0x75, 0x65, 0x49,
-	0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x43, 0x6c, 0x75, 0x65, 0x49,
-	0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x07, 0x63, 0x6c, 0x75,
-	0x65, 0x41, 0x64, 0x64, 0x12, 0x0b, 0x2e, 0x43, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x52, 0x65,
-	0x71, 0x1a, 0x0f, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65,
-	0x73, 0x70, 0x12, 0x2f, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74,
-	0x54, 0x74, 0x12, 0x0e, 0x2e, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52,
-	0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52,
-	0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x6f, 0x46, 0x6f, 0x6c, 0x6c, 0x6f,
-	0x77, 0x12, 0x08, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x43, 0x6c,
-	0x75, 0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a, 0x09,
-	0x73, 0x71, 0x6c, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x12, 0x0d, 0x2e, 0x53, 0x71, 0x6c, 0x4d,
-	0x61, 0x6e, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70,
-	0x6c, 0x79, 0x12, 0x1e, 0x0a, 0x06, 0x6d, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0a, 0x2e, 0x4d,
-	0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70,
-	0x6c, 0x79, 0x12, 0x25, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x45, 0x78, 0x70,
-	0x6f, 0x72, 0x74, 0x12, 0x0a, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a,
-	0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x61, 0x6c, 0x6c,
-	0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x0a, 0x2e,
-	0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65,
-	0x70, 0x6c, 0x79, 0x12, 0x24, 0x0a, 0x0b, 0x69, 0x6e, 0x66, 0x6f, 0x4f, 0x70, 0x65, 0x72, 0x61,
-	0x74, 0x65, 0x12, 0x0b, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x1a,
-	0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x2b, 0x0a, 0x0e, 0x67, 0x65, 0x74,
-	0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x2e, 0x43, 0x6f,
-	0x6d, 0x70, 0x61, 0x6e, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61,
-	0x6e, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x45, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69,
-	0x62, 0x75, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x12, 0x16, 0x2e, 0x44,
-	0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x65, 0x53, 0x68, 0x6f,
-	0x77, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
-	0x65, 0x43, 0x6c, 0x75, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a,
-	0x08, 0x73, 0x65, 0x6e, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x12, 0x0e, 0x2e, 0x45, 0x78, 0x70, 0x6f,
-	0x72, 0x74, 0x42, 0x79, 0x44, 0x62, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65,
-	0x70, 0x6c, 0x79, 0x12, 0x1e, 0x0a, 0x06, 0x75, 0x70, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x0a, 0x2e,
-	0x55, 0x70, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65,
-	0x70, 0x6c, 0x79, 0x12, 0x28, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x6f,
-	0x6e, 0x4d, 0x61, 0x69, 0x6c, 0x12, 0x0c, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x61, 0x69, 0x6c,
-	0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x30, 0x0a,
-	0x0d, 0x61, 0x64, 0x64, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e,
-	0x2e, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0f,
-	0x2e, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12,
-	0x2d, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x65, 0x42, 0x79, 0x50,
-	0x68, 0x6f, 0x6e, 0x65, 0x12, 0x0e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x75, 0x6c,
-	0x65, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x31,
-	0x0a, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x65, 0x42, 0x79,
-	0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x10, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72,
-	0x43, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c,
-	0x79, 0x12, 0x2a, 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x64, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x66,
-	0x6f, 0x12, 0x10, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x66, 0x6f,
-	0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x29, 0x0a,
-	0x0f, 0x67, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74,
-	0x12, 0x0c, 0x2e, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x08,
-	0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x33, 0x0a, 0x0c, 0x4d, 0x61, 0x74, 0x65,
-	0x72, 0x69, 0x61, 0x6c, 0x53, 0x61, 0x76, 0x65, 0x12, 0x10, 0x2e, 0x4d, 0x61, 0x74, 0x65, 0x72,
-	0x69, 0x61, 0x6c, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x4d, 0x61, 0x74,
-	0x65, 0x72, 0x69, 0x61, 0x6c, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x29, 0x0a,
-	0x0c, 0x63, 0x6c, 0x75, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x10, 0x2e,
-	0x43, 0x6c, 0x75, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a,
-	0x07, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x73, 0x70, 0x12, 0x33, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61,
-	0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x2e,
-	0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x4e, 0x61, 0x6d,
-	0x65, 0x52, 0x65, 0x71, 0x1a, 0x07, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a,
-	0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x64, 0x22, 0x5d, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x45, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f,
+	0x6e, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20,
+	0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68,
+	0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65,
+	0x12, 0x1e, 0x0a, 0x0a, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65,
+	0x32, 0x94, 0x0a, 0x0a, 0x09, 0x42, 0x69, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x30,
+	0x0a, 0x0b, 0x6d, 0x79, 0x44, 0x61, 0x74, 0x61, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x0f, 0x2e,
+	0x4d, 0x79, 0x44, 0x61, 0x74, 0x61, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x10,
+	0x2e, 0x4d, 0x79, 0x44, 0x61, 0x74, 0x61, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70,
+	0x12, 0x2d, 0x0a, 0x0a, 0x61, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e,
+	0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0f,
+	0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12,
+	0x2b, 0x0a, 0x09, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x49, 0x64, 0x12, 0x0e, 0x2e, 0x41,
+	0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x47,
+	0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x29, 0x0a, 0x08,
+	0x64, 0x72, 0x61, 0x77, 0x43, 0x6c, 0x75, 0x65, 0x12, 0x0c, 0x2e, 0x44, 0x72, 0x61, 0x77, 0x43,
+	0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a,
+	0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x19, 0x0a, 0x04, 0x43, 0x61, 0x6c, 0x6c, 0x12,
+	0x08, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x07, 0x2e, 0x42, 0x69, 0x52, 0x65,
+	0x73, 0x70, 0x12, 0x35, 0x0a, 0x0e, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65,
+	0x43, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
+	0x65, 0x43, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72,
+	0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2d, 0x0a, 0x0a, 0x63, 0x6c, 0x75,
+	0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x0e, 0x2e, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6d,
+	0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6d,
+	0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x65,
+	0x41, 0x64, 0x64, 0x12, 0x0b, 0x2e, 0x43, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71,
+	0x1a, 0x0f, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73,
+	0x70, 0x12, 0x2f, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x54,
+	0x74, 0x12, 0x0e, 0x2e, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65,
+	0x71, 0x1a, 0x0f, 0x2e, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65,
+	0x73, 0x70, 0x12, 0x27, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x6f, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77,
+	0x12, 0x08, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x43, 0x6c, 0x75,
+	0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a, 0x09, 0x73,
+	0x71, 0x6c, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x12, 0x0d, 0x2e, 0x53, 0x71, 0x6c, 0x4d, 0x61,
+	0x6e, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c,
+	0x79, 0x12, 0x1e, 0x0a, 0x06, 0x6d, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0a, 0x2e, 0x4d, 0x79,
+	0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c,
+	0x79, 0x12, 0x25, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x45, 0x78, 0x70, 0x6f,
+	0x72, 0x74, 0x12, 0x0a, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x08,
+	0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x61, 0x6c, 0x6c, 0x50,
+	0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x0a, 0x2e, 0x45,
+	0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70,
+	0x6c, 0x79, 0x12, 0x24, 0x0a, 0x0b, 0x69, 0x6e, 0x66, 0x6f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
+	0x65, 0x12, 0x0b, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x08,
+	0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x2b, 0x0a, 0x0e, 0x67, 0x65, 0x74, 0x43,
+	0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x2e, 0x43, 0x6f, 0x6d,
+	0x70, 0x61, 0x6e, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e,
+	0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x45, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62,
+	0x75, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x12, 0x16, 0x2e, 0x44, 0x69,
+	0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x65, 0x53, 0x68, 0x6f, 0x77,
+	0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65,
+	0x43, 0x6c, 0x75, 0x65, 0x53, 0x68, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a, 0x08,
+	0x73, 0x65, 0x6e, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x12, 0x0e, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72,
+	0x74, 0x42, 0x79, 0x44, 0x62, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70,
+	0x6c, 0x79, 0x12, 0x1e, 0x0a, 0x06, 0x75, 0x70, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x0a, 0x2e, 0x55,
+	0x70, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70,
+	0x6c, 0x79, 0x12, 0x28, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
+	0x4d, 0x61, 0x69, 0x6c, 0x12, 0x0c, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x52,
+	0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x30, 0x0a, 0x0d,
+	0x61, 0x64, 0x64, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x2e,
+	0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e,
+	0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2d,
+	0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x65, 0x42, 0x79, 0x50, 0x68,
+	0x6f, 0x6e, 0x65, 0x12, 0x0e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x75, 0x6c, 0x65,
+	0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x31, 0x0a,
+	0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x65, 0x42, 0x79, 0x50,
+	0x68, 0x6f, 0x6e, 0x65, 0x12, 0x10, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x43,
+	0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79,
+	0x12, 0x2a, 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x64, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x66, 0x6f,
+	0x12, 0x10, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52,
+	0x65, 0x71, 0x1a, 0x08, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x29, 0x0a, 0x0f,
+	0x67, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x12,
+	0x0c, 0x2e, 0x43, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x08, 0x2e,
+	0x42, 0x69, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x33, 0x0a, 0x0c, 0x4d, 0x61, 0x74, 0x65, 0x72,
+	0x69, 0x61, 0x6c, 0x53, 0x61, 0x76, 0x65, 0x12, 0x10, 0x2e, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69,
+	0x61, 0x6c, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x4d, 0x61, 0x74, 0x65,
+	0x72, 0x69, 0x61, 0x6c, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x29, 0x0a, 0x0c,
+	0x63, 0x6c, 0x75, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x10, 0x2e, 0x43,
+	0x6c, 0x75, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x07,
+	0x2e, 0x42, 0x69, 0x52, 0x65, 0x73, 0x70, 0x12, 0x33, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74,
+	0x65, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x2e, 0x55,
+	0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x4e, 0x61, 0x6d, 0x65,
+	0x52, 0x65, 0x71, 0x1a, 0x07, 0x2e, 0x42, 0x69, 0x52, 0x65, 0x73, 0x70, 0x12, 0x29, 0x0a, 0x0c,
+	0x41, 0x64, 0x64, 0x45, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x10, 0x2e, 0x41,
+	0x64, 0x64, 0x45, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x07,
+	0x2e, 0x42, 0x69, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62,
+	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -3642,7 +3714,7 @@ func file_biService_proto_rawDescGZIP() []byte {
 	return file_biService_proto_rawDescData
 }
 
-var file_biService_proto_msgTypes = make([]protoimpl.MessageInfo, 43)
+var file_biService_proto_msgTypes = make([]protoimpl.MessageInfo, 44)
 var file_biService_proto_goTypes = []interface{}{
 	(*MyDataAssetReq)(nil),         // 0: MyDataAssetReq
 	(*MyDataAssetResp)(nil),        // 1: MyDataAssetResp
@@ -3687,6 +3759,7 @@ var file_biService_proto_goTypes = []interface{}{
 	(*MaterialSaveResp)(nil),       // 40: MaterialSaveResp
 	(*ClueTransferReq)(nil),        // 41: ClueTransferReq
 	(*UpdateCompanyNameReq)(nil),   // 42: UpdateCompanyNameReq
+	(*AddEntPersonReq)(nil),        // 43: AddEntPersonReq
 }
 var file_biService_proto_depIdxs = []int32{
 	2,  // 0: MyDataAssetResp.data:type_name -> MyDataAsset
@@ -3726,36 +3799,38 @@ var file_biService_proto_depIdxs = []int32{
 	39, // 34: BiService.MaterialSave:input_type -> MaterialSaveReq
 	41, // 35: BiService.clueTransfer:input_type -> ClueTransferReq
 	42, // 36: BiService.updateCompanyName:input_type -> UpdateCompanyNameReq
-	1,  // 37: BiService.myDataAsset:output_type -> MyDataAssetResp
-	4,  // 38: BiService.addProject:output_type -> AddProjectResp
-	6,  // 39: BiService.getInfoId:output_type -> GetInfoIdResp
-	4,  // 40: BiService.drawClue:output_type -> AddProjectResp
-	9,  // 41: BiService.Call:output_type -> BiResp
-	4,  // 42: BiService.distributeClue:output_type -> AddProjectResp
-	14, // 43: BiService.clueImport:output_type -> ClueImportResp
-	4,  // 44: BiService.clueAdd:output_type -> AddProjectResp
-	14, // 45: BiService.clueImportTt:output_type -> ClueImportResp
-	14, // 46: BiService.autoFollow:output_type -> ClueImportResp
-	10, // 47: BiService.sqlManage:output_type -> BiReply
-	10, // 48: BiService.myInfo:output_type -> BiReply
-	10, // 49: BiService.allInfoExport:output_type -> BiReply
-	10, // 50: BiService.allProjectExport:output_type -> BiReply
-	10, // 51: BiService.infoOperate:output_type -> BiReply
-	23, // 52: BiService.getCompanyType:output_type -> CompanyResp
-	27, // 53: BiService.distributeClueShow:output_type -> DistributeClueShowResp
-	10, // 54: BiService.sendMail:output_type -> BiReply
-	10, // 55: BiService.upFile:output_type -> BiReply
-	10, // 56: BiService.sendCommonMail:output_type -> BiReply
-	32, // 57: BiService.addAcceptance:output_type -> AcceptanceResp
-	10, // 58: BiService.createClueByPhone:output_type -> BiReply
-	10, // 59: BiService.transferClueByPhone:output_type -> BiReply
-	10, // 60: BiService.findClueInfo:output_type -> BiReply
-	10, // 61: BiService.getClueInfoList:output_type -> BiReply
-	40, // 62: BiService.MaterialSave:output_type -> MaterialSaveResp
-	9,  // 63: BiService.clueTransfer:output_type -> BiResp
-	9,  // 64: BiService.updateCompanyName:output_type -> BiResp
-	37, // [37:65] is the sub-list for method output_type
-	9,  // [9:37] is the sub-list for method input_type
+	43, // 37: BiService.AddEntPerson:input_type -> AddEntPersonReq
+	1,  // 38: BiService.myDataAsset:output_type -> MyDataAssetResp
+	4,  // 39: BiService.addProject:output_type -> AddProjectResp
+	6,  // 40: BiService.getInfoId:output_type -> GetInfoIdResp
+	4,  // 41: BiService.drawClue:output_type -> AddProjectResp
+	9,  // 42: BiService.Call:output_type -> BiResp
+	4,  // 43: BiService.distributeClue:output_type -> AddProjectResp
+	14, // 44: BiService.clueImport:output_type -> ClueImportResp
+	4,  // 45: BiService.clueAdd:output_type -> AddProjectResp
+	14, // 46: BiService.clueImportTt:output_type -> ClueImportResp
+	14, // 47: BiService.autoFollow:output_type -> ClueImportResp
+	10, // 48: BiService.sqlManage:output_type -> BiReply
+	10, // 49: BiService.myInfo:output_type -> BiReply
+	10, // 50: BiService.allInfoExport:output_type -> BiReply
+	10, // 51: BiService.allProjectExport:output_type -> BiReply
+	10, // 52: BiService.infoOperate:output_type -> BiReply
+	23, // 53: BiService.getCompanyType:output_type -> CompanyResp
+	27, // 54: BiService.distributeClueShow:output_type -> DistributeClueShowResp
+	10, // 55: BiService.sendMail:output_type -> BiReply
+	10, // 56: BiService.upFile:output_type -> BiReply
+	10, // 57: BiService.sendCommonMail:output_type -> BiReply
+	32, // 58: BiService.addAcceptance:output_type -> AcceptanceResp
+	10, // 59: BiService.createClueByPhone:output_type -> BiReply
+	10, // 60: BiService.transferClueByPhone:output_type -> BiReply
+	10, // 61: BiService.findClueInfo:output_type -> BiReply
+	10, // 62: BiService.getClueInfoList:output_type -> BiReply
+	40, // 63: BiService.MaterialSave:output_type -> MaterialSaveResp
+	9,  // 64: BiService.clueTransfer:output_type -> BiResp
+	9,  // 65: BiService.updateCompanyName:output_type -> BiResp
+	9,  // 66: BiService.AddEntPerson:output_type -> BiResp
+	38, // [38:67] is the sub-list for method output_type
+	9,  // [9:38] is the sub-list for method input_type
 	9,  // [9:9] is the sub-list for extension type_name
 	9,  // [9:9] is the sub-list for extension extendee
 	0,  // [0:9] is the sub-list for field type_name
@@ -4283,6 +4358,18 @@ func file_biService_proto_init() {
 				return nil
 			}
 		}
+		file_biService_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*AddEntPersonReq); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
 	}
 	type x struct{}
 	out := protoimpl.TypeBuilder{
@@ -4290,7 +4377,7 @@ func file_biService_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_biService_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   43,
+			NumMessages:   44,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 126 - 58
rpc/pb/biService_grpc.pb.go

@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 // versions:
-// - protoc-gen-go-grpc v1.2.0
-// - protoc             v3.19.4
+// - protoc-gen-go-grpc v1.3.0
+// - protoc             v3.15.1
 // source: biService.proto
 
 package pb
@@ -18,6 +18,38 @@ import (
 // Requires gRPC-Go v1.32.0 or later.
 const _ = grpc.SupportPackageIsVersion7
 
+const (
+	BiService_MyDataAsset_FullMethodName         = "/BiService/myDataAsset"
+	BiService_AddProject_FullMethodName          = "/BiService/addProject"
+	BiService_GetInfoId_FullMethodName           = "/BiService/getInfoId"
+	BiService_DrawClue_FullMethodName            = "/BiService/drawClue"
+	BiService_Call_FullMethodName                = "/BiService/Call"
+	BiService_DistributeClue_FullMethodName      = "/BiService/distributeClue"
+	BiService_ClueImport_FullMethodName          = "/BiService/clueImport"
+	BiService_ClueAdd_FullMethodName             = "/BiService/clueAdd"
+	BiService_ClueImportTt_FullMethodName        = "/BiService/clueImportTt"
+	BiService_AutoFollow_FullMethodName          = "/BiService/autoFollow"
+	BiService_SqlManage_FullMethodName           = "/BiService/sqlManage"
+	BiService_MyInfo_FullMethodName              = "/BiService/myInfo"
+	BiService_AllInfoExport_FullMethodName       = "/BiService/allInfoExport"
+	BiService_AllProjectExport_FullMethodName    = "/BiService/allProjectExport"
+	BiService_InfoOperate_FullMethodName         = "/BiService/infoOperate"
+	BiService_GetCompanyType_FullMethodName      = "/BiService/getCompanyType"
+	BiService_DistributeClueShow_FullMethodName  = "/BiService/distributeClueShow"
+	BiService_SendMail_FullMethodName            = "/BiService/sendMail"
+	BiService_UpFile_FullMethodName              = "/BiService/upFile"
+	BiService_SendCommonMail_FullMethodName      = "/BiService/sendCommonMail"
+	BiService_AddAcceptance_FullMethodName       = "/BiService/addAcceptance"
+	BiService_CreateClueByPhone_FullMethodName   = "/BiService/createClueByPhone"
+	BiService_TransferClueByPhone_FullMethodName = "/BiService/transferClueByPhone"
+	BiService_FindClueInfo_FullMethodName        = "/BiService/findClueInfo"
+	BiService_GetClueInfoList_FullMethodName     = "/BiService/getClueInfoList"
+	BiService_MaterialSave_FullMethodName        = "/BiService/MaterialSave"
+	BiService_ClueTransfer_FullMethodName        = "/BiService/clueTransfer"
+	BiService_UpdateCompanyName_FullMethodName   = "/BiService/updateCompanyName"
+	BiService_AddEntPerson_FullMethodName        = "/BiService/AddEntPerson"
+)
+
 // BiServiceClient is the client API for BiService service.
 //
 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
@@ -50,6 +82,7 @@ type BiServiceClient interface {
 	MaterialSave(ctx context.Context, in *MaterialSaveReq, opts ...grpc.CallOption) (*MaterialSaveResp, error)
 	ClueTransfer(ctx context.Context, in *ClueTransferReq, opts ...grpc.CallOption) (*BiResp, error)
 	UpdateCompanyName(ctx context.Context, in *UpdateCompanyNameReq, opts ...grpc.CallOption) (*BiResp, error)
+	AddEntPerson(ctx context.Context, in *AddEntPersonReq, opts ...grpc.CallOption) (*BiResp, error)
 }
 
 type biServiceClient struct {
@@ -62,7 +95,7 @@ func NewBiServiceClient(cc grpc.ClientConnInterface) BiServiceClient {
 
 func (c *biServiceClient) MyDataAsset(ctx context.Context, in *MyDataAssetReq, opts ...grpc.CallOption) (*MyDataAssetResp, error) {
 	out := new(MyDataAssetResp)
-	err := c.cc.Invoke(ctx, "/BiService/myDataAsset", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_MyDataAsset_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -71,7 +104,7 @@ func (c *biServiceClient) MyDataAsset(ctx context.Context, in *MyDataAssetReq, o
 
 func (c *biServiceClient) AddProject(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*AddProjectResp, error) {
 	out := new(AddProjectResp)
-	err := c.cc.Invoke(ctx, "/BiService/addProject", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_AddProject_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -80,7 +113,7 @@ func (c *biServiceClient) AddProject(ctx context.Context, in *AddProjectReq, opt
 
 func (c *biServiceClient) GetInfoId(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*GetInfoIdResp, error) {
 	out := new(GetInfoIdResp)
-	err := c.cc.Invoke(ctx, "/BiService/getInfoId", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_GetInfoId_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -89,7 +122,7 @@ func (c *biServiceClient) GetInfoId(ctx context.Context, in *AddProjectReq, opts
 
 func (c *biServiceClient) DrawClue(ctx context.Context, in *DrawClueReq, opts ...grpc.CallOption) (*AddProjectResp, error) {
 	out := new(AddProjectResp)
-	err := c.cc.Invoke(ctx, "/BiService/drawClue", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_DrawClue_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -98,7 +131,7 @@ func (c *biServiceClient) DrawClue(ctx context.Context, in *DrawClueReq, opts ..
 
 func (c *biServiceClient) Call(ctx context.Context, in *CallReq, opts ...grpc.CallOption) (*BiResp, error) {
 	out := new(BiResp)
-	err := c.cc.Invoke(ctx, "/BiService/Call", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_Call_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -107,7 +140,7 @@ func (c *biServiceClient) Call(ctx context.Context, in *CallReq, opts ...grpc.Ca
 
 func (c *biServiceClient) DistributeClue(ctx context.Context, in *DistributeClueReq, opts ...grpc.CallOption) (*AddProjectResp, error) {
 	out := new(AddProjectResp)
-	err := c.cc.Invoke(ctx, "/BiService/distributeClue", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_DistributeClue_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -116,7 +149,7 @@ func (c *biServiceClient) DistributeClue(ctx context.Context, in *DistributeClue
 
 func (c *biServiceClient) ClueImport(ctx context.Context, in *ClueImportReq, opts ...grpc.CallOption) (*ClueImportResp, error) {
 	out := new(ClueImportResp)
-	err := c.cc.Invoke(ctx, "/BiService/clueImport", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_ClueImport_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -125,7 +158,7 @@ func (c *biServiceClient) ClueImport(ctx context.Context, in *ClueImportReq, opt
 
 func (c *biServiceClient) ClueAdd(ctx context.Context, in *ClueAddReq, opts ...grpc.CallOption) (*AddProjectResp, error) {
 	out := new(AddProjectResp)
-	err := c.cc.Invoke(ctx, "/BiService/clueAdd", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_ClueAdd_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -134,7 +167,7 @@ func (c *biServiceClient) ClueAdd(ctx context.Context, in *ClueAddReq, opts ...g
 
 func (c *biServiceClient) ClueImportTt(ctx context.Context, in *ClueImportReq, opts ...grpc.CallOption) (*ClueImportResp, error) {
 	out := new(ClueImportResp)
-	err := c.cc.Invoke(ctx, "/BiService/clueImportTt", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_ClueImportTt_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -143,7 +176,7 @@ func (c *biServiceClient) ClueImportTt(ctx context.Context, in *ClueImportReq, o
 
 func (c *biServiceClient) AutoFollow(ctx context.Context, in *CallReq, opts ...grpc.CallOption) (*ClueImportResp, error) {
 	out := new(ClueImportResp)
-	err := c.cc.Invoke(ctx, "/BiService/autoFollow", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_AutoFollow_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -152,7 +185,7 @@ func (c *biServiceClient) AutoFollow(ctx context.Context, in *CallReq, opts ...g
 
 func (c *biServiceClient) SqlManage(ctx context.Context, in *SqlManageReq, opts ...grpc.CallOption) (*BiReply, error) {
 	out := new(BiReply)
-	err := c.cc.Invoke(ctx, "/BiService/sqlManage", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_SqlManage_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -161,7 +194,7 @@ func (c *biServiceClient) SqlManage(ctx context.Context, in *SqlManageReq, opts
 
 func (c *biServiceClient) MyInfo(ctx context.Context, in *MyInfoReq, opts ...grpc.CallOption) (*BiReply, error) {
 	out := new(BiReply)
-	err := c.cc.Invoke(ctx, "/BiService/myInfo", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_MyInfo_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -170,7 +203,7 @@ func (c *biServiceClient) MyInfo(ctx context.Context, in *MyInfoReq, opts ...grp
 
 func (c *biServiceClient) AllInfoExport(ctx context.Context, in *ExportReq, opts ...grpc.CallOption) (*BiReply, error) {
 	out := new(BiReply)
-	err := c.cc.Invoke(ctx, "/BiService/allInfoExport", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_AllInfoExport_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -179,7 +212,7 @@ func (c *biServiceClient) AllInfoExport(ctx context.Context, in *ExportReq, opts
 
 func (c *biServiceClient) AllProjectExport(ctx context.Context, in *ExportReq, opts ...grpc.CallOption) (*BiReply, error) {
 	out := new(BiReply)
-	err := c.cc.Invoke(ctx, "/BiService/allProjectExport", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_AllProjectExport_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -188,7 +221,7 @@ func (c *biServiceClient) AllProjectExport(ctx context.Context, in *ExportReq, o
 
 func (c *biServiceClient) InfoOperate(ctx context.Context, in *OperateReq, opts ...grpc.CallOption) (*BiReply, error) {
 	out := new(BiReply)
-	err := c.cc.Invoke(ctx, "/BiService/infoOperate", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_InfoOperate_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -197,7 +230,7 @@ func (c *biServiceClient) InfoOperate(ctx context.Context, in *OperateReq, opts
 
 func (c *biServiceClient) GetCompanyType(ctx context.Context, in *CompanyReq, opts ...grpc.CallOption) (*CompanyResp, error) {
 	out := new(CompanyResp)
-	err := c.cc.Invoke(ctx, "/BiService/getCompanyType", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_GetCompanyType_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -206,7 +239,7 @@ func (c *biServiceClient) GetCompanyType(ctx context.Context, in *CompanyReq, op
 
 func (c *biServiceClient) DistributeClueShow(ctx context.Context, in *DistributeClueShowReq, opts ...grpc.CallOption) (*DistributeClueShowResp, error) {
 	out := new(DistributeClueShowResp)
-	err := c.cc.Invoke(ctx, "/BiService/distributeClueShow", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_DistributeClueShow_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -215,7 +248,7 @@ func (c *biServiceClient) DistributeClueShow(ctx context.Context, in *Distribute
 
 func (c *biServiceClient) SendMail(ctx context.Context, in *ExportByDbReq, opts ...grpc.CallOption) (*BiReply, error) {
 	out := new(BiReply)
-	err := c.cc.Invoke(ctx, "/BiService/sendMail", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_SendMail_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -224,7 +257,7 @@ func (c *biServiceClient) SendMail(ctx context.Context, in *ExportByDbReq, opts
 
 func (c *biServiceClient) UpFile(ctx context.Context, in *UpFileReq, opts ...grpc.CallOption) (*BiReply, error) {
 	out := new(BiReply)
-	err := c.cc.Invoke(ctx, "/BiService/upFile", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_UpFile_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -233,7 +266,7 @@ func (c *biServiceClient) UpFile(ctx context.Context, in *UpFileReq, opts ...grp
 
 func (c *biServiceClient) SendCommonMail(ctx context.Context, in *SendMailReq, opts ...grpc.CallOption) (*BiReply, error) {
 	out := new(BiReply)
-	err := c.cc.Invoke(ctx, "/BiService/sendCommonMail", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_SendCommonMail_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -242,7 +275,7 @@ func (c *biServiceClient) SendCommonMail(ctx context.Context, in *SendMailReq, o
 
 func (c *biServiceClient) AddAcceptance(ctx context.Context, in *AcceptanceReq, opts ...grpc.CallOption) (*AcceptanceResp, error) {
 	out := new(AcceptanceResp)
-	err := c.cc.Invoke(ctx, "/BiService/addAcceptance", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_AddAcceptance_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -251,7 +284,7 @@ func (c *biServiceClient) AddAcceptance(ctx context.Context, in *AcceptanceReq,
 
 func (c *biServiceClient) CreateClueByPhone(ctx context.Context, in *CreateCuleReq, opts ...grpc.CallOption) (*BiReply, error) {
 	out := new(BiReply)
-	err := c.cc.Invoke(ctx, "/BiService/createClueByPhone", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_CreateClueByPhone_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -260,7 +293,7 @@ func (c *biServiceClient) CreateClueByPhone(ctx context.Context, in *CreateCuleR
 
 func (c *biServiceClient) TransferClueByPhone(ctx context.Context, in *TransferClueReq, opts ...grpc.CallOption) (*BiReply, error) {
 	out := new(BiReply)
-	err := c.cc.Invoke(ctx, "/BiService/transferClueByPhone", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_TransferClueByPhone_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -269,7 +302,7 @@ func (c *biServiceClient) TransferClueByPhone(ctx context.Context, in *TransferC
 
 func (c *biServiceClient) FindClueInfo(ctx context.Context, in *FindClueInfoReq, opts ...grpc.CallOption) (*BiReply, error) {
 	out := new(BiReply)
-	err := c.cc.Invoke(ctx, "/BiService/findClueInfo", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_FindClueInfo_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -278,7 +311,7 @@ func (c *biServiceClient) FindClueInfo(ctx context.Context, in *FindClueInfoReq,
 
 func (c *biServiceClient) GetClueInfoList(ctx context.Context, in *ClueInfoReq, opts ...grpc.CallOption) (*BiReply, error) {
 	out := new(BiReply)
-	err := c.cc.Invoke(ctx, "/BiService/getClueInfoList", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_GetClueInfoList_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -287,7 +320,7 @@ func (c *biServiceClient) GetClueInfoList(ctx context.Context, in *ClueInfoReq,
 
 func (c *biServiceClient) MaterialSave(ctx context.Context, in *MaterialSaveReq, opts ...grpc.CallOption) (*MaterialSaveResp, error) {
 	out := new(MaterialSaveResp)
-	err := c.cc.Invoke(ctx, "/BiService/MaterialSave", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_MaterialSave_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -296,7 +329,7 @@ func (c *biServiceClient) MaterialSave(ctx context.Context, in *MaterialSaveReq,
 
 func (c *biServiceClient) ClueTransfer(ctx context.Context, in *ClueTransferReq, opts ...grpc.CallOption) (*BiResp, error) {
 	out := new(BiResp)
-	err := c.cc.Invoke(ctx, "/BiService/clueTransfer", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_ClueTransfer_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -305,7 +338,16 @@ func (c *biServiceClient) ClueTransfer(ctx context.Context, in *ClueTransferReq,
 
 func (c *biServiceClient) UpdateCompanyName(ctx context.Context, in *UpdateCompanyNameReq, opts ...grpc.CallOption) (*BiResp, error) {
 	out := new(BiResp)
-	err := c.cc.Invoke(ctx, "/BiService/updateCompanyName", in, out, opts...)
+	err := c.cc.Invoke(ctx, BiService_UpdateCompanyName_FullMethodName, in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *biServiceClient) AddEntPerson(ctx context.Context, in *AddEntPersonReq, opts ...grpc.CallOption) (*BiResp, error) {
+	out := new(BiResp)
+	err := c.cc.Invoke(ctx, BiService_AddEntPerson_FullMethodName, in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -344,6 +386,7 @@ type BiServiceServer interface {
 	MaterialSave(context.Context, *MaterialSaveReq) (*MaterialSaveResp, error)
 	ClueTransfer(context.Context, *ClueTransferReq) (*BiResp, error)
 	UpdateCompanyName(context.Context, *UpdateCompanyNameReq) (*BiResp, error)
+	AddEntPerson(context.Context, *AddEntPersonReq) (*BiResp, error)
 	mustEmbedUnimplementedBiServiceServer()
 }
 
@@ -435,6 +478,9 @@ func (UnimplementedBiServiceServer) ClueTransfer(context.Context, *ClueTransferR
 func (UnimplementedBiServiceServer) UpdateCompanyName(context.Context, *UpdateCompanyNameReq) (*BiResp, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method UpdateCompanyName not implemented")
 }
+func (UnimplementedBiServiceServer) AddEntPerson(context.Context, *AddEntPersonReq) (*BiResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method AddEntPerson not implemented")
+}
 func (UnimplementedBiServiceServer) mustEmbedUnimplementedBiServiceServer() {}
 
 // UnsafeBiServiceServer may be embedded to opt out of forward compatibility for this service.
@@ -458,7 +504,7 @@ func _BiService_MyDataAsset_Handler(srv interface{}, ctx context.Context, dec fu
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/myDataAsset",
+		FullMethod: BiService_MyDataAsset_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).MyDataAsset(ctx, req.(*MyDataAssetReq))
@@ -476,7 +522,7 @@ func _BiService_AddProject_Handler(srv interface{}, ctx context.Context, dec fun
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/addProject",
+		FullMethod: BiService_AddProject_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).AddProject(ctx, req.(*AddProjectReq))
@@ -494,7 +540,7 @@ func _BiService_GetInfoId_Handler(srv interface{}, ctx context.Context, dec func
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/getInfoId",
+		FullMethod: BiService_GetInfoId_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).GetInfoId(ctx, req.(*AddProjectReq))
@@ -512,7 +558,7 @@ func _BiService_DrawClue_Handler(srv interface{}, ctx context.Context, dec func(
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/drawClue",
+		FullMethod: BiService_DrawClue_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).DrawClue(ctx, req.(*DrawClueReq))
@@ -530,7 +576,7 @@ func _BiService_Call_Handler(srv interface{}, ctx context.Context, dec func(inte
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/Call",
+		FullMethod: BiService_Call_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).Call(ctx, req.(*CallReq))
@@ -548,7 +594,7 @@ func _BiService_DistributeClue_Handler(srv interface{}, ctx context.Context, dec
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/distributeClue",
+		FullMethod: BiService_DistributeClue_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).DistributeClue(ctx, req.(*DistributeClueReq))
@@ -566,7 +612,7 @@ func _BiService_ClueImport_Handler(srv interface{}, ctx context.Context, dec fun
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/clueImport",
+		FullMethod: BiService_ClueImport_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).ClueImport(ctx, req.(*ClueImportReq))
@@ -584,7 +630,7 @@ func _BiService_ClueAdd_Handler(srv interface{}, ctx context.Context, dec func(i
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/clueAdd",
+		FullMethod: BiService_ClueAdd_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).ClueAdd(ctx, req.(*ClueAddReq))
@@ -602,7 +648,7 @@ func _BiService_ClueImportTt_Handler(srv interface{}, ctx context.Context, dec f
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/clueImportTt",
+		FullMethod: BiService_ClueImportTt_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).ClueImportTt(ctx, req.(*ClueImportReq))
@@ -620,7 +666,7 @@ func _BiService_AutoFollow_Handler(srv interface{}, ctx context.Context, dec fun
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/autoFollow",
+		FullMethod: BiService_AutoFollow_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).AutoFollow(ctx, req.(*CallReq))
@@ -638,7 +684,7 @@ func _BiService_SqlManage_Handler(srv interface{}, ctx context.Context, dec func
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/sqlManage",
+		FullMethod: BiService_SqlManage_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).SqlManage(ctx, req.(*SqlManageReq))
@@ -656,7 +702,7 @@ func _BiService_MyInfo_Handler(srv interface{}, ctx context.Context, dec func(in
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/myInfo",
+		FullMethod: BiService_MyInfo_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).MyInfo(ctx, req.(*MyInfoReq))
@@ -674,7 +720,7 @@ func _BiService_AllInfoExport_Handler(srv interface{}, ctx context.Context, dec
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/allInfoExport",
+		FullMethod: BiService_AllInfoExport_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).AllInfoExport(ctx, req.(*ExportReq))
@@ -692,7 +738,7 @@ func _BiService_AllProjectExport_Handler(srv interface{}, ctx context.Context, d
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/allProjectExport",
+		FullMethod: BiService_AllProjectExport_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).AllProjectExport(ctx, req.(*ExportReq))
@@ -710,7 +756,7 @@ func _BiService_InfoOperate_Handler(srv interface{}, ctx context.Context, dec fu
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/infoOperate",
+		FullMethod: BiService_InfoOperate_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).InfoOperate(ctx, req.(*OperateReq))
@@ -728,7 +774,7 @@ func _BiService_GetCompanyType_Handler(srv interface{}, ctx context.Context, dec
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/getCompanyType",
+		FullMethod: BiService_GetCompanyType_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).GetCompanyType(ctx, req.(*CompanyReq))
@@ -746,7 +792,7 @@ func _BiService_DistributeClueShow_Handler(srv interface{}, ctx context.Context,
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/distributeClueShow",
+		FullMethod: BiService_DistributeClueShow_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).DistributeClueShow(ctx, req.(*DistributeClueShowReq))
@@ -764,7 +810,7 @@ func _BiService_SendMail_Handler(srv interface{}, ctx context.Context, dec func(
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/sendMail",
+		FullMethod: BiService_SendMail_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).SendMail(ctx, req.(*ExportByDbReq))
@@ -782,7 +828,7 @@ func _BiService_UpFile_Handler(srv interface{}, ctx context.Context, dec func(in
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/upFile",
+		FullMethod: BiService_UpFile_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).UpFile(ctx, req.(*UpFileReq))
@@ -800,7 +846,7 @@ func _BiService_SendCommonMail_Handler(srv interface{}, ctx context.Context, dec
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/sendCommonMail",
+		FullMethod: BiService_SendCommonMail_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).SendCommonMail(ctx, req.(*SendMailReq))
@@ -818,7 +864,7 @@ func _BiService_AddAcceptance_Handler(srv interface{}, ctx context.Context, dec
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/addAcceptance",
+		FullMethod: BiService_AddAcceptance_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).AddAcceptance(ctx, req.(*AcceptanceReq))
@@ -836,7 +882,7 @@ func _BiService_CreateClueByPhone_Handler(srv interface{}, ctx context.Context,
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/createClueByPhone",
+		FullMethod: BiService_CreateClueByPhone_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).CreateClueByPhone(ctx, req.(*CreateCuleReq))
@@ -854,7 +900,7 @@ func _BiService_TransferClueByPhone_Handler(srv interface{}, ctx context.Context
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/transferClueByPhone",
+		FullMethod: BiService_TransferClueByPhone_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).TransferClueByPhone(ctx, req.(*TransferClueReq))
@@ -872,7 +918,7 @@ func _BiService_FindClueInfo_Handler(srv interface{}, ctx context.Context, dec f
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/findClueInfo",
+		FullMethod: BiService_FindClueInfo_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).FindClueInfo(ctx, req.(*FindClueInfoReq))
@@ -890,7 +936,7 @@ func _BiService_GetClueInfoList_Handler(srv interface{}, ctx context.Context, de
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/getClueInfoList",
+		FullMethod: BiService_GetClueInfoList_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).GetClueInfoList(ctx, req.(*ClueInfoReq))
@@ -908,7 +954,7 @@ func _BiService_MaterialSave_Handler(srv interface{}, ctx context.Context, dec f
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/MaterialSave",
+		FullMethod: BiService_MaterialSave_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).MaterialSave(ctx, req.(*MaterialSaveReq))
@@ -926,7 +972,7 @@ func _BiService_ClueTransfer_Handler(srv interface{}, ctx context.Context, dec f
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/clueTransfer",
+		FullMethod: BiService_ClueTransfer_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).ClueTransfer(ctx, req.(*ClueTransferReq))
@@ -944,7 +990,7 @@ func _BiService_UpdateCompanyName_Handler(srv interface{}, ctx context.Context,
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/BiService/updateCompanyName",
+		FullMethod: BiService_UpdateCompanyName_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 		return srv.(BiServiceServer).UpdateCompanyName(ctx, req.(*UpdateCompanyNameReq))
@@ -952,6 +998,24 @@ func _BiService_UpdateCompanyName_Handler(srv interface{}, ctx context.Context,
 	return interceptor(ctx, in, info, handler)
 }
 
+func _BiService_AddEntPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(AddEntPersonReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(BiServiceServer).AddEntPerson(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: BiService_AddEntPerson_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(BiServiceServer).AddEntPerson(ctx, req.(*AddEntPersonReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // BiService_ServiceDesc is the grpc.ServiceDesc for BiService service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -1071,6 +1135,10 @@ var BiService_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "updateCompanyName",
 			Handler:    _BiService_UpdateCompanyName_Handler,
 		},
+		{
+			MethodName: "AddEntPerson",
+			Handler:    _BiService_AddEntPerson_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "biService.proto",

+ 77 - 0
service/addEntUser.go

@@ -0,0 +1,77 @@
+package service
+
+import (
+	. "app.yhyue.com/moapp/jypkg/ent/entity"
+	. "bp.jydev.jianyu360.cn/BaseService/biService/entity"
+	"database/sql"
+	"errors"
+	"github.com/gogf/gf/v2/util/gconv"
+	"log"
+	"net/rpc"
+	"time"
+)
+
+func AddEntPerrson(entId int64, phone, personName, url string) (bool, error) {
+	err := errors.New("")
+	if JyMysql.ExecTx("新增企业用户", func(tx *sql.Tx) bool {
+		departmentData := JyMysql.FindOne("entniche_department", map[string]interface{}{
+			"ent_id": entId,
+			"pid":    0,
+		}, "", "")
+		if departmentData == nil || len(*departmentData) == 0 {
+			log.Println("部门不存在", entId, phone)
+			err = errors.New("部门不存在")
+			return false
+		}
+		deptId := gconv.Int64((*departmentData)["id"])
+		entUserId := JyMysql.Insert("entniche_user", map[string]interface{}{
+			"name":       personName,
+			"phone":      phone,
+			"mail":       "",
+			"ent_id":     entId,
+			"createtime": time.Now().Format("2006-01-02 15:04:05"),
+			"timestamp":  time.Now().Format("2006-01-02 15:04:05"),
+			"user_name":  phone,
+			"niche_dis":  0,
+		})
+		deptUserId := JyMysql.Insert("entniche_department_user", map[string]interface{}{
+			"dept_id": deptId,
+			"user_id": entUserId,
+		})
+		if entUserId <= 0 || deptUserId <= 0 {
+			log.Println("企业用户创建失败不存在", entId, phone)
+			err = errors.New("企业用户创建失败不存在")
+			return false
+		}
+		//自然人 账号 职位添加
+		data := CompletionUserInfo{
+			IsEnt:      false,
+			PersonName: personName,
+			Phone:      phone,
+			EntId:      gconv.Int(entId),
+			Mail:       "",
+		}
+		respData := Resp{
+			Fool: false,
+		}
+		r, err := rpc.DialHTTP("tcp", url)
+		err = r.Call("JyUser.AddUserInfo", &data, &respData)
+		if err != nil {
+			log.Println("tcp 调用失败", err.Error(), entId, phone)
+			err = errors.New("调用失败")
+			return false
+		}
+		if respData.Fool {
+			JyMysql.Insert("ent_operate_record", map[string]interface{}{
+				"entUserId": entUserId,
+				"entId":     entId,
+				"isUse":     0,
+				"operate":   1,
+			})
+		}
+		return true
+	}) {
+		return true, err
+	}
+	return false, err
+}