wx.proto 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. option go_package = "git.ikuban.com/server/pw-protobuf/api/wx;wx";
  8. option java_multiple_files = true;
  9. option java_package = "api.wx";
  10. service Wx {
  11. // 定时发送签到提醒
  12. rpc CronSignInUser (google.protobuf.Empty) returns (google.protobuf.Empty){};
  13. // 定时发送未读消息提醒
  14. rpc CronSendUnreadTemplate (google.protobuf.Empty) returns (google.protobuf.Empty){};
  15. // 未读发送模板消息
  16. rpc SendNewMessageUnreadReminder (SendNewMessageUnreadReminderRequest) returns (google.protobuf.Empty){};
  17. // 好友访问提醒
  18. rpc SendNewVisitorTemplateReminder (common.PersonIDParam) returns (google.protobuf.Empty){};
  19. // 移除用户已读
  20. rpc ReduceUserUnread (ReduceUserUnreadRequest) returns (google.protobuf.Empty){};
  21. // 获取key对应的参数
  22. rpc GetUserMsgByKey (GetUserMsgByKeyRequest) returns (GetUserMsgByKeyReply){};
  23. // 微信SDK初始化
  24. rpc WxConf (common.WxConfReq) returns (common.WxConfResponse){
  25. option (google.api.http) = {
  26. post: "/api/wx/jssdk/config",
  27. body:"*"
  28. };
  29. };
  30. }
  31. message GetUserMsgByKeyRequest{
  32. string key = 1;
  33. }
  34. message GetUserMsgByKeyReply{
  35. string partnerId = 1;
  36. string openId = 2;
  37. string appId = 3;
  38. string appName = 4;
  39. }
  40. message ReduceUserUnreadRequest{
  41. int64 accountId = 1;
  42. string personId = 2;
  43. }
  44. message SendNewMessageUnreadReminderRequest{
  45. string personId = 1;
  46. string sendPersonId = 2;
  47. }