This commit is contained in:
laodaming@fusen.cn 2024-01-15 15:53:42 +08:00
parent a8e75109b7
commit 041e95c50a

View File

@ -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;