api.proto 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. syntax = "proto3";
  2. package account.service.member.v1;
  3. option go_package = "api";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. message MidReq {
  6. // mid
  7. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  8. // 真实ip
  9. string realIP = 3 [ (gogoproto.jsontag) = "realIP" ];
  10. }
  11. message MemberMidReq {
  12. // mid
  13. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  14. // 远端ip
  15. string remoteIP = 2 [ (gogoproto.jsontag) = "remoteIP" ];
  16. }
  17. message MemberMidsReq {
  18. // mid 列表
  19. repeated int64 mids = 1 [ (gogoproto.jsontag) = "mids" ];
  20. // 远端ip
  21. string remoteIP = 2 [ (gogoproto.jsontag) = "remoteIP" ];
  22. }
  23. message MidByRealnameCardsReq {
  24. // 身份证号
  25. repeated string card_code = 1
  26. [ (gogoproto.moretags) = "form:\"card_code\" validate:\"required\"" ];
  27. // 国家
  28. int32 country = 2 [
  29. (gogoproto.jsontag) = "country",
  30. (gogoproto.casttype) = "int16",
  31. (gogoproto.moretags) = "form:\"country\""
  32. ];
  33. // 证件类型
  34. int32 card_type = 3 [
  35. (gogoproto.jsontag) = "card_type",
  36. (gogoproto.casttype) = "int8",
  37. (gogoproto.moretags) = "form:\"card_type\""
  38. ];
  39. }
  40. // 空的message,对应真实service只返回error,没有具体返回值
  41. message EmptyStruct {}
  42. message LevelInfoReply {
  43. // 当前的等级信息
  44. int32 cur = 1 [ (gogoproto.jsontag) = "current_level" ];
  45. // 当前等级的经验阀值
  46. int32 min = 2 [ (gogoproto.jsontag) = "current_min" ];
  47. // 当前的经验值
  48. int32 now_exp = 3 [ (gogoproto.jsontag) = "current_exp" ];
  49. // 下个等级的经验阀值
  50. int32 next_exp = 4 [ (gogoproto.jsontag) = "next_exp" ];
  51. }
  52. message UserLogReply {
  53. // mid
  54. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  55. // ip
  56. string ip = 2 [ (gogoproto.jsontag) = "ip" ];
  57. // 时间戳
  58. int64 ts = 3 [ (gogoproto.jsontag) = "ts" ];
  59. // logId
  60. string log_id = 4 [ (gogoproto.jsontag) = "log_id" ];
  61. // 具体内容
  62. map<string, string> content = 5 [ (gogoproto.jsontag) = "content" ];
  63. }
  64. message UserLogsReply {
  65. // UserLog的集合
  66. repeated UserLogReply user_logs = 1 [ (gogoproto.jsontag) = "user_logs" ];
  67. }
  68. message AddExpReq {
  69. // mid
  70. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  71. // 增量
  72. double count = 2 [ (gogoproto.jsontag) = "count" ];
  73. // 修改原因
  74. string reason = 3 [ (gogoproto.jsontag) = "reason" ];
  75. // 操作类型
  76. string operate = 4 [ (gogoproto.jsontag) = "operate" ];
  77. // ip
  78. string ip = 5 [ (gogoproto.jsontag) = "ip" ];
  79. }
  80. message ExpStatReply {
  81. // 是否获取过登陆奖励
  82. bool login = 1 [ (gogoproto.jsontag) = "login" ];
  83. // 是否获取过看视频的奖励
  84. bool watch = 2 [ (gogoproto.jsontag) = "watch_av" ];
  85. // 是否获得投币奖励
  86. int64 coin = 3 [ (gogoproto.jsontag) = "coins_av" ];
  87. // 是否获得分享过视频的奖励
  88. bool share = 4 [ (gogoproto.jsontag) = "share_av" ];
  89. }
  90. // member
  91. message BaseInfoReply {
  92. // mid
  93. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  94. // 名称
  95. string name = 2 [ (gogoproto.jsontag) = "name" ];
  96. // 性别
  97. int64 sex = 3 [ (gogoproto.jsontag) = "sex" ];
  98. // 头像
  99. string face = 4 [ (gogoproto.jsontag) = "face" ];
  100. // 签名
  101. string sign = 5 [ (gogoproto.jsontag) = "sign" ];
  102. // 排名
  103. int64 rank = 6 [ (gogoproto.jsontag) = "rank" ];
  104. // 生日
  105. int64 birthday = 7 [
  106. (gogoproto.jsontag) = "birthday",
  107. (gogoproto.casttype) = "go-common/library/time.Time"
  108. ];
  109. }
  110. message OfficialInfoReply {
  111. // 角色类别
  112. int32 role = 1
  113. [ (gogoproto.jsontag) = "role", (gogoproto.casttype) = "int8" ];
  114. // 标题
  115. string title = 2 [ (gogoproto.jsontag) = "title" ];
  116. // 描述
  117. string desc = 3 [ (gogoproto.jsontag) = "desc" ];
  118. }
  119. message BaseInfosReply {
  120. // member基本信息集合
  121. map<int64, BaseInfoReply> base_infos = 1;
  122. }
  123. message MemberInfoReply {
  124. // 基本信息
  125. BaseInfoReply base_info = 1;
  126. // 等级信息
  127. LevelInfoReply level_info = 2;
  128. // 官方认证信息
  129. OfficialInfoReply official_info = 3;
  130. }
  131. message MemberInfosReply { map<int64, MemberInfoReply> member_infos = 1; }
  132. message NickUpdatedReply {
  133. // 昵称是否修改过
  134. bool nick_updated = 1 [ (gogoproto.jsontag) = "nick_updated" ];
  135. }
  136. message OfficialDocReq {
  137. // mid
  138. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  139. // 名称
  140. string name = 2 [ (gogoproto.jsontag) = "name" ];
  141. // 审核状态
  142. int32 state = 3
  143. [ (gogoproto.jsontag) = "state", (gogoproto.casttype) = "int8" ];
  144. // 角色
  145. int32 role = 4
  146. [ (gogoproto.jsontag) = "role", (gogoproto.casttype) = "int8" ];
  147. // 标题
  148. string title = 5 [ (gogoproto.jsontag) = "title" ];
  149. // 描述
  150. string desc = 6 [ (gogoproto.jsontag) = "desc" ];
  151. // 拒绝原因
  152. string reject_reason = 7 [ (gogoproto.jsontag) = "reject_reason" ];
  153. // 真实名字
  154. int32 realname = 8
  155. [ (gogoproto.jsontag) = "realname", (gogoproto.casttype) = "int8" ];
  156. // 操作人
  157. string operator = 9 [ (gogoproto.jsontag) = "operator" ];
  158. // 电话
  159. string telephone = 10 [ (gogoproto.jsontag) = "telephone" ];
  160. // 邮箱
  161. string email = 11 [ (gogoproto.jsontag) = "email" ];
  162. // 地址
  163. string address = 12 [ (gogoproto.jsontag) = "address" ];
  164. // 公司
  165. string company = 13 [ (gogoproto.jsontag) = "company" ];
  166. // 统一信用代码
  167. string credit_code = 14 [ (gogoproto.jsontag) = "credit_code" ];
  168. // 组织机构
  169. string organization = 15 [ (gogoproto.jsontag) = "organization" ];
  170. // 组织机构类型
  171. string organization_type = 16 [ (gogoproto.jsontag) = "organization_type" ];
  172. // 营业执照
  173. string business_license = 17 [ (gogoproto.jsontag) = "business_license" ];
  174. // 企业规模
  175. string business_scale = 18 [ (gogoproto.jsontag) = "business_scale" ];
  176. // 企业等级
  177. string business_level = 19 [ (gogoproto.jsontag) = "business_level" ];
  178. // 企业授权函
  179. string business_auth = 20 [ (gogoproto.jsontag) = "business_auth" ];
  180. // 其他补充资料
  181. string supplement = 21 [ (gogoproto.jsontag) = "supplement" ];
  182. // 专业资质
  183. string professional = 22 [ (gogoproto.jsontag) = "professional" ];
  184. // 身份证明
  185. string identification = 23 [ (gogoproto.jsontag) = "identification" ];
  186. // 提交来源
  187. string submit_source = 24 [ (gogoproto.jsontag) = "submit_source" ];
  188. }
  189. message UpdateSexReq {
  190. // mid
  191. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  192. // 性别
  193. int64 sex = 2 [ (gogoproto.jsontag) = "sex" ];
  194. // 远端ip
  195. string remote_IP = 3 [ (gogoproto.jsontag) = "remoteIP" ];
  196. }
  197. message UpdateUnameReq {
  198. // mid
  199. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  200. // 名称
  201. string name = 2 [ (gogoproto.jsontag) = "name" ];
  202. // 远端ip
  203. string remote_IP = 3 [ (gogoproto.jsontag) = "remoteIP" ];
  204. }
  205. message UpdateFaceReq {
  206. // mid
  207. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  208. // 头像
  209. string face = 2 [ (gogoproto.jsontag) = "face" ];
  210. // 远端ip
  211. string remote_IP = 3 [ (gogoproto.jsontag) = "remoteIP" ];
  212. }
  213. message UpdateRankReq {
  214. // mid
  215. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  216. // 排行
  217. int64 rank = 2 [ (gogoproto.jsontag) = "rank" ];
  218. // 远端ip
  219. string remote_IP = 3 [ (gogoproto.jsontag) = "remoteIP" ];
  220. }
  221. message UpdateBirthdayReq {
  222. // mid
  223. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  224. // 生日
  225. int64 birthday = 2 [
  226. (gogoproto.jsontag) = "birthday",
  227. (gogoproto.casttype) = "go-common/library/time.Time"
  228. ];
  229. // 远端ip
  230. string remote_IP = 3 [ (gogoproto.jsontag) = "remoteIP" ];
  231. }
  232. message UpdateSignReq {
  233. // mid
  234. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  235. // 签名
  236. string sign = 2 [ (gogoproto.jsontag) = "sign" ];
  237. // 远端ip
  238. string remote_IP = 3 [ (gogoproto.jsontag) = "remoteIP" ];
  239. }
  240. message OfficialDocInfoReply {
  241. // mid
  242. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  243. // 名称
  244. string name = 2 [ (gogoproto.jsontag) = "name" ];
  245. // 审核状态
  246. int32 state = 3 [ (gogoproto.jsontag) = "state" ];
  247. // 角色类型
  248. int32 role = 4
  249. [ (gogoproto.jsontag) = "role", (gogoproto.casttype) = "int8" ];
  250. // 认证称号
  251. string title = 5 [ (gogoproto.jsontag) = "title" ];
  252. // 认证后缀
  253. string desc = 6 [ (gogoproto.jsontag) = "desc" ];
  254. // 被拒绝原因
  255. string reject_reason = 7 [ (gogoproto.jsontag) = "reject_reason" ];
  256. // 真实姓名
  257. int32 realname = 8
  258. [ (gogoproto.jsontag) = "realname", (gogoproto.casttype) = "int8" ];
  259. // 经营人
  260. string operator = 9 [ (gogoproto.jsontag) = "operator" ];
  261. // 电话好吗
  262. string telephone = 10 [ (gogoproto.jsontag) = "telephone" ];
  263. // 邮箱
  264. string email = 11 [ (gogoproto.jsontag) = "email" ];
  265. // 地址
  266. string address = 12 [ (gogoproto.jsontag) = "address" ];
  267. // 公司
  268. string company = 13 [ (gogoproto.jsontag) = "company" ];
  269. // 社会信用代码
  270. string credit_code = 14 [ (gogoproto.jsontag) = "credit_code" ];
  271. // 政府或组织机构名称
  272. string organization = 15 [ (gogoproto.jsontag) = "organization" ];
  273. // 组织或机构类型
  274. string organization_type = 16 [ (gogoproto.jsontag) = "organization_type" ];
  275. // 营业执照
  276. string business_license = 17 [ (gogoproto.jsontag) = "business_license" ];
  277. // 企业规模
  278. string business_scale = 18 [ (gogoproto.jsontag) = "business_scale" ];
  279. // 企业等级
  280. string business_level = 19 [ (gogoproto.jsontag) = "business_level" ];
  281. // 企业授权函
  282. string business_auth = 20 [ (gogoproto.jsontag) = "business_auth" ];
  283. // 其他补充资料
  284. string supplement = 21 [ (gogoproto.jsontag) = "supplement" ];
  285. // 专业资质
  286. string professional = 22 [ (gogoproto.jsontag) = "professional" ];
  287. // 身份证明
  288. string identification = 23 [ (gogoproto.jsontag) = "identification" ];
  289. }
  290. // moral
  291. message MoralReply {
  292. // mid
  293. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  294. // 节操值
  295. int64 moral = 2 [ (gogoproto.jsontag) = "moral" ];
  296. // 增量
  297. int64 added = 3 [ (gogoproto.jsontag) = "added" ];
  298. // 减量
  299. int64 deducted = 4 [ (gogoproto.jsontag) = "deducted" ];
  300. // 上一次节操低于70时的恢复时间
  301. int64 last_recover_date = 5 [
  302. (gogoproto.jsontag) = "last_recover_date",
  303. (gogoproto.casttype) = "go-common/library/time.Time"
  304. ];
  305. }
  306. message UpdateMoralReq {
  307. // mid
  308. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  309. // 增量
  310. int64 delta = 2 [ (gogoproto.jsontag) = "delta" ];
  311. // 类型
  312. int64 origin = 3 [ (gogoproto.jsontag) = "origin" ];
  313. // 操作原因
  314. string reason = 4 [ (gogoproto.jsontag) = "reason" ];
  315. // 操纵原因类型
  316. int64 reason_type = 5 [ (gogoproto.jsontag) = "reason_type" ];
  317. // 操作人
  318. string operator = 6 [ (gogoproto.jsontag) = "operator" ];
  319. // 备注
  320. string remark = 7 [ (gogoproto.jsontag) = "remark" ];
  321. // 状态
  322. int64 status = 8 [ (gogoproto.jsontag) = "status" ];
  323. // 是否通知
  324. bool is_notify = 9 [ (gogoproto.jsontag) = "is_notify" ];
  325. // ip地址
  326. string ip = 10 [ (gogoproto.jsontag) = "ip" ];
  327. }
  328. message UpdateMoralsReq {
  329. // mid 列表
  330. repeated int64 mids = 1 [ (gogoproto.jsontag) = "mid" ];
  331. // 增量
  332. int64 delta = 2 [ (gogoproto.jsontag) = "delta" ];
  333. // 类型
  334. int64 origin = 3 [ (gogoproto.jsontag) = "origin" ];
  335. // 操作原因
  336. string reason = 4 [ (gogoproto.jsontag) = "reason" ];
  337. // 操纵原因类型
  338. int64 reason_type = 5 [ (gogoproto.jsontag) = "reason_type" ];
  339. // 操作人
  340. string operator = 6 [ (gogoproto.jsontag) = "operator" ];
  341. // 备注
  342. string remark = 7 [ (gogoproto.jsontag) = "remark" ];
  343. // 状态
  344. int64 status = 8 [ (gogoproto.jsontag) = "status" ];
  345. // 是否通知
  346. bool is_notify = 9 [ (gogoproto.jsontag) = "is_notify" ];
  347. // ip
  348. string ip = 10 [ (gogoproto.jsontag) = "ip" ];
  349. }
  350. message UpdateMoralsReply {
  351. // 批量更新后节操值
  352. map<int64, int64> after_morals = 1 [ (gogoproto.jsontag) = "after_morals" ];
  353. }
  354. // property_review
  355. message AddUserMonitorReq {
  356. // mid
  357. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  358. // 操作人
  359. string operator = 2 [ (gogoproto.jsontag) = "operator" ];
  360. // 备注
  361. string remark = 3 [ (gogoproto.jsontag) = "remark" ];
  362. }
  363. // AddPropertyReview (暂时不开放调用)
  364. // message AddPropertyReviewReq {
  365. // // mid
  366. // int64 mid = 1 [(gogoproto.jsontag) = "mid"];
  367. // // 属性新的值
  368. // string new = 2 [(gogoproto.jsontag) = "new"];
  369. // // 状态
  370. // int32 state = 3 [(gogoproto.jsontag) = "state",(gogoproto.casttype) =
  371. // "int8"];
  372. // // 属性
  373. // int32 property = 4 [(gogoproto.jsontag) = "property",(gogoproto.casttype)
  374. // = "int8"];
  375. // // 额外的一些信息
  376. // map<string, string> extra = 5 [(gogoproto.jsontag) = "extra"];
  377. // }
  378. message IsInMonitorReply {
  379. // member是否处在受监控列表中
  380. bool is_in_monitor = 1 [ (gogoproto.jsontag) = "is_in_monitor" ];
  381. }
  382. // realname
  383. message RealnameStatusReply {
  384. // 实名认证状态
  385. int32 realname_status = 1 [
  386. (gogoproto.jsontag) = "realname_status",
  387. (gogoproto.casttype) = "int8"
  388. ];
  389. }
  390. message RealnameApplyInfoReply {
  391. // 认证流程状态
  392. int32 status = 1
  393. [ (gogoproto.jsontag) = "status", (gogoproto.casttype) = "int8" ];
  394. // 备注
  395. string remark = 2 [ (gogoproto.jsontag) = "remark" ];
  396. }
  397. message ArgRealnameApplyReq {
  398. // mid
  399. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  400. // 验证码
  401. int64 capture_code = 2 [ (gogoproto.jsontag) = "capture_code" ];
  402. // 真实的名字
  403. string realname = 3 [ (gogoproto.jsontag) = "realname" ];
  404. // 证件类型
  405. int32 card_type = 4
  406. [ (gogoproto.jsontag) = "card_type", (gogoproto.casttype) = "int8" ];
  407. // 证件码
  408. string card_code = 5 [ (gogoproto.jsontag) = "card_code" ];
  409. // 国家
  410. int32 country = 6
  411. [ (gogoproto.jsontag) = "country", (gogoproto.casttype) = "int16" ];
  412. // 手持照的路径
  413. string handIMG_token = 7;
  414. // 证件照的前面
  415. string frontIMG_token = 8;
  416. // 证件照的后面
  417. string backIMG_token = 9;
  418. }
  419. message RealnameDetailReply {
  420. // 实名姓名
  421. string realname = 1 [ (gogoproto.jsontag) = "realname" ];
  422. // 证件码
  423. string card = 2 [ (gogoproto.jsontag) = "card" ];
  424. // 证件类型
  425. int32 card_type = 3
  426. [ (gogoproto.jsontag) = "card_type", (gogoproto.casttype) = "int8" ];
  427. // 实名状态
  428. int32 status = 4
  429. [ (gogoproto.jsontag) = "status", (gogoproto.casttype) = "int8" ];
  430. // 性别
  431. string gender = 5 [ (gogoproto.jsontag) = "gender" ];
  432. // 手持照IMG User
  433. string hand_img = 6 [ (gogoproto.jsontag) = "hand_img" ];
  434. }
  435. message RealnameStrippedInfoReply {
  436. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  437. int32 status = 2
  438. [ (gogoproto.jsontag) = "status", (gogoproto.casttype) = "int8" ];
  439. int32 channel = 3
  440. [ (gogoproto.jsontag) = "channel", (gogoproto.casttype) = "int8" ];
  441. int32 country = 4
  442. [ (gogoproto.jsontag) = "country", (gogoproto.casttype) = "int16" ];
  443. int32 card_type = 5
  444. [ (gogoproto.jsontag) = "card_type", (gogoproto.casttype) = "int8" ];
  445. int32 adult_type = 6
  446. [ (gogoproto.jsontag) = "adult_type", (gogoproto.casttype) = "int8" ];
  447. }
  448. message MidByRealnameCardReply {
  449. map<string, int64> code_to_mid = 5 [ (gogoproto.jsontag) = "code_to_mid" ];
  450. }
  451. message BlockInfoReply {
  452. int64 MID = 1 [ (gogoproto.jsontag) = "mid" ];
  453. int32 BlockStatus = 2 [ (gogoproto.jsontag) = "status" ];
  454. int64 StartTime = 3 [ (gogoproto.jsontag) = "start_time" ];
  455. int64 EndTime = 4 [ (gogoproto.jsontag) = "end_time" ];
  456. }
  457. message BlockDetailReply {
  458. int64 MID = 1 [ (gogoproto.jsontag) = "mid" ];
  459. int64 BlockCount = 2 [ (gogoproto.jsontag) = "block_count" ];
  460. }
  461. message BlockBatchDetailReply {
  462. map<int64, BlockDetailReply> BlockDetails = 1 [ (gogoproto.jsontag) = "block_details" ];
  463. }
  464. message BlockBatchInfoReply {
  465. repeated BlockInfoReply BlockInfos = 1
  466. [ (gogoproto.jsontag) = "block_infos" ];
  467. }
  468. service Member {
  469. // 得到member的基本信息
  470. rpc Base(MemberMidReq) returns (BaseInfoReply);
  471. // 批量得到一批member的基本信息
  472. rpc Bases(MemberMidsReq) returns (BaseInfosReply);
  473. // 得到member的全量信息
  474. rpc Member(MemberMidReq) returns (MemberInfoReply);
  475. // 批量得到一批member的全量信息
  476. rpc Members(MemberMidsReq) returns (MemberInfosReply);
  477. // 查看member是否更新过昵称
  478. rpc NickUpdated(MemberMidReq) returns (NickUpdatedReply);
  479. // 标记member已经更新过昵称
  480. rpc SetNickUpdated(MemberMidReq) returns (EmptyStruct);
  481. // 设置官方文档资料
  482. rpc SetOfficialDoc(OfficialDocReq) returns (EmptyStruct);
  483. // 设置member的性别
  484. rpc SetSex(UpdateSexReq) returns (EmptyStruct);
  485. // 设置member的名字
  486. rpc SetName(UpdateUnameReq) returns (EmptyStruct);
  487. // 设置member的头像
  488. rpc SetFace(UpdateFaceReq) returns (EmptyStruct);
  489. // 设置member的头像
  490. rpc SetRank(UpdateRankReq) returns (EmptyStruct);
  491. // 设置member的生日
  492. rpc SetBirthday(UpdateBirthdayReq) returns (EmptyStruct);
  493. // 设置member的签名
  494. rpc SetSign(UpdateSignReq) returns (EmptyStruct);
  495. // 得到member的官方信息
  496. rpc OfficialDoc(MidReq) returns (OfficialDocInfoReply);
  497. // 得到member的节操值
  498. rpc Moral(MemberMidReq) returns (MoralReply);
  499. // 得到member的节操日志
  500. rpc MoralLog(MemberMidReq) returns (UserLogsReply);
  501. // 给member添加节操值
  502. rpc AddMoral(UpdateMoralReq) returns (EmptyStruct);
  503. // 给一批member批量添加节操值
  504. rpc BatchAddMoral(UpdateMoralsReq) returns (UpdateMoralsReply);
  505. // 得到member的经验值
  506. rpc Exp(MidReq) returns (LevelInfoReply);
  507. // 得到member的等级
  508. rpc Level(MidReq) returns (LevelInfoReply);
  509. // 更新member的经验值
  510. rpc UpdateExp(AddExpReq) returns (EmptyStruct);
  511. // 得到membe的经验日志
  512. rpc ExpLog(MidReq) returns (UserLogsReply);
  513. // 得到member的经验统计
  514. rpc ExpStat(MidReq) returns (ExpStatReply);
  515. // 得到member的实名认证状态
  516. rpc RealnameStatus(MemberMidReq) returns (RealnameStatusReply);
  517. // 得到member 实名认证流程的状态
  518. rpc RealnameApplyStatus(MemberMidReq) returns (RealnameApplyInfoReply);
  519. // 手机号实名认证发送验证码
  520. rpc RealnameTelCapture(MemberMidReq) returns (EmptyStruct);
  521. // 进行实名认证
  522. rpc RealnameApply(ArgRealnameApplyReq) returns (EmptyStruct);
  523. // 实名详情
  524. rpc RealnameDetail(MemberMidReq) returns (RealnameDetailReply);
  525. // 所有非敏感实名认证信息
  526. rpc RealnameStrippedInfo(MemberMidReq) returns (RealnameStrippedInfoReply);
  527. // 通过身份证号查询 mid
  528. rpc MidByRealnameCard(MidByRealnameCardsReq) returns (MidByRealnameCardReply);
  529. // 添加用户为受监控
  530. rpc AddUserMonitor(AddUserMonitorReq) returns (EmptyStruct);
  531. // 查看member是否在监控状态
  532. rpc IsInMonitor(MidReq) returns (IsInMonitorReply);
  533. // 添加属性审核 (暂时不开放调用)
  534. // rpc AddPropertyReview(AddPropertyReviewReq) returns (EmptyStruct);
  535. // block
  536. // 获取用户封禁信息数据
  537. rpc BlockInfo(MemberMidReq) returns (BlockInfoReply);
  538. // 批量获取用户封禁信息数据
  539. rpc BlockBatchInfo(MemberMidsReq) returns (BlockBatchInfoReply);
  540. //批量获取用户封禁详细数据
  541. rpc BlockBatchDetail(MemberMidsReq) returns (BlockBatchDetailReply);
  542. }