syntax = "proto3"; package ads; option go_package = "./ads"; //广告子系统 service Fetch{ //通过广告位获取广告信息 rpc ByPos(ByPosRequest) returns (ByPosReply) {} } message ByPosRequest{ string key = 1; } message ByPosReply{ repeated AdsItem data =1; } message AdsItem{ int64 id = 1; string title = 2;//广告名称 string content = 3;//广告内容 int32 type = 4;//广告类型 1.文本 2.图片 3.视频 string toUrl = 5; string created = 6; }