syntax = "proto3";
package  feed;
option go_package = "bsm/full/module/social/feed/pb;feed";
import "module/social/feed/proto/const.proto";

service Tag{
    // 标签列表
    rpc List (blocks.FetchRequest) returns (TagListReply){};
    // 新建标签
    rpc Create (AddTagRequest) returns (blocks.DataStatusReply){};
    // 话题相关的文章
    rpc PostList (blocks.FetchRequest) returns (blocks.FeedPostListReply){};
}

message AddTagRequest {
    repeated string tags = 1; // 标签名称
}
message TagListReply{
    repeated blocks.FeedTagItem tags = 1;
    int64 total = 2;
}
