vue_dreamfactory/src/pb/proto/forum_msg.proto
2022-10-13 13:48:48 +08:00

55 lines
1.3 KiB
Protocol Buffer

syntax = "proto3";
option go_package = ".;pb";
import "forum_db.proto";
import "hero_db.proto";
//获取评论列表
message ForumGetListReq {
string herocid = 1; //英雄配置id
}
//获取评论回应
message ForumGetListResp {
repeated DBComment comment = 1;
}
//发布评论请求
message ForumReleaseCommentReq {
string avatar = 1; //用户头像
string uname = 2; //用户名
string herocid = 3; //英雄的配置id
string herooid = 4; //英雄的实例id
string content = 5; //评论内容
}
//发布评论回应
message ForumReleaseCommentResp {
DBComment comment = 1;
}
//查看英雄信息请求
message ForumWatchHeroReq {
string uid = 1; //用户id
string stag = 2; //区服id
string herocId = 3; //用户cid
string herooId = 4; //英雄实例id
}
//查看英雄信息回应
message ForumWatchHeroResp {
DBHero hero = 1;
}
//请求点赞 请求
message ForumLikeReq {
string herocid = 1; //英雄配置id
string cid = 2; //评论id
bool islike = 3; //是否点赞
}
//请求点赞 回应
message ForumLikeResp {
string cid = 1; //评论id
bool islike = 2; //是否点赞
bool issucc = 3; //成功失败
}