Some checks are pending
/ build-services (app/admin_service/Dockerfile, admin, admin) (push) Waiting to run
/ build-services (app/auth_service/Dockerfile, auth, auth) (push) Waiting to run
/ build-services (app/ecpm_service/Dockerfile, ecpm, ecpm) (push) Waiting to run
/ build-services (app/ranking_service/Dockerfile, ranking, ranking) (push) Waiting to run
/ build-services (app/user_service/Dockerfile, user, user) (push) Waiting to run
/ start-services (push) Blocked by required conditions
74 lines
1.2 KiB
Protocol Buffer
74 lines
1.2 KiB
Protocol Buffer
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;
|
|
}
|
|
|
|
message CommonResponse {
|
|
bool success = 1;
|
|
}
|
|
|
|
message DeleteAppRequest {
|
|
string app_id = 1;
|
|
}
|
|
|
|
message AddAppRequest {
|
|
AppInfo app_info = 1;
|
|
}
|
|
|
|
message AddAppResponse {
|
|
bool success = 1;
|
|
}
|
|
|
|
message CoverAppRequest {
|
|
repeated AppInfo app_info = 1;
|
|
}
|
|
|
|
message CoverAppResponse {
|
|
bool success = 1;
|
|
}
|
|
|
|
service admin_service {
|
|
rpc Ping(Request) returns(Response);
|
|
// 获取app列表
|
|
rpc GetAppList(GetAppListRequest) returns(GetAppListResponse);
|
|
|
|
// UpdateOne 修改app数据
|
|
rpc UpdateOne(AppInfo) returns(CommonResponse);
|
|
|
|
// DeleteApp 删除app
|
|
rpc DeleteApp(DeleteAppRequest) returns(CommonResponse);
|
|
|
|
// AddApp 添加app
|
|
rpc AddApp(AddAppRequest) returns(AddAppResponse);
|
|
|
|
// 覆盖app数据
|
|
rpc CoverApp(CoverAppRequest) returns(CoverAppResponse);
|
|
}
|