123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: organization_service.proto
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb
- import (
- context "context"
- v1 "cp-organization-management/pb/v1"
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- math "math"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
- func init() {
- proto.RegisterFile("organization_service.proto", fileDescriptor_e19a463063c4fee0)
- }
- var fileDescriptor_e19a463063c4fee0 = []byte{
- // 530 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x5d, 0x6b, 0x13, 0x41,
- 0x14, 0xd5, 0x17, 0x95, 0xa1, 0x45, 0x9d, 0x7e, 0xd8, 0xa6, 0xa6, 0x0d, 0x95, 0xe2, 0x8b, 0xdd,
- 0x52, 0x7d, 0x10, 0x7c, 0xd2, 0x1a, 0x94, 0x40, 0x35, 0x12, 0x09, 0x48, 0x1f, 0x2c, 0xbb, 0xd9,
- 0x6b, 0x58, 0x48, 0x76, 0xc6, 0xdd, 0x49, 0xa4, 0x3e, 0xfa, 0x67, 0xfd, 0x1b, 0x32, 0x9f, 0xb9,
- 0xb3, 0x3b, 0x93, 0xfa, 0xb8, 0xe7, 0x9c, 0x7b, 0xee, 0xd7, 0xcc, 0x2c, 0xe9, 0xb0, 0x6a, 0x9a,
- 0x96, 0xc5, 0xef, 0x54, 0x14, 0xac, 0xbc, 0xae, 0xa1, 0x5a, 0x16, 0x13, 0x48, 0x78, 0xc5, 0x04,
- 0xa3, 0x84, 0x67, 0x89, 0x41, 0x3a, 0x3b, 0xcb, 0xf3, 0x33, 0x2c, 0xd5, 0x92, 0x97, 0x7f, 0x37,
- 0xc9, 0xc6, 0x10, 0xc1, 0xf4, 0x1b, 0xa1, 0x83, 0xb2, 0x10, 0x18, 0xeb, 0x67, 0xb4, 0x97, 0xf0,
- 0xec, 0x7a, 0x79, 0x9e, 0xb4, 0xa9, 0x11, 0xfc, 0x5c, 0x40, 0x2d, 0x3a, 0x87, 0x6b, 0x14, 0x7c,
- 0x76, 0x73, 0x7c, 0x87, 0x7e, 0x27, 0xdb, 0xef, 0x2b, 0x48, 0x05, 0x7c, 0x4a, 0xcb, 0x74, 0x0a,
- 0x73, 0x28, 0xc5, 0xb8, 0x86, 0x8a, 0x1e, 0x9b, 0xc8, 0x10, 0x69, 0xdd, 0x7b, 0x6b, 0x35, 0xda,
- 0x7f, 0x4a, 0x9e, 0xac, 0x88, 0xaf, 0x0b, 0x0e, 0x95, 0x64, 0x2f, 0x8b, 0x5a, 0xd0, 0x13, 0x13,
- 0x1e, 0xe1, 0x6d, 0x96, 0x67, 0xb7, 0xc9, 0x74, 0xa2, 0x39, 0xd9, 0x0f, 0x28, 0xc6, 0x3c, 0x4f,
- 0x05, 0xd0, 0xe7, 0x71, 0x0f, 0xad, 0xb0, 0xc9, 0x4e, 0x6e, 0x17, 0xea, 0x74, 0x7f, 0xee, 0x92,
- 0x5e, 0x40, 0x34, 0x82, 0x1a, 0xc4, 0x97, 0xb4, 0xae, 0x7f, 0xb1, 0x2a, 0xa7, 0x49, 0xdc, 0xcd,
- 0x13, 0xda, 0xec, 0x2f, 0xfe, 0x5b, 0xaf, 0x8b, 0x18, 0x92, 0x87, 0x2b, 0xe9, 0x25, 0x9b, 0x16,
- 0x25, 0xed, 0xb6, 0x2c, 0x14, 0x6e, 0x33, 0x1c, 0xc4, 0x68, 0x6d, 0xf8, 0x81, 0x6c, 0x8c, 0xb2,
- 0x74, 0xf2, 0x99, 0xe5, 0xa0, 0x56, 0xd4, 0x31, 0x72, 0x0c, 0x5a, 0xab, 0xbd, 0x20, 0xa7, 0x7d,
- 0x06, 0x64, 0x53, 0xc2, 0x1f, 0x2b, 0xb6, 0xe0, 0xca, 0xe8, 0x00, 0x89, 0x1d, 0x6a, 0x9d, 0xf6,
- 0xc3, 0xa4, 0xdb, 0x2b, 0xce, 0x70, 0x71, 0xa3, 0x14, 0x43, 0x35, 0x14, 0xb7, 0xd7, 0xa8, 0xa2,
- 0xb9, 0xd7, 0x35, 0x42, 0x6f, 0x02, 0x8a, 0x79, 0x97, 0xe7, 0xde, 0x04, 0x2c, 0x18, 0x9a, 0xc0,
- 0x8a, 0x73, 0xab, 0x71, 0xb0, 0x39, 0x84, 0xdd, 0xa6, 0xdc, 0x3f, 0x7a, 0x07, 0x31, 0xba, 0x5d,
- 0x58, 0x1f, 0x66, 0xed, 0xc2, 0xfa, 0x30, 0x8b, 0x16, 0xa6, 0x38, 0xed, 0xf3, 0x9a, 0xdc, 0xbf,
- 0x62, 0x25, 0xc8, 0xde, 0x76, 0x8c, 0xcc, 0x7c, 0xdb, 0xe8, 0xad, 0x26, 0xec, 0x05, 0xca, 0xdc,
- 0x38, 0x10, 0xa5, 0xdd, 0x6a, 0xc2, 0x3a, 0xf0, 0x2d, 0x21, 0x12, 0x31, 0x53, 0xd8, 0x43, 0x22,
- 0x7f, 0x00, 0xbb, 0x01, 0x46, 0x3b, 0xbc, 0x21, 0x0f, 0x24, 0xa8, 0x4e, 0x12, 0x56, 0xe1, 0x43,
- 0xb4, 0xdd, 0xc2, 0x5d, 0x76, 0xf4, 0x10, 0xd8, 0xec, 0xed, 0x9b, 0xbf, 0x1b, 0x60, 0x5c, 0xe3,
- 0x12, 0xc4, 0x8d, 0x9b, 0xef, 0x66, 0xe3, 0x0e, 0x76, 0x65, 0xbb, 0xc7, 0x0e, 0xdb, 0x87, 0xca,
- 0x6e, 0x3e, 0x67, 0x26, 0x76, 0x50, 0xfe, 0x60, 0x5e, 0xac, 0x04, 0x42, 0xb1, 0x1a, 0xd7, 0xb1,
- 0x23, 0xf2, 0xc8, 0xbb, 0xdf, 0x72, 0xd7, 0x87, 0xa1, 0x8b, 0x8f, 0x96, 0xfe, 0x34, 0xca, 0x6b,
- 0xcf, 0x31, 0x79, 0xec, 0x51, 0xaa, 0xa9, 0xa3, 0x50, 0x10, 0xee, 0xae, 0x1b, 0x17, 0x28, 0xdb,
- 0x8b, 0xa3, 0xab, 0xee, 0x84, 0x9f, 0xe2, 0x5f, 0xe0, 0xe9, 0xdc, 0x69, 0xcf, 0x78, 0x96, 0xdd,
- 0x53, 0x7f, 0xc4, 0x57, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xda, 0x94, 0xa4, 0x50, 0x52, 0x07,
- 0x00, 0x00,
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // OrganizationClient is the client API for Organization service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type OrganizationClient interface {
- // 初始化数据库
- InitOrganizationDb(ctx context.Context, in *v1.InitOrganizationDbRequest, opts ...grpc.CallOption) (*v1.InitOrganizationDbReply, error)
- // 创建机构账号
- CreateManagementUser(ctx context.Context, in *v1.CreateManagementUserRequest, opts ...grpc.CallOption) (*v1.CreateManagementUserReply, error)
- // 系统端获取超级管理员账户列表
- ManagementSuperUserList(ctx context.Context, in *v1.ManagementSuperUserListRequest, opts ...grpc.CallOption) (*v1.ManagementSuperUserListReply, error)
- // 系统端更新超级管理员用户信息
- ManagementSuperUserUpdate(ctx context.Context, in *v1.ManagementSuperUserUpdateRequest, opts ...grpc.CallOption) (*v1.ManagementSuperUserUpdateReply, error)
- // 系统端重置超级管理员密码
- ManagementSuperUserResetPassword(ctx context.Context, in *v1.ManagementSuperUserResetPasswordRequest, opts ...grpc.CallOption) (*v1.ManagementSuperUserResetPasswordReply, error)
- ManagementLogin(ctx context.Context, in *v1.ManagementLoginRequest, opts ...grpc.CallOption) (*v1.ManagementLoginReply, error)
- // 权限节点列表
- RbacNodeList(ctx context.Context, in *v1.RbacNodeListRequest, opts ...grpc.CallOption) (*v1.RbacNodeListReply, error)
- // 角色列表
- RbacGroupList(ctx context.Context, in *v1.RbacGroupListRequest, opts ...grpc.CallOption) (*v1.RbacGroupListReply, error)
- // 角色或用户下的权限节点列表
- RbacNodeListByGroupOrUser(ctx context.Context, in *v1.RbacNodeListByGroupOrUserRequest, opts ...grpc.CallOption) (*v1.RbacNodeListByGroupOrUserReply, error)
- // 添加角色
- RbacGroupAdd(ctx context.Context, in *v1.RbacGroupAddRequest, opts ...grpc.CallOption) (*v1.RbacGroupAddReply, error)
- // 修改角色
- RbacGroupUpdate(ctx context.Context, in *v1.RbacGroupUpdateRequest, opts ...grpc.CallOption) (*v1.RbacGroupUpdateReply, error)
- // 删除角色
- RbacGroupDel(ctx context.Context, in *v1.RbacGroupDelRequest, opts ...grpc.CallOption) (*v1.RbacGroupDelReply, error)
- // 添加区域
- ZoneAdd(ctx context.Context, in *v1.ZoneAddRequest, opts ...grpc.CallOption) (*v1.ZoneAddReply, error)
- // 删除区域
- ZoneDel(ctx context.Context, in *v1.ZoneDelRequest, opts ...grpc.CallOption) (*v1.ZoneDelReply, error)
- // 更新区域
- ZoneUpdate(ctx context.Context, in *v1.ZoneUpdateRequest, opts ...grpc.CallOption) (*v1.ZoneUpdateReply, error)
- // 区域列表
- ZoneList(ctx context.Context, in *v1.ZoneListRequest, opts ...grpc.CallOption) (*v1.ZoneListReply, error)
- // 用户管理
- UserUpdate(ctx context.Context, in *v1.UserUpdateRequest, opts ...grpc.CallOption) (*v1.UserUpdateReply, error)
- UserDel(ctx context.Context, in *v1.UserDelRequest, opts ...grpc.CallOption) (*v1.UserDelReply, error)
- UserList(ctx context.Context, in *v1.UserListRequest, opts ...grpc.CallOption) (*v1.UserListReply, error)
- UserInfo(ctx context.Context, in *v1.UserInfoRequest, opts ...grpc.CallOption) (*v1.UserInfoReply, error)
- // 添加系统操作日志
- ManagementLogAdd(ctx context.Context, in *v1.ManagementLogAddRequest, opts ...grpc.CallOption) (*v1.ManagementLogAddReply, error)
- // 系统操作日志列表
- ManagementLogList(ctx context.Context, in *v1.ManagementLogListRequest, opts ...grpc.CallOption) (*v1.ManagementLogListReply, error)
- }
- type organizationClient struct {
- cc grpc.ClientConnInterface
- }
- func NewOrganizationClient(cc grpc.ClientConnInterface) OrganizationClient {
- return &organizationClient{cc}
- }
- func (c *organizationClient) InitOrganizationDb(ctx context.Context, in *v1.InitOrganizationDbRequest, opts ...grpc.CallOption) (*v1.InitOrganizationDbReply, error) {
- out := new(v1.InitOrganizationDbReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/InitOrganizationDb", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) CreateManagementUser(ctx context.Context, in *v1.CreateManagementUserRequest, opts ...grpc.CallOption) (*v1.CreateManagementUserReply, error) {
- out := new(v1.CreateManagementUserReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/CreateManagementUser", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ManagementSuperUserList(ctx context.Context, in *v1.ManagementSuperUserListRequest, opts ...grpc.CallOption) (*v1.ManagementSuperUserListReply, error) {
- out := new(v1.ManagementSuperUserListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/ManagementSuperUserList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ManagementSuperUserUpdate(ctx context.Context, in *v1.ManagementSuperUserUpdateRequest, opts ...grpc.CallOption) (*v1.ManagementSuperUserUpdateReply, error) {
- out := new(v1.ManagementSuperUserUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/ManagementSuperUserUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ManagementSuperUserResetPassword(ctx context.Context, in *v1.ManagementSuperUserResetPasswordRequest, opts ...grpc.CallOption) (*v1.ManagementSuperUserResetPasswordReply, error) {
- out := new(v1.ManagementSuperUserResetPasswordReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/ManagementSuperUserResetPassword", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ManagementLogin(ctx context.Context, in *v1.ManagementLoginRequest, opts ...grpc.CallOption) (*v1.ManagementLoginReply, error) {
- out := new(v1.ManagementLoginReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/ManagementLogin", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) RbacNodeList(ctx context.Context, in *v1.RbacNodeListRequest, opts ...grpc.CallOption) (*v1.RbacNodeListReply, error) {
- out := new(v1.RbacNodeListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/RbacNodeList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) RbacGroupList(ctx context.Context, in *v1.RbacGroupListRequest, opts ...grpc.CallOption) (*v1.RbacGroupListReply, error) {
- out := new(v1.RbacGroupListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/RbacGroupList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) RbacNodeListByGroupOrUser(ctx context.Context, in *v1.RbacNodeListByGroupOrUserRequest, opts ...grpc.CallOption) (*v1.RbacNodeListByGroupOrUserReply, error) {
- out := new(v1.RbacNodeListByGroupOrUserReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/RbacNodeListByGroupOrUser", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) RbacGroupAdd(ctx context.Context, in *v1.RbacGroupAddRequest, opts ...grpc.CallOption) (*v1.RbacGroupAddReply, error) {
- out := new(v1.RbacGroupAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/RbacGroupAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) RbacGroupUpdate(ctx context.Context, in *v1.RbacGroupUpdateRequest, opts ...grpc.CallOption) (*v1.RbacGroupUpdateReply, error) {
- out := new(v1.RbacGroupUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/RbacGroupUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) RbacGroupDel(ctx context.Context, in *v1.RbacGroupDelRequest, opts ...grpc.CallOption) (*v1.RbacGroupDelReply, error) {
- out := new(v1.RbacGroupDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/RbacGroupDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ZoneAdd(ctx context.Context, in *v1.ZoneAddRequest, opts ...grpc.CallOption) (*v1.ZoneAddReply, error) {
- out := new(v1.ZoneAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/ZoneAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ZoneDel(ctx context.Context, in *v1.ZoneDelRequest, opts ...grpc.CallOption) (*v1.ZoneDelReply, error) {
- out := new(v1.ZoneDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/ZoneDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ZoneUpdate(ctx context.Context, in *v1.ZoneUpdateRequest, opts ...grpc.CallOption) (*v1.ZoneUpdateReply, error) {
- out := new(v1.ZoneUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/ZoneUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ZoneList(ctx context.Context, in *v1.ZoneListRequest, opts ...grpc.CallOption) (*v1.ZoneListReply, error) {
- out := new(v1.ZoneListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/ZoneList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) UserUpdate(ctx context.Context, in *v1.UserUpdateRequest, opts ...grpc.CallOption) (*v1.UserUpdateReply, error) {
- out := new(v1.UserUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/UserUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) UserDel(ctx context.Context, in *v1.UserDelRequest, opts ...grpc.CallOption) (*v1.UserDelReply, error) {
- out := new(v1.UserDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/UserDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) UserList(ctx context.Context, in *v1.UserListRequest, opts ...grpc.CallOption) (*v1.UserListReply, error) {
- out := new(v1.UserListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/UserList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) UserInfo(ctx context.Context, in *v1.UserInfoRequest, opts ...grpc.CallOption) (*v1.UserInfoReply, error) {
- out := new(v1.UserInfoReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/UserInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ManagementLogAdd(ctx context.Context, in *v1.ManagementLogAddRequest, opts ...grpc.CallOption) (*v1.ManagementLogAddReply, error) {
- out := new(v1.ManagementLogAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/ManagementLogAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *organizationClient) ManagementLogList(ctx context.Context, in *v1.ManagementLogListRequest, opts ...grpc.CallOption) (*v1.ManagementLogListReply, error) {
- out := new(v1.ManagementLogListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Organization/ManagementLogList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // OrganizationServer is the server API for Organization service.
- type OrganizationServer interface {
- // 初始化数据库
- InitOrganizationDb(context.Context, *v1.InitOrganizationDbRequest) (*v1.InitOrganizationDbReply, error)
- // 创建机构账号
- CreateManagementUser(context.Context, *v1.CreateManagementUserRequest) (*v1.CreateManagementUserReply, error)
- // 系统端获取超级管理员账户列表
- ManagementSuperUserList(context.Context, *v1.ManagementSuperUserListRequest) (*v1.ManagementSuperUserListReply, error)
- // 系统端更新超级管理员用户信息
- ManagementSuperUserUpdate(context.Context, *v1.ManagementSuperUserUpdateRequest) (*v1.ManagementSuperUserUpdateReply, error)
- // 系统端重置超级管理员密码
- ManagementSuperUserResetPassword(context.Context, *v1.ManagementSuperUserResetPasswordRequest) (*v1.ManagementSuperUserResetPasswordReply, error)
- ManagementLogin(context.Context, *v1.ManagementLoginRequest) (*v1.ManagementLoginReply, error)
- // 权限节点列表
- RbacNodeList(context.Context, *v1.RbacNodeListRequest) (*v1.RbacNodeListReply, error)
- // 角色列表
- RbacGroupList(context.Context, *v1.RbacGroupListRequest) (*v1.RbacGroupListReply, error)
- // 角色或用户下的权限节点列表
- RbacNodeListByGroupOrUser(context.Context, *v1.RbacNodeListByGroupOrUserRequest) (*v1.RbacNodeListByGroupOrUserReply, error)
- // 添加角色
- RbacGroupAdd(context.Context, *v1.RbacGroupAddRequest) (*v1.RbacGroupAddReply, error)
- // 修改角色
- RbacGroupUpdate(context.Context, *v1.RbacGroupUpdateRequest) (*v1.RbacGroupUpdateReply, error)
- // 删除角色
- RbacGroupDel(context.Context, *v1.RbacGroupDelRequest) (*v1.RbacGroupDelReply, error)
- // 添加区域
- ZoneAdd(context.Context, *v1.ZoneAddRequest) (*v1.ZoneAddReply, error)
- // 删除区域
- ZoneDel(context.Context, *v1.ZoneDelRequest) (*v1.ZoneDelReply, error)
- // 更新区域
- ZoneUpdate(context.Context, *v1.ZoneUpdateRequest) (*v1.ZoneUpdateReply, error)
- // 区域列表
- ZoneList(context.Context, *v1.ZoneListRequest) (*v1.ZoneListReply, error)
- // 用户管理
- UserUpdate(context.Context, *v1.UserUpdateRequest) (*v1.UserUpdateReply, error)
- UserDel(context.Context, *v1.UserDelRequest) (*v1.UserDelReply, error)
- UserList(context.Context, *v1.UserListRequest) (*v1.UserListReply, error)
- UserInfo(context.Context, *v1.UserInfoRequest) (*v1.UserInfoReply, error)
- // 添加系统操作日志
- ManagementLogAdd(context.Context, *v1.ManagementLogAddRequest) (*v1.ManagementLogAddReply, error)
- // 系统操作日志列表
- ManagementLogList(context.Context, *v1.ManagementLogListRequest) (*v1.ManagementLogListReply, error)
- }
- // UnimplementedOrganizationServer can be embedded to have forward compatible implementations.
- type UnimplementedOrganizationServer struct {
- }
- func (*UnimplementedOrganizationServer) InitOrganizationDb(ctx context.Context, req *v1.InitOrganizationDbRequest) (*v1.InitOrganizationDbReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method InitOrganizationDb not implemented")
- }
- func (*UnimplementedOrganizationServer) CreateManagementUser(ctx context.Context, req *v1.CreateManagementUserRequest) (*v1.CreateManagementUserReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateManagementUser not implemented")
- }
- func (*UnimplementedOrganizationServer) ManagementSuperUserList(ctx context.Context, req *v1.ManagementSuperUserListRequest) (*v1.ManagementSuperUserListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagementSuperUserList not implemented")
- }
- func (*UnimplementedOrganizationServer) ManagementSuperUserUpdate(ctx context.Context, req *v1.ManagementSuperUserUpdateRequest) (*v1.ManagementSuperUserUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagementSuperUserUpdate not implemented")
- }
- func (*UnimplementedOrganizationServer) ManagementSuperUserResetPassword(ctx context.Context, req *v1.ManagementSuperUserResetPasswordRequest) (*v1.ManagementSuperUserResetPasswordReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagementSuperUserResetPassword not implemented")
- }
- func (*UnimplementedOrganizationServer) ManagementLogin(ctx context.Context, req *v1.ManagementLoginRequest) (*v1.ManagementLoginReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagementLogin not implemented")
- }
- func (*UnimplementedOrganizationServer) RbacNodeList(ctx context.Context, req *v1.RbacNodeListRequest) (*v1.RbacNodeListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RbacNodeList not implemented")
- }
- func (*UnimplementedOrganizationServer) RbacGroupList(ctx context.Context, req *v1.RbacGroupListRequest) (*v1.RbacGroupListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RbacGroupList not implemented")
- }
- func (*UnimplementedOrganizationServer) RbacNodeListByGroupOrUser(ctx context.Context, req *v1.RbacNodeListByGroupOrUserRequest) (*v1.RbacNodeListByGroupOrUserReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RbacNodeListByGroupOrUser not implemented")
- }
- func (*UnimplementedOrganizationServer) RbacGroupAdd(ctx context.Context, req *v1.RbacGroupAddRequest) (*v1.RbacGroupAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RbacGroupAdd not implemented")
- }
- func (*UnimplementedOrganizationServer) RbacGroupUpdate(ctx context.Context, req *v1.RbacGroupUpdateRequest) (*v1.RbacGroupUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RbacGroupUpdate not implemented")
- }
- func (*UnimplementedOrganizationServer) RbacGroupDel(ctx context.Context, req *v1.RbacGroupDelRequest) (*v1.RbacGroupDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RbacGroupDel not implemented")
- }
- func (*UnimplementedOrganizationServer) ZoneAdd(ctx context.Context, req *v1.ZoneAddRequest) (*v1.ZoneAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ZoneAdd not implemented")
- }
- func (*UnimplementedOrganizationServer) ZoneDel(ctx context.Context, req *v1.ZoneDelRequest) (*v1.ZoneDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ZoneDel not implemented")
- }
- func (*UnimplementedOrganizationServer) ZoneUpdate(ctx context.Context, req *v1.ZoneUpdateRequest) (*v1.ZoneUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ZoneUpdate not implemented")
- }
- func (*UnimplementedOrganizationServer) ZoneList(ctx context.Context, req *v1.ZoneListRequest) (*v1.ZoneListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ZoneList not implemented")
- }
- func (*UnimplementedOrganizationServer) UserUpdate(ctx context.Context, req *v1.UserUpdateRequest) (*v1.UserUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserUpdate not implemented")
- }
- func (*UnimplementedOrganizationServer) UserDel(ctx context.Context, req *v1.UserDelRequest) (*v1.UserDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserDel not implemented")
- }
- func (*UnimplementedOrganizationServer) UserList(ctx context.Context, req *v1.UserListRequest) (*v1.UserListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserList not implemented")
- }
- func (*UnimplementedOrganizationServer) UserInfo(ctx context.Context, req *v1.UserInfoRequest) (*v1.UserInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserInfo not implemented")
- }
- func (*UnimplementedOrganizationServer) ManagementLogAdd(ctx context.Context, req *v1.ManagementLogAddRequest) (*v1.ManagementLogAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagementLogAdd not implemented")
- }
- func (*UnimplementedOrganizationServer) ManagementLogList(ctx context.Context, req *v1.ManagementLogListRequest) (*v1.ManagementLogListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ManagementLogList not implemented")
- }
- func RegisterOrganizationServer(s *grpc.Server, srv OrganizationServer) {
- s.RegisterService(&_Organization_serviceDesc, srv)
- }
- func _Organization_InitOrganizationDb_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.InitOrganizationDbRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).InitOrganizationDb(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/InitOrganizationDb",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).InitOrganizationDb(ctx, req.(*v1.InitOrganizationDbRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_CreateManagementUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CreateManagementUserRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).CreateManagementUser(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/CreateManagementUser",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).CreateManagementUser(ctx, req.(*v1.CreateManagementUserRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ManagementSuperUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ManagementSuperUserListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ManagementSuperUserList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/ManagementSuperUserList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ManagementSuperUserList(ctx, req.(*v1.ManagementSuperUserListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ManagementSuperUserUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ManagementSuperUserUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ManagementSuperUserUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/ManagementSuperUserUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ManagementSuperUserUpdate(ctx, req.(*v1.ManagementSuperUserUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ManagementSuperUserResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ManagementSuperUserResetPasswordRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ManagementSuperUserResetPassword(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/ManagementSuperUserResetPassword",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ManagementSuperUserResetPassword(ctx, req.(*v1.ManagementSuperUserResetPasswordRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ManagementLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ManagementLoginRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ManagementLogin(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/ManagementLogin",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ManagementLogin(ctx, req.(*v1.ManagementLoginRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_RbacNodeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.RbacNodeListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).RbacNodeList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/RbacNodeList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).RbacNodeList(ctx, req.(*v1.RbacNodeListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_RbacGroupList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.RbacGroupListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).RbacGroupList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/RbacGroupList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).RbacGroupList(ctx, req.(*v1.RbacGroupListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_RbacNodeListByGroupOrUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.RbacNodeListByGroupOrUserRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).RbacNodeListByGroupOrUser(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/RbacNodeListByGroupOrUser",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).RbacNodeListByGroupOrUser(ctx, req.(*v1.RbacNodeListByGroupOrUserRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_RbacGroupAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.RbacGroupAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).RbacGroupAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/RbacGroupAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).RbacGroupAdd(ctx, req.(*v1.RbacGroupAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_RbacGroupUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.RbacGroupUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).RbacGroupUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/RbacGroupUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).RbacGroupUpdate(ctx, req.(*v1.RbacGroupUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_RbacGroupDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.RbacGroupDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).RbacGroupDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/RbacGroupDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).RbacGroupDel(ctx, req.(*v1.RbacGroupDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ZoneAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ZoneAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ZoneAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/ZoneAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ZoneAdd(ctx, req.(*v1.ZoneAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ZoneDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ZoneDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ZoneDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/ZoneDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ZoneDel(ctx, req.(*v1.ZoneDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ZoneUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ZoneUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ZoneUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/ZoneUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ZoneUpdate(ctx, req.(*v1.ZoneUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ZoneList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ZoneListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ZoneList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/ZoneList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ZoneList(ctx, req.(*v1.ZoneListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_UserUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UserUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).UserUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/UserUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).UserUpdate(ctx, req.(*v1.UserUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_UserDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UserDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).UserDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/UserDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).UserDel(ctx, req.(*v1.UserDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UserListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).UserList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/UserList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).UserList(ctx, req.(*v1.UserListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_UserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UserInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).UserInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/UserInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).UserInfo(ctx, req.(*v1.UserInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ManagementLogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ManagementLogAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ManagementLogAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/ManagementLogAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ManagementLogAdd(ctx, req.(*v1.ManagementLogAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Organization_ManagementLogList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ManagementLogListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(OrganizationServer).ManagementLogList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Organization/ManagementLogList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(OrganizationServer).ManagementLogList(ctx, req.(*v1.ManagementLogListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Organization_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.service.Organization",
- HandlerType: (*OrganizationServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "InitOrganizationDb",
- Handler: _Organization_InitOrganizationDb_Handler,
- },
- {
- MethodName: "CreateManagementUser",
- Handler: _Organization_CreateManagementUser_Handler,
- },
- {
- MethodName: "ManagementSuperUserList",
- Handler: _Organization_ManagementSuperUserList_Handler,
- },
- {
- MethodName: "ManagementSuperUserUpdate",
- Handler: _Organization_ManagementSuperUserUpdate_Handler,
- },
- {
- MethodName: "ManagementSuperUserResetPassword",
- Handler: _Organization_ManagementSuperUserResetPassword_Handler,
- },
- {
- MethodName: "ManagementLogin",
- Handler: _Organization_ManagementLogin_Handler,
- },
- {
- MethodName: "RbacNodeList",
- Handler: _Organization_RbacNodeList_Handler,
- },
- {
- MethodName: "RbacGroupList",
- Handler: _Organization_RbacGroupList_Handler,
- },
- {
- MethodName: "RbacNodeListByGroupOrUser",
- Handler: _Organization_RbacNodeListByGroupOrUser_Handler,
- },
- {
- MethodName: "RbacGroupAdd",
- Handler: _Organization_RbacGroupAdd_Handler,
- },
- {
- MethodName: "RbacGroupUpdate",
- Handler: _Organization_RbacGroupUpdate_Handler,
- },
- {
- MethodName: "RbacGroupDel",
- Handler: _Organization_RbacGroupDel_Handler,
- },
- {
- MethodName: "ZoneAdd",
- Handler: _Organization_ZoneAdd_Handler,
- },
- {
- MethodName: "ZoneDel",
- Handler: _Organization_ZoneDel_Handler,
- },
- {
- MethodName: "ZoneUpdate",
- Handler: _Organization_ZoneUpdate_Handler,
- },
- {
- MethodName: "ZoneList",
- Handler: _Organization_ZoneList_Handler,
- },
- {
- MethodName: "UserUpdate",
- Handler: _Organization_UserUpdate_Handler,
- },
- {
- MethodName: "UserDel",
- Handler: _Organization_UserDel_Handler,
- },
- {
- MethodName: "UserList",
- Handler: _Organization_UserList_Handler,
- },
- {
- MethodName: "UserInfo",
- Handler: _Organization_UserInfo_Handler,
- },
- {
- MethodName: "ManagementLogAdd",
- Handler: _Organization_ManagementLogAdd_Handler,
- },
- {
- MethodName: "ManagementLogList",
- Handler: _Organization_ManagementLogList_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "organization_service.proto",
- }
|