fix
This commit is contained in:
parent
a8e75109b7
commit
041e95c50a
|
@ -2,7 +2,7 @@ syntax = "proto3"; //版本声明,使用v3版本
|
|||
|
||||
package ldap;
|
||||
option go_package = "gitlab.fusenpack.com/backend/ldap;service";
|
||||
|
||||
|
||||
// 导入google/api/annotations.proto 注释依赖
|
||||
import "google/api/annotations.proto";
|
||||
import "service/basic.proto";
|
||||
|
@ -46,7 +46,113 @@ service ldap {
|
|||
rpc GetLdapUsers(GetLdapUsersReq) returns (GetLdapUsersRsp) {}
|
||||
//登录
|
||||
rpc LdapUserLogin(LdapUserLoginReq) returns (LdapUserLoginRsp) {}
|
||||
|
||||
|
||||
//获取权限组列表
|
||||
rpc GetLdapGroups(GetLdapGroupsReq) returns (GetLdapGroupsRsp);
|
||||
//获取权限组详情
|
||||
rpc GetLdapGroupDetail(GetLdapGroupDetailReq) returns (GetLdapGroupDetailRsp);
|
||||
//保存权限组
|
||||
rpc SaveLdapGroup(SaveLdapGroupReq) returns (SaveLdapGroupRsp);
|
||||
//删除权限组
|
||||
rpc DeleteLdapGroup(DeleteLdapGroupReq) returns (DeleteLdapGroupRsp);
|
||||
//权限组授权--新增
|
||||
rpc SetLdapGroupAuth(SetLdapGroupAuthReq) returns (SetLdapGroupAuthRsp);
|
||||
//权限组授权--移除
|
||||
rpc RemoveLdapGroupAuth(RemoveLdapGroupAuthReq) returns (RemoveLdapGroupAuthRsp);
|
||||
}
|
||||
message GetLdapGroupsReq {
|
||||
optional LdapGroupFilter filter = 1;
|
||||
|
||||
optional int64 current_page = 101;
|
||||
optional int64 per_page = 102;
|
||||
optional string order_by = 103;
|
||||
}
|
||||
message GetLdapGroupsRsp {
|
||||
repeated LdapGroup list = 1;
|
||||
basic.Meta meta = 2;
|
||||
}
|
||||
|
||||
message GetLdapGroupDetailReq {
|
||||
optional LdapGroupFilter filter = 1;
|
||||
}
|
||||
message GetLdapGroupDetailRsp {
|
||||
optional LdapGroup info = 1;
|
||||
}
|
||||
|
||||
message SaveLdapGroupReq {
|
||||
optional LdapGroupFilter filter = 1;
|
||||
optional LdapGroupFilter save = 2;
|
||||
}
|
||||
|
||||
message SaveLdapGroupRsp {
|
||||
LdapGroup info = 1;
|
||||
}
|
||||
message DeleteLdapGroupReq {
|
||||
optional LdapGroupFilter filter = 1;
|
||||
}
|
||||
message DeleteLdapGroupRsp {
|
||||
|
||||
}
|
||||
|
||||
message SetLdapGroupAuthReq {
|
||||
int64 group_id = 1;
|
||||
GroupAuth group_auth = 2;
|
||||
}
|
||||
|
||||
message SetLdapGroupAuthRsp {
|
||||
int64 group_id = 1;
|
||||
}
|
||||
|
||||
message RemoveLdapGroupAuthReq {
|
||||
int64 group_id = 1;
|
||||
GroupAuth group_auth = 2;
|
||||
}
|
||||
|
||||
message RemoveLdapGroupAuthRsp {
|
||||
int64 group_id = 1;
|
||||
}
|
||||
|
||||
message GroupAuth {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
string type = 3;
|
||||
}
|
||||
|
||||
message LdapGroup {
|
||||
int64 id = 1;
|
||||
string type = 2;
|
||||
string name = 3;
|
||||
string keyword = 4;
|
||||
string remark = 5;
|
||||
int64 status = 6;
|
||||
int64 sort = 7;
|
||||
|
||||
google.protobuf.Struct metadata = 101;
|
||||
string ctime = 102;
|
||||
string utime = 103;
|
||||
}
|
||||
|
||||
message LdapGroupFilter {
|
||||
optional int64 id = 1;
|
||||
optional string type = 2;
|
||||
optional string name = 3;
|
||||
optional string keyword = 4;
|
||||
optional string remark = 5;
|
||||
optional int64 status = 6;
|
||||
optional int64 sort = 7;
|
||||
|
||||
optional google.protobuf.Struct other_filter = 101; // 其他过滤条件
|
||||
optional LdapGroupIds ldap_grouop_ids = 102; // 资源ID列表
|
||||
optional string metadata = 103;
|
||||
}
|
||||
|
||||
message LdapGroupIds {
|
||||
repeated int64 ldap_grouop_ids = 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//获取ldap部门列表
|
||||
message GetLdapOrganizationsRsp{
|
||||
repeated LdapOrganization list = 1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user