| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- 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){};
- rpc GetAccessToken (GetAccessTokenRequest) returns (GetAccessTokenReply){
- option (google.api.http) = {
- get: "/api/get_access_token",
- };
- };
- rpc SendNewVisitorReminder (OpenIDRequest) returns (google.protobuf.Empty){
- option (google.api.http) = {
- post: "/api/send/subscribe/web",
- };
- };
- rpc SendAIReply (SendAIReplyRequest) returns (google.protobuf.Empty){};
- rpc GetWxGzhQrcode (GetWxGzhQrcodeRequest) returns (GetWxGzhQrcodeReply){};
- rpc sendMiniProgramShareVideoLinkFail (SendMiniProgramShareVideoLinkFailRequest) returns (google.protobuf.Empty){};
- rpc sendMiniProgramSuccessInviteFriend (SendMiniProgramSuccessInviteFriendRequest) returns (google.protobuf.Empty){};
- rpc sendMiniProgramUpOfficialVersion (common.PersonIDParam) returns (google.protobuf.Empty){};
- }
- message SendMiniProgramShareVideoLinkFailRequest{
- string userId = 1;
- int64 robotId = 2;
- }
- message SendMiniProgramSuccessInviteFriendRequest{
- string userId = 1;
- int64 num = 2;
- }
- message GetWxGzhQrcodeRequest{
- int64 shareId = 1;// 分享码ID
- }
- message GetWxGzhQrcodeReply{
- string url = 1;
- }
- message SendAIReplyRequest{
- string personId = 1;
- string name = 2;
- int64 robotId = 3;
- }
- message OpenIDRequest {
- string openId = 1;
- }
- message GetAccessTokenRequest{
- string appid = 1;
- }
- message GetAccessTokenReply{
- string access_token = 1;
- int64 errcode = 2;
- string errmsg = 3;
- int64 expires_in = 4;
- }
- 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;
- }
|