123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- syntax = "proto3";
- package bxsubscribe;
- option go_package = "./bxsubscribe";
- message SubscribeInfosReq {
- int64 pageNum = 1;
- int64 pageSize = 2;
- string selectTime = 3;
- string area = 4;
- string city = 5;
- string industry = 6;
- string buyerClass = 7;
- string keyWords = 8;
- string subtype = 9;
- string userType = 10;//fType:普通用户;vType:超级订阅用户;mType:大会员用户;eType:商机管理用户;
- string userId = 11;
- string entId = 12;
- string appId = 13;
- string price = 14;
- string fileExists = 15;
- string entUserId = 16;
- string deptId = 17;
- int64 newUserId = 18;
- bool IsEnt=19;
- }
- message SubscribeInfosResp {
- int64 err_code = 1;
- string err_msg = 2;
- subscribeData data = 3;
- }
- message subscribeData{
- int64 count = 1;
- bool hasNextPage = 2;
- repeated subscribeInfo list = 3;
- }
- message subscribeInfo {
- string _id = 1;//和推送程序 缓存保持一致
- string title = 2;
- string area = 3;
- string buyerClass = 4;
- string subtype = 5;
- string industry = 6;
- int64 publishTime = 7;
- int64 ca_index = 8;
- int64 ca_date = 9;
- int64 ca_isvisit = 10;
- int64 ca_type = 11;
- repeated string matchKeys = 12;
- string budget = 13;
- string bidAmount = 14;
- int64 collection = 15;
- string buyer = 16;
- string projectName = 17;
- string winner = 18;
- string bidOpenTime = 19;
- int64 ca_isvip = 20;
- bool ca_fileExists = 21;
- }
- //
- message SomeInfoReq{
- string appId = 1;
- string userId = 2;
- string userType = 3;
- int64 newUserId = 4;
- }
- message SomeInfoResp {
- int64 err_code = 1;
- string err_msg = 2;
- SomeInfo data = 3;
- }
- message SomeInfo{
- bool hasKey = 1;//免费用户和超级订阅是否有订阅词
- bool isInTSguide = 2;//是否进入向导
- int64 isExpire = 3;//超级订阅到期提醒
- int64 isOnTail = 4;//超级订阅试用状态
- bool isPassCount = 5;//推送数量校验
- bool otherFlag = 6;//首次用户推送查询“其他”
- bool isRead = 7;//某个通知??是否已读
- repeated string industry = 8;//会员订阅的行业
- string userId = 9;//用户id
- }
- //
- message StatusResp{
- string error_msg =1;
- int64 error_code=2;
- int64 status = 3;
- }
- message UpdateSubScribeInfoReq{
- map<string,CityList> area = 1; //地区
- repeated string buyerclass=2;//采购单位类型
- repeated Items items =3;//关键词
- repeated string infotype=4;//信息类型
- string matchway =5;//匹配方式 1标题 2正文
- string projectmatch=6;//项目匹配 1开始 0关闭
- string ratemode=7;// 1:实时推送,2:每天9点推送,3:每周推送,4:每月推送 5:每日推送两次
- string apppush=8;//app推送 1开启 0关闭
- string mailpush=9;//邮箱推送 1开启 0关闭
- string mail=10;//邮箱
- string otherbuyerclass=11;//匹配未分类类型 1匹配 0不匹配
- string userId=12;//用户id
- }
- //城市
- message CityList {
- repeated string city =1;
- }
- //分类
- message Items{
- string s_item =1;//分类名称
- int64 updateTime=2;
- repeated Keys a_key=3;
- }
- //关键词
- message Keys {
- repeated string key =1;
- repeated string notkey=2;
- int64 updateTime=3;
- int64 matchway=4;
- repeated string appendKey=5;
- }
- service Bxsubscribe {
- //获取订阅推送列表
- rpc GetSubList(SubscribeInfosReq) returns(SubscribeInfosResp);
- //获取订阅推送相关信息
- rpc GetSubSomeInfo(SomeInfoReq) returns(SomeInfoResp);
- //修改订阅信息接口
- rpc UpdateSubScribeInfo(UpdateSubScribeInfoReq)returns(StatusResp);
- }
|