12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- syntax = "v1"
- info (
- title: "剑鱼标讯" // TODO: add title
- desc: "订阅模块"// TODO: add description
- author: "wangshan"
- email: "wangshan@topnet.net.cn"
- )
- type (
- //订阅列表
- subscribeReq {
- AppId string `header:"appId"`
- UserId string `header:"userId"`
- EntId string `header:"entId"`
- EntUserId string `header:"entUserId"`
- DeptId string `header:"deptId"` //部门id
- PageNum int64 `json:"pageNum,optional"`
- PageSize int64 `json:"pageSize,optional"`
- SelectTime string `json:"selectTime,optional"`
- Area string `json:"area,optional"`
- City string `json:"city,optional"`
- Industry string `json:"industry,optional"`
- BuyerClass string `json:"buyerClass,optional"`
- KeyWords string `json:"keyWords,optional"`
- Subtype string `json:"subtype,optional"`
- Price string `json:"price,optional"`
- FileExists string `json:"fileExists,optional"`
- UserType string `path:"userType,default=fType,options=fType|vType|mType|eType"` //fType:普通用户;vType:超级订阅用户;mType:大会员用户;eType:商机管理用户;
- }
- //
- someInfoReq {
- AppId string `header:"appId"`
- UserType string `path:"userType"`
- }
- //
- commonResp {
- Err_code int64 `json:"error_code"`
- Err_msg string `json:"error_msg"`
- Data interface{} `json:"data"`
- }
- //
- subscribeUpdateReq {
- Area map[string]interface{} `json:"area,optional"` //地区
- Buyerclass []string `json:"buyerclass,optional"` //采购单位类型
- Items []map[string]interface{} `json:"items,optional"` //关键词
- Infotype []string `json:"infotype,optional"` //信息类型
- Matchway string `json:"matchway,optional"` //匹配方式 1标题 2正文
- Projectmatch string `json:"projectmatch,optional"` //项目匹配 1开始 0关闭
- Ratemode string `json:"ratemode,optional"` // 1:实时推送,2:每天9点推送,3:每周推送,4:每月推送 5:每日推送两次
- Apppush string `json:"apppush,optional"` //app推送 1开启 0关闭
- Mailpush string `json:"mailpush,optional"` //邮箱推送 1开启 0关闭
- Mail string `json:"mail,optional"` //邮箱
- Otherbuyerclass string `json:"otherbuyerclass,optional"` //匹配未分类类型 1匹配 0不匹配
- AppId string `header:"appId,optional"`
- UserType string `path:"userType,optional"`
- UserId string `header:"userId,optional"`
- }
- )
- service bxsubscribe-api {
- @handler subscribeList
- post /jybx/subscribe/:userType/list(subscribeReq) returns (commonResp)
- @handler someInfo
- post /jybx/subscribe/:userType/someInfo(someInfoReq) returns (commonResp)
- @handler subscribeUpdate
- post /jybx/subscribe/:userType/update(subscribeUpdateReq) returns (commonResp)
- }
|