syntax = "v1" type ( biResp { Error_code int64 `json:"error_code"` //响应代码 Error_msg string `json:"error_msg"` //响应消息 Data interface{} `json:"data"` } myDataAssetReq { UserId string `header:"userId,optional"` NewUserId int64 `header:"newUserId,optional"` EntUserId int64 `header:"entUserId,optional"` } addProjectReq { PositionId int64 `header:"positionId,optional"` Source int64 `json:"source,optional"` InfoId string `json:"info_id,optional"` PositionType int64 `header:"positionType,optional"` AccountId int64 `header:"accountId,optional"` CompanyName string `header:"entName,optional"` UserName string `header:"userName,optional"` UserId int64 `header:"newUserId,optional"` EntId int64 `header:"entId,optional"` EntUserName string `header:"entUserName,optional"` } getInfoIdReq { PositionId int64 `header:"positionId,optional"` } drawClueReq { PositionId int64 `header:"positionId,optional"` Count int64 `json:"count,optional"` } callReq { PositionId int64 `header:"positionId,optional"` Phone string `json:"phone"` } DistributeClueReq { ClueCount string `json:"clueCount"` ClueIdList []int64 `json:"clueIdList"` Datas []map[string]interface{} `json:"datas"` PositionId int64 `header:"positionId,optional"` IsTask int64 `json:"isTask"` } DistributeClueShowReq { ClueIdList string `json:"clueIdList"` Datas []map[string]interface{} `json:"datas"` PositionId int64 `header:"positionId,optional"` IsTask int64 `json:"isTask"` DataType int64 `json:"dataType"` UpdatePositionID int64 `json:"updatePositionID"` } ClueImportReq { PositionId int64 `header:"positionId,optional"` Pcbh string `json:"pcbh"` } ClueAddReq { Phone string `json:"phone"` Username string `json:"username,optional"` Source string `json:"source"` Status999 string `json:"status999"` Owner string `json:"owner"` EmpNo string `json:"empNo"` Company string `json:"company,optional"` IsPolicymaker string `json:"isPolicymaker,optional"` BelongToIndustry string `json:"belongToIndustry,optional"` Job string `json:"job,optional"` CustomerNeeds string `json:"customerNeeds,optional"` BelongTo string `json:"belongTo,optional"` WantGoods string `json:"wantGoods,optional"` CustomerBudget string `json:"customerBudget,optional"` } SqlManageReq { Id float64 `json:"id"` Params []Param `json:"params"` } Param { Value string `json:"value"` Type string `json:"type"` } MyInfoReq { Bid string `json:"bid,optional"` Sid string `json:"sid"` } ResEmpowerReq { EntId int64 `header:"entId"` ReqType int64 `json:"reqType"` FunctionCode string `json:"functionCode"` EntUserId string `json:"entUserId"` PositionId string `json:"positionId"` } ExportReq { Mail string `json:"mail"` Mapping []string `json:"mapping"` PositionId int64 `header:"positionId,optional"` } OperateReq { NewId string `json:"newId"` Type int64 `json:"type"` } getCompanyTypeReq { CompanyName string `json:"companyName"` } ExportByDbReq { Token string `json:"token"` Title string `json:"title"` Content string `json:"content"` Mails string `json:"mails"` FileName string `json:"filename"` Datas []map[string]interface{} `json:"datas"` } UpFileReq { AppId string `header:"appId,default=10000"` BaseUserId int64 `header:"newUserId"` PositionId int64 `header:"positionId,optional"` EntUserId int64 `header:"entUserId,optional"` EntId int64 `header:"entId,optional"` FileType string `form:"fileType"` } SendMailReq { Title string `json:"title"` Content string `json:"content"` Mails string `json:"mails"` } AcceptanceReq { ProposeType int64 `json:"proposeType,optional"` Propose_time string `json:"proposeTime,optional"` Channel string `json:"channel,optional"` Acceptance_type int64 `json:"acceptanceType,optional"` Status int64 `json:"status,optional"` Over_time string `json:"overTime,optional"` Remark string `json:"remark,optional"` PositionId int64 `header:"positionId,optional"` DeptId string `header:"entDeptId,optional"` //部门id EntUserName string `header:"entUserName,optional"` ParamData string `json:"paramData,optional"` } CreateClueReq { AppId string `header:"appId,default=10000"` UserId string `header:"userId,optional"` BaseUserId int64 `header:"newUserId"` PositionId int64 `header:"positionId,optional"` EntUserId int64 `header:"entUserId,optional"` Phone string `json:"phone"` } TransferClueReq { UserId string `header:"userId,optional"` BaseUserId int64 `header:"newUserId"` PositionId int64 `header:"positionId,optional"` EntUserId int64 `header:"entUserId,optional"` Phone string `json:"phone"` OrderNo string `json:"orderNo"` } ) @server ( // 定义一个请求体限制在 100MB 以内的请求,goctl >= 1.5.0 版本支持 (默认1mb) maxBytes: 104857600 ) 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) }