123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: organization_service.proto
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb
- import (
- context "context"
- v1 "cp-organization-management-gateway/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{
- // 536 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x4d, 0x6f, 0xd3, 0x30,
- 0x18, 0x86, 0x0b, 0x20, 0x6b, 0x13, 0xe0, 0x7d, 0xb0, 0xb5, 0x74, 0x54, 0x43, 0xd5, 0x2e, 0x34,
- 0xd3, 0xe0, 0x80, 0xc4, 0x09, 0x46, 0x05, 0xaa, 0x34, 0x28, 0x2a, 0xaa, 0x84, 0x76, 0x60, 0x72,
- 0x9a, 0x97, 0x28, 0x52, 0x1b, 0x87, 0xc4, 0xed, 0x54, 0x8e, 0xfc, 0x59, 0xfe, 0x06, 0xf2, 0x67,
- 0xed, 0xc4, 0x6e, 0x77, 0xcc, 0xf3, 0x3c, 0xef, 0xf3, 0x7e, 0xd9, 0x0e, 0x6a, 0xd1, 0x32, 0x25,
- 0x79, 0xf6, 0x87, 0xb0, 0x8c, 0xe6, 0x37, 0x15, 0x94, 0xcb, 0x6c, 0x0a, 0x51, 0x51, 0x52, 0x46,
- 0x31, 0x2a, 0xe2, 0x48, 0x21, 0xad, 0x83, 0xe5, 0xc5, 0xb9, 0x2d, 0x95, 0x92, 0xd7, 0xff, 0x76,
- 0xd1, 0xce, 0xc8, 0x82, 0xf1, 0x0f, 0x84, 0x87, 0x79, 0xc6, 0x6c, 0x6c, 0x10, 0xe3, 0x6e, 0x54,
- 0xc4, 0x37, 0xcb, 0x8b, 0xa8, 0x49, 0x8d, 0xe1, 0xf7, 0x02, 0x2a, 0xd6, 0x3a, 0xd9, 0xa0, 0x28,
- 0x66, 0xab, 0xd3, 0x7b, 0xf8, 0x27, 0xda, 0xff, 0x58, 0x02, 0x61, 0xf0, 0x85, 0xe4, 0x24, 0x85,
- 0x39, 0xe4, 0x6c, 0x52, 0x41, 0x89, 0x4f, 0x55, 0xa4, 0x8f, 0xd4, 0xee, 0xdd, 0x8d, 0x1a, 0xe9,
- 0x9f, 0xa2, 0x67, 0x6b, 0xe2, 0xfb, 0xa2, 0x80, 0x92, 0xb3, 0x57, 0x59, 0xc5, 0x70, 0x4f, 0x85,
- 0x07, 0x78, 0x9d, 0xe5, 0xe5, 0x36, 0x99, 0x4c, 0x34, 0x47, 0xc7, 0x1e, 0xc5, 0xa4, 0x48, 0x08,
- 0x03, 0x7c, 0x16, 0xf6, 0x90, 0x0a, 0x9d, 0xac, 0xb7, 0x5d, 0x28, 0xd3, 0xfd, 0xbd, 0x8f, 0xba,
- 0x1e, 0xd1, 0x18, 0x2a, 0x60, 0xdf, 0x48, 0x55, 0xdd, 0xd2, 0x32, 0xc1, 0x51, 0xd8, 0xcd, 0x11,
- 0xea, 0xec, 0xaf, 0xee, 0xac, 0x97, 0x45, 0x8c, 0xd0, 0xe3, 0xb5, 0xf4, 0x8a, 0xa6, 0x59, 0x8e,
- 0x3b, 0x0d, 0x0b, 0x81, 0xeb, 0x0c, 0xed, 0x10, 0x2d, 0x0d, 0x3f, 0xa1, 0x9d, 0x71, 0x4c, 0xa6,
- 0x5f, 0x69, 0x02, 0x62, 0x45, 0x2d, 0x25, 0xb7, 0x41, 0x6d, 0x75, 0xe4, 0xe5, 0xa4, 0xcf, 0x10,
- 0xed, 0x72, 0xf8, 0x73, 0x49, 0x17, 0x85, 0x30, 0x6a, 0x5b, 0x62, 0x83, 0x6a, 0xa7, 0x63, 0x3f,
- 0x69, 0xf6, 0x6a, 0x67, 0xb8, 0x5c, 0x09, 0xc5, 0x48, 0x0c, 0xc5, 0xec, 0x35, 0xa8, 0xa8, 0xef,
- 0x75, 0x83, 0xd0, 0x99, 0x80, 0x60, 0x3e, 0x24, 0x89, 0x33, 0x01, 0x0d, 0xfa, 0x26, 0xb0, 0xe6,
- 0xcc, 0x6a, 0x0c, 0xac, 0x0e, 0x61, 0xa7, 0x2e, 0x77, 0x8f, 0x5e, 0x3b, 0x44, 0x37, 0x0b, 0x1b,
- 0xc0, 0xac, 0x59, 0xd8, 0x00, 0x66, 0xc1, 0xc2, 0x04, 0x27, 0x7d, 0xde, 0xa2, 0x87, 0xd7, 0x34,
- 0x07, 0xde, 0xdb, 0x81, 0x92, 0xa9, 0x6f, 0x1d, 0xbd, 0x57, 0x87, 0x9d, 0x40, 0x9e, 0xdb, 0x0e,
- 0xb4, 0xd2, 0xee, 0xd5, 0x61, 0x19, 0xf8, 0x1e, 0x21, 0x8e, 0xa8, 0x29, 0x1c, 0x59, 0x22, 0x77,
- 0x00, 0x87, 0x1e, 0x46, 0x3a, 0xbc, 0x43, 0x8f, 0x38, 0x28, 0x4e, 0x92, 0xad, 0xb2, 0x0f, 0xd1,
- 0x7e, 0x03, 0x37, 0xd9, 0xad, 0x87, 0x40, 0x67, 0x6f, 0xde, 0xfc, 0x43, 0x0f, 0x63, 0x1a, 0xe7,
- 0xa0, 0xdd, 0xb8, 0xfa, 0xae, 0x37, 0x6e, 0x60, 0x53, 0xb6, 0x79, 0xec, 0x6c, 0x7b, 0x5f, 0xd9,
- 0xf5, 0xe7, 0x4c, 0xc5, 0x0e, 0xf3, 0x5f, 0xd4, 0x89, 0xe5, 0x80, 0x2f, 0x56, 0xe2, 0x32, 0x76,
- 0x8c, 0x9e, 0x38, 0xf7, 0x9b, 0xef, 0xfa, 0xc4, 0x77, 0xf1, 0xad, 0xa5, 0x3f, 0x0f, 0xf2, 0xd2,
- 0x73, 0x82, 0x9e, 0x3a, 0x94, 0x68, 0xea, 0x85, 0x2f, 0xc8, 0xee, 0xae, 0x13, 0x16, 0x08, 0xdb,
- 0xcb, 0xb3, 0xeb, 0xde, 0xb4, 0xe8, 0xdb, 0xbf, 0xc0, 0xfe, 0xdc, 0x68, 0xfb, 0x29, 0x61, 0x70,
- 0x4b, 0x56, 0xe7, 0x45, 0x1c, 0x3f, 0x10, 0x7f, 0xc6, 0x37, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff,
- 0xe5, 0xfd, 0x62, 0x8e, 0x5a, 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",
- }
|