change layout
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,333 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package admin;
|
||||
option go_package = "lone-services/rpc/admin";
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
message AdminEditRequest {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
string password = 3;
|
||||
string avatar = 4;
|
||||
string phone = 5;
|
||||
string email = 6;
|
||||
repeated int64 roles = 7;
|
||||
}
|
||||
|
||||
message StatusRequest {
|
||||
int64 id = 1 ;
|
||||
int32 status = 2 ;
|
||||
string reason = 3;
|
||||
}
|
||||
|
||||
message Response {
|
||||
int32 code = 1;
|
||||
string msg = 2;
|
||||
string data = 3;
|
||||
}
|
||||
|
||||
message PasswordRequest {
|
||||
int64 id = 1;
|
||||
string password = 2;
|
||||
}
|
||||
|
||||
message OwnPasswordRequest {
|
||||
string password = 1;
|
||||
}
|
||||
|
||||
message AdminInfoRequest {
|
||||
int64 id = 1;
|
||||
}
|
||||
|
||||
message AdminItemsRequest {
|
||||
int32 page = 1;
|
||||
int32 size = 2;
|
||||
string phone = 3;
|
||||
string name = 4;
|
||||
string email = 5;
|
||||
int32 status = 6;
|
||||
}
|
||||
|
||||
message LoginRequest {
|
||||
string username = 1;
|
||||
string password = 2;
|
||||
}
|
||||
|
||||
message AdminEmptyRequest {
|
||||
}
|
||||
|
||||
message InfoRequest {
|
||||
int64 id = 1;
|
||||
}
|
||||
|
||||
message LoginKickedOutRequest {
|
||||
int64 id = 1;
|
||||
}
|
||||
|
||||
message ServiceEditRequest {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
string description = 3;
|
||||
}
|
||||
|
||||
message ServiceItemsRequest {
|
||||
string name = 1;
|
||||
int32 status = 2;
|
||||
}
|
||||
|
||||
message ServiceNameRequest {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message AuthoritySortRequest {
|
||||
int64 id = 1;
|
||||
int32 type = 2;
|
||||
}
|
||||
|
||||
message AuthorityNameRequest {
|
||||
int64 service_id = 1;
|
||||
int32 type = 2;
|
||||
}
|
||||
|
||||
message AuthorityItemsRequest {
|
||||
int64 service_id = 1;
|
||||
}
|
||||
|
||||
message RoutesRequest {
|
||||
int64 service_id = 1;
|
||||
}
|
||||
|
||||
message AuthorityEditRequest {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
int64 parent_id = 3;
|
||||
int32 type = 4;
|
||||
int64 service_id = 5;
|
||||
string path = 6;
|
||||
string api = 7;
|
||||
string view_path = 8;
|
||||
string identification = 9;
|
||||
string icon = 10;
|
||||
int32 is_show = 11;
|
||||
string description = 12;
|
||||
string data_base_str = 13;
|
||||
string data_all = 14;
|
||||
string data_department = 15;
|
||||
string data_oneself = 16;
|
||||
string data_tree_all = 17;
|
||||
string data_tree_department = 18;
|
||||
string data_tree_oneself = 19;
|
||||
}
|
||||
message RoleRuleRequest {
|
||||
int64 id = 1;
|
||||
string rule = 2;
|
||||
}
|
||||
|
||||
message RoleNameRequest {
|
||||
string name = 1;
|
||||
int64 service_id = 2;
|
||||
}
|
||||
message RoleEditRequest {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
int64 service_id = 3;
|
||||
repeated int64 rules = 4;
|
||||
|
||||
}
|
||||
|
||||
message RoleItemsRequest {
|
||||
int32 page = 1;
|
||||
int32 size = 2;
|
||||
int64 service_id = 3;
|
||||
string name = 4;
|
||||
int32 status = 5;
|
||||
}
|
||||
|
||||
service Admin {
|
||||
rpc AdminEdit(AdminEditRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/admin/edit"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc AdminStatus(StatusRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/admin/status"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Password(PasswordRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/admin/password"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc OwnPassword(OwnPasswordRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/admin/own-password"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc AdminInfo(AdminInfoRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/admin/info"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc AdminItems(AdminItemsRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/admin/items"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc AdminNames(AdminEmptyRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/admin/names"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc LoginRefresh(AdminEmptyRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/refresh"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Login(LoginRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/login"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc LoginInfo(AdminEmptyRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/info"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc LoginItems(AdminEmptyRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/login/items"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc LoginKickedOut(LoginKickedOutRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/kicked-out"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc LogOut(AdminEmptyRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/logout"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc LoginRoutes(RoutesRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/routes"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc ServiceInfo(InfoRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/service/info"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc ServiceEdit(ServiceEditRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/service/edit"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc ServiceItems(ServiceItemsRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/service/items"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc ServiceStatus(StatusRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/service/status"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc ServiceNames(ServiceNameRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/service/names"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc AuthorityInfo(InfoRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/authority/info"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc AuthorityEdit(AuthorityEditRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/authority/edit"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc AuthorityItems(AuthorityItemsRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/authority/items"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc AuthorityStatus(StatusRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/authority/status"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc AuthorityNames(AuthorityNameRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/authority/names"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc AuthoritySort(AuthoritySortRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/authority/sort"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc RoleNames(RoleNameRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/role/names"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc RoleInfo(InfoRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/role/info"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc RoleEdit(RoleEditRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/role/edit"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc RoleItems(RoleItemsRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/role/items"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc RoleStatus(StatusRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/role/status"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc RoleRule(RoleRuleRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/role/rule"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user