wx.proto 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. syntax = "proto3";
  2. package api.wx;
  3. import "google/api/annotations.proto";
  4. //import "google/protobuf/struct.proto";
  5. import "google/protobuf/empty.proto";
  6. import "api/common/common.proto";
  7. import "api/account/account.proto";
  8. option go_package = "git.ikuban.com/server/pw-protobuf/api/wx;wx";
  9. option java_multiple_files = true;
  10. option java_package = "api.wx";
  11. service Wx {
  12. // 定时发送签到提醒
  13. rpc CronSignInUser (google.protobuf.Empty) returns (google.protobuf.Empty){};
  14. // 定时发送未读消息提醒
  15. rpc CronSendUnreadTemplate (google.protobuf.Empty) returns (google.protobuf.Empty){};
  16. // 未读发送模板消息
  17. rpc SendNewMessageUnreadReminder (SendNewMessageUnreadReminderRequest) returns (google.protobuf.Empty){};
  18. // 好友访问提醒
  19. rpc SendNewVisitorTemplateReminder (common.PersonIDParam) returns (google.protobuf.Empty){};
  20. // 移除用户已读
  21. rpc ReduceUserUnread (ReduceUserUnreadRequest) returns (google.protobuf.Empty){};
  22. // 获取key对应的参数
  23. rpc GetUserMsgByKey (GetUserMsgByKeyRequest) returns (GetUserMsgByKeyReply){};
  24. // 微信SDK初始化
  25. rpc WxConf (common.WxConfReq) returns (common.WxConfResponse){
  26. option (google.api.http) = {
  27. post: "/api/wx/jssdk/config",
  28. body:"*"
  29. };
  30. };
  31. // 通过微信下载语音并上传到七牛
  32. rpc UploadMaterialVoice (account.MediaID) returns (account.MaterialLink){
  33. option (google.api.http) = {
  34. post: "/api/common/material/upload/voice",
  35. body:"*"
  36. };
  37. };
  38. // 定时删除过期选择
  39. rpc CronDeleteOldUserSelect (google.protobuf.Empty) returns (google.protobuf.Empty){};
  40. }
  41. message GetUserMsgByKeyRequest{
  42. string key = 1;
  43. }
  44. message GetUserMsgByKeyReply{
  45. string partnerId = 1;
  46. string openId = 2;
  47. string appId = 3;
  48. string appName = 4;
  49. }
  50. message ReduceUserUnreadRequest{
  51. int64 accountId = 1;
  52. string personId = 2;
  53. }
  54. message SendNewMessageUnreadReminderRequest{
  55. string personId = 1;
  56. string sendPersonId = 2;
  57. }