feat: 新增项目公共工具包,包含日志、错误、数据库、缓存、公共proto
This commit is contained in:
24
backend/shared/proto/common.proto
Normal file
24
backend/shared/proto/common.proto
Normal file
@@ -0,0 +1,24 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package common;
|
||||
|
||||
option go_package = "./common";
|
||||
|
||||
message Empty {
|
||||
}
|
||||
|
||||
message Status {
|
||||
bool success = 1;
|
||||
string message = 2;
|
||||
string code = 3;
|
||||
}
|
||||
|
||||
message Pagination {
|
||||
int32 page = 1;
|
||||
int32 page_size = 2;
|
||||
int32 total = 3;
|
||||
}
|
||||
|
||||
message IdRequest {
|
||||
string id = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user