f8e795bc26
CI / changes (push) Successful in 41s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 46s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 44s
CI / payment (push) Successful in 1s
CI / product (push) Successful in 0s
CI / record (push) Successful in 50s
CI / sale (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 0s
60 lines
1.0 KiB
Protocol Buffer
60 lines
1.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package message;
|
|
import "google/api/annotations.proto";
|
|
option go_package="lone-services/rpc/message";
|
|
|
|
message Response {
|
|
int32 code = 1;
|
|
string msg = 2;
|
|
string data = 3;
|
|
}
|
|
|
|
message AddResponse {
|
|
int32 num = 1;
|
|
}
|
|
|
|
message ItemsRequest {
|
|
int32 page = 1;
|
|
int32 size = 2;
|
|
int32 type =3;
|
|
}
|
|
|
|
message AddRequest {
|
|
string content = 1;
|
|
int32 target_type = 2;
|
|
int64 target_id = 3;
|
|
int32 type_status = 4;
|
|
int32 type = 5;
|
|
int64 obj_id = 6;
|
|
}
|
|
|
|
message ApiMessageNumberRequest {
|
|
int32 type = 1;
|
|
}
|
|
|
|
|
|
service Message {
|
|
rpc AdminMessage(ItemsRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
get: "/admin/v3/message/items"
|
|
body: "*"
|
|
};
|
|
};
|
|
|
|
rpc ApiMessage(ItemsRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
get: "/api/v3/message/items"
|
|
body: "*"
|
|
};
|
|
};
|
|
rpc ApiMessageNumber(ApiMessageNumberRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
get: "/api/v3/message/number"
|
|
body: "*"
|
|
};
|
|
};
|
|
|
|
rpc MessageAdd(AddRequest) returns(AddResponse);
|
|
}
|