youtu_grpc/app/admin_service/admin_service.proto

38 lines
566 B
Protocol Buffer
Raw Normal View History

2025-02-21 18:24:39 +08:00
syntax = "proto3";
package admin_service;
option go_package = "./admin_service";
message Request {
string ping = 1;
}
message Response {
string pong = 1;
}
message GetAppListRequest {
}
message GetAppListResponse {
repeated AppInfo app_list = 1;
}
message AppInfo {
int32 id = 1;
int32 type = 2;
string app_id = 3;
string secret = 4;
string remark = 5;
float ecpm = 6;
uint32 ipu = 7;
}
service admin_service {
rpc Ping(Request) returns(Response);
//获取app列表
rpc GetAppList(GetAppListRequest) returns(GetAppListResponse);
}