tenant

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TenantRpcService_TenantLogin_FullMethodName  = "/tenant.TenantRpcService/TenantLogin"
	TenantRpcService_TenantList_FullMethodName   = "/tenant.TenantRpcService/TenantList"
	TenantRpcService_TenantInfo_FullMethodName   = "/tenant.TenantRpcService/TenantInfo"
	TenantRpcService_AddTenant_FullMethodName    = "/tenant.TenantRpcService/AddTenant"
	TenantRpcService_PwdTenant_FullMethodName    = "/tenant.TenantRpcService/PwdTenant"
	TenantRpcService_EditTenant_FullMethodName   = "/tenant.TenantRpcService/EditTenant"
	TenantRpcService_DeleteTenant_FullMethodName = "/tenant.TenantRpcService/DeleteTenant"
)

Variables

View Source
var File_tenant_proto protoreflect.FileDescriptor
View Source
var TenantRpcService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tenant.TenantRpcService",
	HandlerType: (*TenantRpcServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "TenantLogin",
			Handler:    _TenantRpcService_TenantLogin_Handler,
		},
		{
			MethodName: "TenantList",
			Handler:    _TenantRpcService_TenantList_Handler,
		},
		{
			MethodName: "TenantInfo",
			Handler:    _TenantRpcService_TenantInfo_Handler,
		},
		{
			MethodName: "AddTenant",
			Handler:    _TenantRpcService_AddTenant_Handler,
		},
		{
			MethodName: "PwdTenant",
			Handler:    _TenantRpcService_PwdTenant_Handler,
		},
		{
			MethodName: "EditTenant",
			Handler:    _TenantRpcService_EditTenant_Handler,
		},
		{
			MethodName: "DeleteTenant",
			Handler:    _TenantRpcService_DeleteTenant_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "tenant.proto",
}

TenantRpcService_ServiceDesc is the grpc.ServiceDesc for TenantRpcService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTenantRpcServiceServer

func RegisterTenantRpcServiceServer(s grpc.ServiceRegistrar, srv TenantRpcServiceServer)

Types

type AddTenantData

type AddTenantData struct {
	Data *Tenant `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AddTenantData) Descriptor deprecated

func (*AddTenantData) Descriptor() ([]byte, []int)

Deprecated: Use AddTenantData.ProtoReflect.Descriptor instead.

func (*AddTenantData) GetData

func (x *AddTenantData) GetData() *Tenant

func (*AddTenantData) ProtoMessage

func (*AddTenantData) ProtoMessage()

func (*AddTenantData) ProtoReflect

func (x *AddTenantData) ProtoReflect() protoreflect.Message

func (*AddTenantData) Reset

func (x *AddTenantData) Reset()

func (*AddTenantData) String

func (x *AddTenantData) String() string

type AddTenantResp

type AddTenantResp struct {
	Code      int32          `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg       string         `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	RequestID string         `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"`
	Path      string         `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	Data      *AddTenantData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AddTenantResp) Descriptor deprecated

func (*AddTenantResp) Descriptor() ([]byte, []int)

Deprecated: Use AddTenantResp.ProtoReflect.Descriptor instead.

func (*AddTenantResp) GetCode

func (x *AddTenantResp) GetCode() int32

func (*AddTenantResp) GetData

func (x *AddTenantResp) GetData() *AddTenantData

func (*AddTenantResp) GetMsg

func (x *AddTenantResp) GetMsg() string

func (*AddTenantResp) GetPath

func (x *AddTenantResp) GetPath() string

func (*AddTenantResp) GetRequestID

func (x *AddTenantResp) GetRequestID() string

func (*AddTenantResp) ProtoMessage

func (*AddTenantResp) ProtoMessage()

func (*AddTenantResp) ProtoReflect

func (x *AddTenantResp) ProtoReflect() protoreflect.Message

func (*AddTenantResp) Reset

func (x *AddTenantResp) Reset()

func (*AddTenantResp) String

func (x *AddTenantResp) String() string

type DeleteTenantParams

type DeleteTenantParams struct {
	ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` //删除记录id
	// contains filtered or unexported fields
}

func (*DeleteTenantParams) Descriptor deprecated

func (*DeleteTenantParams) Descriptor() ([]byte, []int)

Deprecated: Use DeleteTenantParams.ProtoReflect.Descriptor instead.

func (*DeleteTenantParams) GetID

func (x *DeleteTenantParams) GetID() int64

func (*DeleteTenantParams) ProtoMessage

func (*DeleteTenantParams) ProtoMessage()

func (*DeleteTenantParams) ProtoReflect

func (x *DeleteTenantParams) ProtoReflect() protoreflect.Message

func (*DeleteTenantParams) Reset

func (x *DeleteTenantParams) Reset()

func (*DeleteTenantParams) String

func (x *DeleteTenantParams) String() string

type EditTenantParams

type EditTenantParams struct {
	ID          int64  `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`                    //编辑id
	Account     string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`           //账号
	Password    string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`         //密码
	Phone       string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`               //手机号
	Email       string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`               //邮箱
	Company     int64  `protobuf:"varint,6,opt,name=company,proto3" json:"company,omitempty"`          //公司id,不填则为个人
	Name        string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`                 //名称
	Avatar      string `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"`             //头像
	ParentId    int64  `protobuf:"varint,9,opt,name=parentId,proto3" json:"parentId,omitempty"`        //父账号id
	AccountType int64  `protobuf:"varint,10,opt,name=accountType,proto3" json:"accountType,omitempty"` //身份0游客1个人用户2子账号
	// contains filtered or unexported fields
}

func (*EditTenantParams) Descriptor deprecated

func (*EditTenantParams) Descriptor() ([]byte, []int)

Deprecated: Use EditTenantParams.ProtoReflect.Descriptor instead.

func (*EditTenantParams) GetAccount

func (x *EditTenantParams) GetAccount() string

func (*EditTenantParams) GetAccountType

func (x *EditTenantParams) GetAccountType() int64

func (*EditTenantParams) GetAvatar

func (x *EditTenantParams) GetAvatar() string

func (*EditTenantParams) GetCompany

func (x *EditTenantParams) GetCompany() int64

func (*EditTenantParams) GetEmail

func (x *EditTenantParams) GetEmail() string

func (*EditTenantParams) GetID

func (x *EditTenantParams) GetID() int64

func (*EditTenantParams) GetName

func (x *EditTenantParams) GetName() string

func (*EditTenantParams) GetParentId

func (x *EditTenantParams) GetParentId() int64

func (*EditTenantParams) GetPassword

func (x *EditTenantParams) GetPassword() string

func (*EditTenantParams) GetPhone

func (x *EditTenantParams) GetPhone() string

func (*EditTenantParams) ProtoMessage

func (*EditTenantParams) ProtoMessage()

func (*EditTenantParams) ProtoReflect

func (x *EditTenantParams) ProtoReflect() protoreflect.Message

func (*EditTenantParams) Reset

func (x *EditTenantParams) Reset()

func (*EditTenantParams) String

func (x *EditTenantParams) String() string

type Tenant

type Tenant struct {
	ID       uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Account  string `protobuf:"bytes,2,opt,name=Account,proto3" json:"Account,omitempty"`
	Mobile   string `protobuf:"bytes,3,opt,name=Mobile,proto3" json:"Mobile,omitempty"`
	Email    string `protobuf:"bytes,4,opt,name=Email,proto3" json:"Email,omitempty"`
	Password string `protobuf:"bytes,5,opt,name=Password,proto3" json:"Password,omitempty"`
	Name     string `protobuf:"bytes,6,opt,name=Name,proto3" json:"Name,omitempty"`
	Avatar   string `protobuf:"bytes,7,opt,name=Avatar,proto3" json:"Avatar,omitempty"`
	Identity int32  `protobuf:"varint,8,opt,name=Identity,proto3" json:"Identity,omitempty"`
	Status   int32  `protobuf:"varint,9,opt,name=Status,proto3" json:"Status,omitempty"`
	ParentID uint32 `protobuf:"varint,10,opt,name=ParentID,proto3" json:"ParentID,omitempty"`
	// contains filtered or unexported fields
}

func (*Tenant) Descriptor deprecated

func (*Tenant) Descriptor() ([]byte, []int)

Deprecated: Use Tenant.ProtoReflect.Descriptor instead.

func (*Tenant) GetAccount

func (x *Tenant) GetAccount() string

func (*Tenant) GetAvatar

func (x *Tenant) GetAvatar() string

func (*Tenant) GetEmail

func (x *Tenant) GetEmail() string

func (*Tenant) GetID

func (x *Tenant) GetID() uint32

func (*Tenant) GetIdentity

func (x *Tenant) GetIdentity() int32

func (*Tenant) GetMobile

func (x *Tenant) GetMobile() string

func (*Tenant) GetName

func (x *Tenant) GetName() string

func (*Tenant) GetParentID

func (x *Tenant) GetParentID() uint32

func (*Tenant) GetPassword

func (x *Tenant) GetPassword() string

func (*Tenant) GetStatus

func (x *Tenant) GetStatus() int32

func (*Tenant) ProtoMessage

func (*Tenant) ProtoMessage()

func (*Tenant) ProtoReflect

func (x *Tenant) ProtoReflect() protoreflect.Message

func (*Tenant) Reset

func (x *Tenant) Reset()

func (*Tenant) String

func (x *Tenant) String() string

type TenantInfoParams

type TenantInfoParams struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantInfoParams) Descriptor deprecated

func (*TenantInfoParams) Descriptor() ([]byte, []int)

Deprecated: Use TenantInfoParams.ProtoReflect.Descriptor instead.

func (*TenantInfoParams) GetId

func (x *TenantInfoParams) GetId() int64

func (*TenantInfoParams) ProtoMessage

func (*TenantInfoParams) ProtoMessage()

func (*TenantInfoParams) ProtoReflect

func (x *TenantInfoParams) ProtoReflect() protoreflect.Message

func (*TenantInfoParams) Reset

func (x *TenantInfoParams) Reset()

func (*TenantInfoParams) String

func (x *TenantInfoParams) String() string

type TenantInfoResp

type TenantInfoResp struct {
	Code      int32               `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg       string              `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	RequestID string              `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"`
	Path      string              `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	Data      *TenantInfoRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantInfoResp) Descriptor deprecated

func (*TenantInfoResp) Descriptor() ([]byte, []int)

Deprecated: Use TenantInfoResp.ProtoReflect.Descriptor instead.

func (*TenantInfoResp) GetCode

func (x *TenantInfoResp) GetCode() int32

func (*TenantInfoResp) GetData

func (x *TenantInfoResp) GetData() *TenantInfoRespData

func (*TenantInfoResp) GetMsg

func (x *TenantInfoResp) GetMsg() string

func (*TenantInfoResp) GetPath

func (x *TenantInfoResp) GetPath() string

func (*TenantInfoResp) GetRequestID

func (x *TenantInfoResp) GetRequestID() string

func (*TenantInfoResp) ProtoMessage

func (*TenantInfoResp) ProtoMessage()

func (*TenantInfoResp) ProtoReflect

func (x *TenantInfoResp) ProtoReflect() protoreflect.Message

func (*TenantInfoResp) Reset

func (x *TenantInfoResp) Reset()

func (*TenantInfoResp) String

func (x *TenantInfoResp) String() string

type TenantInfoRespData

type TenantInfoRespData struct {
	ID          int64  `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`                   // id
	Account     string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`          //账号
	Phone       string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`              //手机号
	Email       string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`              //邮箱
	Company     int64  `protobuf:"varint,5,opt,name=company,proto3" json:"company,omitempty"`         //公司id,不填则为个人
	Name        string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`                //名称
	Avatar      string `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar,omitempty"`            //头像
	ParentId    int64  `protobuf:"varint,8,opt,name=parentId,proto3" json:"parentId,omitempty"`       //父账号id
	AccountType int64  `protobuf:"varint,9,opt,name=accountType,proto3" json:"accountType,omitempty"` //身份0游客1个人用户2子账号
	// contains filtered or unexported fields
}

func (*TenantInfoRespData) Descriptor deprecated

func (*TenantInfoRespData) Descriptor() ([]byte, []int)

Deprecated: Use TenantInfoRespData.ProtoReflect.Descriptor instead.

func (*TenantInfoRespData) GetAccount

func (x *TenantInfoRespData) GetAccount() string

func (*TenantInfoRespData) GetAccountType

func (x *TenantInfoRespData) GetAccountType() int64

func (*TenantInfoRespData) GetAvatar

func (x *TenantInfoRespData) GetAvatar() string

func (*TenantInfoRespData) GetCompany

func (x *TenantInfoRespData) GetCompany() int64

func (*TenantInfoRespData) GetEmail

func (x *TenantInfoRespData) GetEmail() string

func (*TenantInfoRespData) GetID

func (x *TenantInfoRespData) GetID() int64

func (*TenantInfoRespData) GetName

func (x *TenantInfoRespData) GetName() string

func (*TenantInfoRespData) GetParentId

func (x *TenantInfoRespData) GetParentId() int64

func (*TenantInfoRespData) GetPhone

func (x *TenantInfoRespData) GetPhone() string

func (*TenantInfoRespData) ProtoMessage

func (*TenantInfoRespData) ProtoMessage()

func (*TenantInfoRespData) ProtoReflect

func (x *TenantInfoRespData) ProtoReflect() protoreflect.Message

func (*TenantInfoRespData) Reset

func (x *TenantInfoRespData) Reset()

func (*TenantInfoRespData) String

func (x *TenantInfoRespData) String() string

type TenantListData

type TenantListData struct {
	Data  []*Tenant `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	Total int64     `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantListData) Descriptor deprecated

func (*TenantListData) Descriptor() ([]byte, []int)

Deprecated: Use TenantListData.ProtoReflect.Descriptor instead.

func (*TenantListData) GetData

func (x *TenantListData) GetData() []*Tenant

func (*TenantListData) GetTotal

func (x *TenantListData) GetTotal() int64

func (*TenantListData) ProtoMessage

func (*TenantListData) ProtoMessage()

func (*TenantListData) ProtoReflect

func (x *TenantListData) ProtoReflect() protoreflect.Message

func (*TenantListData) Reset

func (x *TenantListData) Reset()

func (*TenantListData) String

func (x *TenantListData) String() string

type TenantListParams

type TenantListParams struct {
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`  //查询条件账号
	Phone   string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`      //查询条件手机号
	Email   string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`      //查询条件邮箱
	Company int64  `protobuf:"varint,4,opt,name=company,proto3" json:"company,omitempty"` //查询条件公司id
	Name    string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`        //查询条件名称
	Status  int64  `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`   //查询条件状态
	Limit   int64  `protobuf:"varint,7,opt,name=limit,proto3" json:"limit,omitempty"`     //记录数
	Offset  int64  `protobuf:"varint,8,opt,name=offset,proto3" json:"offset,omitempty"`   //偏移量
	// contains filtered or unexported fields
}

func (*TenantListParams) Descriptor deprecated

func (*TenantListParams) Descriptor() ([]byte, []int)

Deprecated: Use TenantListParams.ProtoReflect.Descriptor instead.

func (*TenantListParams) GetAccount

func (x *TenantListParams) GetAccount() string

func (*TenantListParams) GetCompany

func (x *TenantListParams) GetCompany() int64

func (*TenantListParams) GetEmail

func (x *TenantListParams) GetEmail() string

func (*TenantListParams) GetLimit

func (x *TenantListParams) GetLimit() int64

func (*TenantListParams) GetName

func (x *TenantListParams) GetName() string

func (*TenantListParams) GetOffset

func (x *TenantListParams) GetOffset() int64

func (*TenantListParams) GetPhone

func (x *TenantListParams) GetPhone() string

func (*TenantListParams) GetStatus

func (x *TenantListParams) GetStatus() int64

func (*TenantListParams) ProtoMessage

func (*TenantListParams) ProtoMessage()

func (*TenantListParams) ProtoReflect

func (x *TenantListParams) ProtoReflect() protoreflect.Message

func (*TenantListParams) Reset

func (x *TenantListParams) Reset()

func (*TenantListParams) String

func (x *TenantListParams) String() string

type TenantListResp

type TenantListResp struct {
	Code      int32           `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg       string          `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	RequestID string          `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"`
	Path      string          `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	Data      *TenantListData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantListResp) Descriptor deprecated

func (*TenantListResp) Descriptor() ([]byte, []int)

Deprecated: Use TenantListResp.ProtoReflect.Descriptor instead.

func (*TenantListResp) GetCode

func (x *TenantListResp) GetCode() int32

func (*TenantListResp) GetData

func (x *TenantListResp) GetData() *TenantListData

func (*TenantListResp) GetMsg

func (x *TenantListResp) GetMsg() string

func (*TenantListResp) GetPath

func (x *TenantListResp) GetPath() string

func (*TenantListResp) GetRequestID

func (x *TenantListResp) GetRequestID() string

func (*TenantListResp) ProtoMessage

func (*TenantListResp) ProtoMessage()

func (*TenantListResp) ProtoReflect

func (x *TenantListResp) ProtoReflect() protoreflect.Message

func (*TenantListResp) Reset

func (x *TenantListResp) Reset()

func (*TenantListResp) String

func (x *TenantListResp) String() string

type TenantLoginParams

type TenantLoginParams struct {
	Account  string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`   //登录账号
	Phone    string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`       //登录手机号
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` //密码
	Code     string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantLoginParams) Descriptor deprecated

func (*TenantLoginParams) Descriptor() ([]byte, []int)

Deprecated: Use TenantLoginParams.ProtoReflect.Descriptor instead.

func (*TenantLoginParams) GetAccount

func (x *TenantLoginParams) GetAccount() string

func (*TenantLoginParams) GetCode

func (x *TenantLoginParams) GetCode() string

func (*TenantLoginParams) GetPassword

func (x *TenantLoginParams) GetPassword() string

func (*TenantLoginParams) GetPhone

func (x *TenantLoginParams) GetPhone() string

func (*TenantLoginParams) ProtoMessage

func (*TenantLoginParams) ProtoMessage()

func (*TenantLoginParams) ProtoReflect

func (x *TenantLoginParams) ProtoReflect() protoreflect.Message

func (*TenantLoginParams) Reset

func (x *TenantLoginParams) Reset()

func (*TenantLoginParams) String

func (x *TenantLoginParams) String() string

type TenantResp

type TenantResp struct {
	Code      int32           `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg       string          `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	RequestID string          `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"`
	Path      string          `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	Data      *TenantRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantResp) Descriptor deprecated

func (*TenantResp) Descriptor() ([]byte, []int)

Deprecated: Use TenantResp.ProtoReflect.Descriptor instead.

func (*TenantResp) GetCode

func (x *TenantResp) GetCode() int32

func (*TenantResp) GetData

func (x *TenantResp) GetData() *TenantRespData

func (*TenantResp) GetMsg

func (x *TenantResp) GetMsg() string

func (*TenantResp) GetPath

func (x *TenantResp) GetPath() string

func (*TenantResp) GetRequestID

func (x *TenantResp) GetRequestID() string

func (*TenantResp) ProtoMessage

func (*TenantResp) ProtoMessage()

func (*TenantResp) ProtoReflect

func (x *TenantResp) ProtoReflect() protoreflect.Message

func (*TenantResp) Reset

func (x *TenantResp) Reset()

func (*TenantResp) String

func (x *TenantResp) String() string

type TenantRespData

type TenantRespData struct {
	Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantRespData) Descriptor deprecated

func (*TenantRespData) Descriptor() ([]byte, []int)

Deprecated: Use TenantRespData.ProtoReflect.Descriptor instead.

func (*TenantRespData) GetData

func (x *TenantRespData) GetData() string

func (*TenantRespData) ProtoMessage

func (*TenantRespData) ProtoMessage()

func (*TenantRespData) ProtoReflect

func (x *TenantRespData) ProtoReflect() protoreflect.Message

func (*TenantRespData) Reset

func (x *TenantRespData) Reset()

func (*TenantRespData) String

func (x *TenantRespData) String() string

type TenantRpcServiceClient

type TenantRpcServiceClient interface {
	// 租户登录
	TenantLogin(ctx context.Context, in *TenantLoginParams, opts ...grpc.CallOption) (*TenantResp, error)
	// 租户列表
	TenantList(ctx context.Context, in *TenantListParams, opts ...grpc.CallOption) (*TenantListResp, error)
	// 租户详情
	TenantInfo(ctx context.Context, in *TenantInfoParams, opts ...grpc.CallOption) (*TenantInfoResp, error)
	// 添加租户
	AddTenant(ctx context.Context, in *EditTenantParams, opts ...grpc.CallOption) (*AddTenantResp, error)
	// 修改密码
	PwdTenant(ctx context.Context, in *EditTenantParams, opts ...grpc.CallOption) (*TenantResp, error)
	// 修改租户
	EditTenant(ctx context.Context, in *EditTenantParams, opts ...grpc.CallOption) (*TenantResp, error)
	// 删除租户
	DeleteTenant(ctx context.Context, in *DeleteTenantParams, opts ...grpc.CallOption) (*TenantResp, error)
}

TenantRpcServiceClient is the client API for TenantRpcService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type TenantRpcServiceServer

type TenantRpcServiceServer interface {
	// 租户登录
	TenantLogin(context.Context, *TenantLoginParams) (*TenantResp, error)
	// 租户列表
	TenantList(context.Context, *TenantListParams) (*TenantListResp, error)
	// 租户详情
	TenantInfo(context.Context, *TenantInfoParams) (*TenantInfoResp, error)
	// 添加租户
	AddTenant(context.Context, *EditTenantParams) (*AddTenantResp, error)
	// 修改密码
	PwdTenant(context.Context, *EditTenantParams) (*TenantResp, error)
	// 修改租户
	EditTenant(context.Context, *EditTenantParams) (*TenantResp, error)
	// 删除租户
	DeleteTenant(context.Context, *DeleteTenantParams) (*TenantResp, error)
	// contains filtered or unexported methods
}

TenantRpcServiceServer is the server API for TenantRpcService service. All implementations must embed UnimplementedTenantRpcServiceServer for forward compatibility

type UnimplementedTenantRpcServiceServer

type UnimplementedTenantRpcServiceServer struct {
}

UnimplementedTenantRpcServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTenantRpcServiceServer) AddTenant

func (UnimplementedTenantRpcServiceServer) DeleteTenant

func (UnimplementedTenantRpcServiceServer) EditTenant

func (UnimplementedTenantRpcServiceServer) PwdTenant

func (UnimplementedTenantRpcServiceServer) TenantInfo

func (UnimplementedTenantRpcServiceServer) TenantList

func (UnimplementedTenantRpcServiceServer) TenantLogin

type UnsafeTenantRpcServiceServer

type UnsafeTenantRpcServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTenantRpcServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TenantRpcServiceServer will types in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL