| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- syntax = "proto3";
- package api.wx;
- import "google/api/annotations.proto";
- //import "google/protobuf/struct.proto";
- import "google/protobuf/empty.proto";
- import "api/common/common.proto";
- import "api/account/account.proto";
- option go_package = "git.ikuban.com/server/pw-protobuf/api/wx;wx";
- option java_multiple_files = true;
- option java_package = "api.wx";
- service Wx {
- // 定时发送签到提醒
- rpc CronSignInUser (google.protobuf.Empty) returns (google.protobuf.Empty){};
- // 定时发送未读消息提醒
- rpc CronSendUnreadTemplate (google.protobuf.Empty) returns (google.protobuf.Empty){};
- // 未读发送模板消息
- rpc SendNewMessageUnreadReminder (SendNewMessageUnreadReminderRequest) returns (google.protobuf.Empty){};
- // 好友访问提醒
- rpc SendNewVisitorTemplateReminder (common.PersonIDParam) returns (google.protobuf.Empty){};
- // 移除用户已读
- rpc ReduceUserUnread (ReduceUserUnreadRequest) returns (google.protobuf.Empty){};
- // 获取key对应的参数
- rpc GetUserMsgByKey (GetUserMsgByKeyRequest) returns (GetUserMsgByKeyReply){};
- // 微信SDK初始化
- rpc WxConf (common.WxConfReq) returns (common.WxConfResponse){
- option (google.api.http) = {
- post: "/api/wx/jssdk/config",
- body:"*"
- };
- };
- // 通过微信下载语音并上传到七牛
- rpc UploadMaterialVoice (account.MediaID) returns (account.MaterialLink){
- option (google.api.http) = {
- post: "/api/common/material/upload/voice",
- body:"*"
- };
- };
- // 定时删除过期选择
- rpc CronDeleteOldUserSelect (google.protobuf.Empty) returns (google.protobuf.Empty){};
- }
- message GetUserMsgByKeyRequest{
- string key = 1;
- }
- message GetUserMsgByKeyReply{
- string partnerId = 1;
- string openId = 2;
- string appId = 3;
- string appName = 4;
- }
- message ReduceUserUnreadRequest{
- int64 accountId = 1;
- string personId = 2;
- }
- message SendNewMessageUnreadReminderRequest{
- string personId = 1;
- string sendPersonId = 2;
- }
|