2026-08-09 10:43:45 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
package ads;
|
2026-08-09 15:10:19 +08:00
|
|
|
option go_package = "bsm/full/module/base/ads/pb;ads";
|
2026-08-09 10:43:45 +08:00
|
|
|
|
|
|
|
|
//广告子系统
|
|
|
|
|
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;
|
|
|
|
|
}
|