diff --git a/gim/business.ext.proto b/gim/business.ext.proto index c8e7b22..4454e03 100644 --- a/gim/business.ext.proto +++ b/gim/business.ext.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package pb; option go_package = "gim/pkg/pb/"; +import "common.ext.proto"; + service BusinessExt { // 登录 rpc SignIn (SignInReq) returns (SignInResp); @@ -13,8 +15,19 @@ service BusinessExt { rpc SearchUser (SearchUserReq) returns (SearchUserResp); // 上传文件至云端 rpc CloudUploadFile (CloudUploadFileReq) returns (CloudUploadFileResp); + // 获取表情 + rpc EmoticonList (Empty) returns (EmoticonListResp); } +message Emoticon { + string name = 1; // 名称 + string img_url = 2; // 图片地址 + string memo = 3; // 备注 + int32 sort = 4; // 排序 +} +message EmoticonListResp { + repeated Emoticon emoticons = 1; +} message SignInReq { string phone_number = 1; // 手机号 string code = 2; // 验证码