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"` } ) service bxsubscribe-api { @handler subscribeList post /jybx/subscribe/:userType/list(subscribeReq) returns (commonResp) @handler someInfo post /jybx/subscribe/:userType/someInfo(someInfoReq) returns (commonResp) }