refactor: reorganize modules and add Linux build tooling
This commit is contained in:
25
module/base/ads/proto/ads.proto
Normal file
25
module/base/ads/proto/ads.proto
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user