From a5e9e19f8817716475d20d0d12832f33b796549f Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 2 Dec 2022 19:37:23 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E8=A1=A8=E6=83=85=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gim/business.ext.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; // 验证码