syntax = "v1" info ( title: "剑鱼采购单位模块" // TODO: add title desc: "采购单位画像,采购单位列表等"// TODO: add description author: "wangshan" email: "wangshan@topnet.net.cn" ) type ( buyerListReq { baseParam Province []string `json:"province,optional"` //省份 City []string `json:"city,optional"` //城市 BuyerClass []string `json:"buyerClass,optional"` //客户类型(采购单位行业) BusinessScope string `json:"businessScope,optional"` //业务范围(关键词 附加词 排除词) BuyerName string `json:"buyerName,optional"` //采购单位名称 AppId string `header:"appId"` //剑鱼10000 UserType string `path:"userType"` //用户标签 IsCheckFollow bool `json:"isCheckFollow,optional"` //是否查询关注信息(商机管理用户) IsCheckReceive bool `json:"isCheckReceive,optional"` //是否查询已领取(商机管理用户) UserId string `header:"userId,optional"` //用户id EntId string `header:"entId,optional"` //企业id EntUserId string `header:"entUserId,optional"` //商机管理企业用户id IsContact int64 `json:"isContact,optional"` // 是否有联系人 0 不筛选 1-有联系人 2-无联系人 PageNum int64 `json:"pageNum"` //当前页码 PageSize int64 `json:"pageSize"` //每页数据量 } // commonResp { Err_code int64 `json:"error_code"` Err_msg string `json:"error_msg"` Data interface{} `json:"data"` } //用户基本信息 baseParam { EntId int64 `header:"entId,optional"` // 企业id EntUserId int64 `header:"entUserId,optional"` // 企业下用户id PositionType int64 `header:"positionType,optional"` // 职位类型 0个人 1企业 PositionId int64 `header:"positionId,optional"` //职位id AccountId int64 `header:"accountId,optional"` //账户id MgoUserId string `header:"mgoUserId,optional"` //原userId AppId string `header:"appId,optional"` //剑鱼10000 UserId string `header:"userId,optional"` //用户id NewUserId int64 `header:"newUserId,optional"` //base_user_id EntAccountId int64 `header:"entAccountId,optional"` //企业账户id Phone string `header:"phone,optional"` } //采购单位关联信息 relatesInformationReq { baseParam BiddingCount int `json:"biddingCount,optional"` //关联招标信息数量---根据采购单位 BuyerCount int `json:"buyerCount,optional"` //关联采购单位信息---根据地区 Buyer string `json:"buyer,optional"` //采购单位 Area string `json:"area,optional"` //地区 City string `json:"city,optional"` //城市 } // 采购单位补充信息请求参数 BuyerSupplyInfoReq { baseParam Buyer []string `json:"buyer,optional"` //采购单位 } ) service bxbuyer-api { @handler buyerSearchList post /jybx/buyer/:userType/buyerList(buyerListReq) returns (commonResp) @handler relatesInformation post /jybx/buyer/relates/information(relatesInformationReq) returns (commonResp) @handler buyerSupplyInfo post /jybx/buyer/supply/info(BuyerSupplyInfoReq) returns (commonResp) }