v2

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Tenant_Application_FullMethodName             = "/api.platform.tenant.v2.tenant/Application"
	Tenant_Create_FullMethodName                  = "/api.platform.tenant.v2.tenant/Create"
	Tenant_Update_FullMethodName                  = "/api.platform.tenant.v2.tenant/Update"
	Tenant_BindingPhone_FullMethodName            = "/api.platform.tenant.v2.tenant/BindingPhone"
	Tenant_Delete_FullMethodName                  = "/api.platform.tenant.v2.tenant/Delete"
	Tenant_FindByID_FullMethodName                = "/api.platform.tenant.v2.tenant/FindByID"
	Tenant_WebsitePath_FullMethodName             = "/api.platform.tenant.v2.tenant/WebsitePath"
	Tenant_GetList_FullMethodName                 = "/api.platform.tenant.v2.tenant/GetList"
	Tenant_FindByAssociatedUsersID_FullMethodName = "/api.platform.tenant.v2.tenant/FindByAssociatedUsersID"
	Tenant_WebsiteApplication_FullMethodName      = "/api.platform.tenant.v2.tenant/WebsiteApplication"
)

Variables

View Source
var (
	TenantErrorReason_name = map[int32]string{
		0:  "CREATE_TENANT_ERROR",
		1:  "UPDATE_TENANT_ERROR",
		2:  "BINDING_PHONE_ERROR",
		3:  "DELETE_TENANT_ERROR",
		4:  "FIND_TENANT_BY_ID_ERROR",
		5:  "GET_TENANT_LIST_ERROR",
		6:  "FIND_TENANT_BY_ASSOCIATED_USERS_ID_ERROR",
		7:  "TENANT_ALREADY_EXISTS",
		8:  "TENANT_NOT_FOUND",
		9:  "VERIFICATION_CODE_VERIFICATION_FAILED",
		10: "MARSHAL_TENANT_DATA_ENCODING_FAIL",
		11: "ENCRYPTION_REQUEST_OPTION_FAIL",
		12: "MOBILE_VERIFICATION_CODE_ERROR",
		13: "APPLICATION_PARAMETER_ERROR",
		14: "APPLICATION_ERROR",
		15: "TENANT_NOT_OPENED",
		16: "APPLICATION_UNDER_REVIEW",
		17: "THE_WEBSITE_HAS_BEEN_OPENED",
		18: "TENANT_MULTIPLE_APPLICATION",
	}
	TenantErrorReason_value = map[string]int32{
		"CREATE_TENANT_ERROR":                      0,
		"UPDATE_TENANT_ERROR":                      1,
		"BINDING_PHONE_ERROR":                      2,
		"DELETE_TENANT_ERROR":                      3,
		"FIND_TENANT_BY_ID_ERROR":                  4,
		"GET_TENANT_LIST_ERROR":                    5,
		"FIND_TENANT_BY_ASSOCIATED_USERS_ID_ERROR": 6,
		"TENANT_ALREADY_EXISTS":                    7,
		"TENANT_NOT_FOUND":                         8,
		"VERIFICATION_CODE_VERIFICATION_FAILED":    9,
		"MARSHAL_TENANT_DATA_ENCODING_FAIL":        10,
		"ENCRYPTION_REQUEST_OPTION_FAIL":           11,
		"MOBILE_VERIFICATION_CODE_ERROR":           12,
		"APPLICATION_PARAMETER_ERROR":              13,
		"APPLICATION_ERROR":                        14,
		"TENANT_NOT_OPENED":                        15,
		"APPLICATION_UNDER_REVIEW":                 16,
		"THE_WEBSITE_HAS_BEEN_OPENED":              17,
		"TENANT_MULTIPLE_APPLICATION":              18,
	}
)

Enum value maps for TenantErrorReason.

View Source
var File_api_platform_tenant_v2_tenant_error_proto protoreflect.FileDescriptor
View Source
var File_platform_tenant_v2_tenant_proto protoreflect.FileDescriptor
View Source
var Tenant_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.platform.tenant.v2.tenant",
	HandlerType: (*TenantServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Application",
			Handler:    _Tenant_Application_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _Tenant_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Tenant_Update_Handler,
		},
		{
			MethodName: "BindingPhone",
			Handler:    _Tenant_BindingPhone_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Tenant_Delete_Handler,
		},
		{
			MethodName: "FindByID",
			Handler:    _Tenant_FindByID_Handler,
		},
		{
			MethodName: "WebsitePath",
			Handler:    _Tenant_WebsitePath_Handler,
		},
		{
			MethodName: "GetList",
			Handler:    _Tenant_GetList_Handler,
		},
		{
			MethodName: "FindByAssociatedUsersID",
			Handler:    _Tenant_FindByAssociatedUsersID_Handler,
		},
		{
			MethodName: "WebsiteApplication",
			Handler:    _Tenant_WebsiteApplication_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "platform/tenant/v2/tenant.proto",
}

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

Functions

func ErrorApplicationError

func ErrorApplicationError(format string, args ...interface{}) *errors.Error

申请失败

func ErrorApplicationParameterError

func ErrorApplicationParameterError(format string, args ...interface{}) *errors.Error

申请参数错误

func ErrorApplicationUnderReview

func ErrorApplicationUnderReview(format string, args ...interface{}) *errors.Error

申请审批中

func ErrorBindingPhoneError

func ErrorBindingPhoneError(format string, args ...interface{}) *errors.Error

绑定手机号失败

func ErrorCreateTenantError

func ErrorCreateTenantError(format string, args ...interface{}) *errors.Error

创建租户失败

func ErrorDeleteTenantError

func ErrorDeleteTenantError(format string, args ...interface{}) *errors.Error

删除租户

func ErrorEncryptionRequestOptionFail

func ErrorEncryptionRequestOptionFail(format string, args ...interface{}) *errors.Error

加密请求信息失败encryption

func ErrorFindTenantByAssociatedUsersIdError

func ErrorFindTenantByAssociatedUsersIdError(format string, args ...interface{}) *errors.Error

根据关联用户查询租户失败

func ErrorFindTenantByIdError

func ErrorFindTenantByIdError(format string, args ...interface{}) *errors.Error

查询租户失败

func ErrorGetTenantListError

func ErrorGetTenantListError(format string, args ...interface{}) *errors.Error

获取租户列表失败

func ErrorMarshalTenantDataEncodingFail

func ErrorMarshalTenantDataEncodingFail(format string, args ...interface{}) *errors.Error

序列化数据结构失败

func ErrorMobileVerificationCodeError

func ErrorMobileVerificationCodeError(format string, args ...interface{}) *errors.Error

手机验证码错误

func ErrorTenantAlreadyExists

func ErrorTenantAlreadyExists(format string, args ...interface{}) *errors.Error

租户已存在

func ErrorTenantMultipleApplication

func ErrorTenantMultipleApplication(format string, args ...interface{}) *errors.Error

申请审核中,请勿重复提交

func ErrorTenantNotFound

func ErrorTenantNotFound(format string, args ...interface{}) *errors.Error

不存在

func ErrorTenantNotOpened

func ErrorTenantNotOpened(format string, args ...interface{}) *errors.Error

租户未开通

func ErrorTheWebsiteHasBeenOpened

func ErrorTheWebsiteHasBeenOpened(format string, args ...interface{}) *errors.Error

网站已开通

func ErrorUpdateTenantError

func ErrorUpdateTenantError(format string, args ...interface{}) *errors.Error

更新租户信息失败

func ErrorVerificationCodeVerificationFailed

func ErrorVerificationCodeVerificationFailed(format string, args ...interface{}) *errors.Error

Verification code verification failed

func IsApplicationError

func IsApplicationError(err error) bool

申请失败

func IsApplicationParameterError

func IsApplicationParameterError(err error) bool

申请参数错误

func IsApplicationUnderReview

func IsApplicationUnderReview(err error) bool

申请审批中

func IsBindingPhoneError

func IsBindingPhoneError(err error) bool

绑定手机号失败

func IsCreateTenantError

func IsCreateTenantError(err error) bool

创建租户失败

func IsDeleteTenantError

func IsDeleteTenantError(err error) bool

删除租户

func IsEncryptionRequestOptionFail

func IsEncryptionRequestOptionFail(err error) bool

加密请求信息失败encryption

func IsFindTenantByAssociatedUsersIdError

func IsFindTenantByAssociatedUsersIdError(err error) bool

根据关联用户查询租户失败

func IsFindTenantByIdError

func IsFindTenantByIdError(err error) bool

查询租户失败

func IsGetTenantListError

func IsGetTenantListError(err error) bool

获取租户列表失败

func IsMarshalTenantDataEncodingFail

func IsMarshalTenantDataEncodingFail(err error) bool

序列化数据结构失败

func IsMobileVerificationCodeError

func IsMobileVerificationCodeError(err error) bool

手机验证码错误

func IsTenantAlreadyExists

func IsTenantAlreadyExists(err error) bool

租户已存在

func IsTenantMultipleApplication

func IsTenantMultipleApplication(err error) bool

申请审核中,请勿重复提交

func IsTenantNotFound

func IsTenantNotFound(err error) bool

不存在

func IsTenantNotOpened

func IsTenantNotOpened(err error) bool

租户未开通

func IsTheWebsiteHasBeenOpened

func IsTheWebsiteHasBeenOpened(err error) bool

网站已开通

func IsUpdateTenantError

func IsUpdateTenantError(err error) bool

更新租户信息失败

func IsVerificationCodeVerificationFailed

func IsVerificationCodeVerificationFailed(err error) bool

Verification code verification failed

func RegisterTenantServer

func RegisterTenantServer(s grpc.ServiceRegistrar, srv TenantServer)

Types

type ApplicationReply

type ApplicationReply struct {
	// contains filtered or unexported fields
}

func (*ApplicationReply) Descriptor deprecated

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

Deprecated: Use ApplicationReply.ProtoReflect.Descriptor instead.

func (*ApplicationReply) ProtoMessage

func (*ApplicationReply) ProtoMessage()

func (*ApplicationReply) ProtoReflect

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

func (*ApplicationReply) Reset

func (x *ApplicationReply) Reset()

func (*ApplicationReply) String

func (x *ApplicationReply) String() string

func (*ApplicationReply) Validate

func (m *ApplicationReply) Validate() error

Validate checks the field values on ApplicationReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ApplicationReply) ValidateAll

func (m *ApplicationReply) ValidateAll() error

ValidateAll checks the field values on ApplicationReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApplicationReplyMultiError, or nil if none found.

type ApplicationReplyMultiError

type ApplicationReplyMultiError []error

ApplicationReplyMultiError is an error wrapping multiple validation errors returned by ApplicationReply.ValidateAll() if the designated constraints aren't met.

func (ApplicationReplyMultiError) AllErrors

func (m ApplicationReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ApplicationReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ApplicationReplyValidationError

type ApplicationReplyValidationError struct {
	// contains filtered or unexported fields
}

ApplicationReplyValidationError is the validation error returned by ApplicationReply.Validate if the designated constraints aren't met.

func (ApplicationReplyValidationError) Cause

Cause function returns cause value.

func (ApplicationReplyValidationError) Error

Error satisfies the builtin error interface

func (ApplicationReplyValidationError) ErrorName

ErrorName returns error name.

func (ApplicationReplyValidationError) Field

Field function returns field value.

func (ApplicationReplyValidationError) Key

Key function returns key value.

func (ApplicationReplyValidationError) Reason

Reason function returns reason value.

type ApplicationRequest

type ApplicationRequest struct {
	Id               string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                             //租户id
	Name             string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                         //租户名称
	PackageType      string `protobuf:"bytes,3,opt,name=packageType,proto3" json:"packageType,omitempty"`           //套餐类型
	MaxNumber        int64  `protobuf:"varint,4,opt,name=maxNumber,proto3" json:"maxNumber,omitempty"`              // 最大租户数
	MaxGroupNumber   int64  `protobuf:"varint,5,opt,name=maxGroupNumber,proto3" json:"maxGroupNumber,omitempty"`    //最大群人数
	AssociatedUserID string `protobuf:"bytes,6,opt,name=associatedUserID,proto3" json:"associatedUserID,omitempty"` // 租户id
	Key              string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"`                           //短信的key
	Code             string `protobuf:"bytes,8,opt,name=code,proto3" json:"code,omitempty"`                         //短信编码
	Phone            string `protobuf:"bytes,9,opt,name=phone,proto3" json:"phone,omitempty"`                       //手机号
	Duration         int64  `protobuf:"varint,10,opt,name=duration,proto3" json:"duration,omitempty"`               //申请时长
	// contains filtered or unexported fields
}

租户申请 -------------------------------------------

func (*ApplicationRequest) Descriptor deprecated

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

Deprecated: Use ApplicationRequest.ProtoReflect.Descriptor instead.

func (*ApplicationRequest) GetAssociatedUserID

func (x *ApplicationRequest) GetAssociatedUserID() string

func (*ApplicationRequest) GetCode

func (x *ApplicationRequest) GetCode() string

func (*ApplicationRequest) GetDuration

func (x *ApplicationRequest) GetDuration() int64

func (*ApplicationRequest) GetId

func (x *ApplicationRequest) GetId() string

func (*ApplicationRequest) GetKey

func (x *ApplicationRequest) GetKey() string

func (*ApplicationRequest) GetMaxGroupNumber

func (x *ApplicationRequest) GetMaxGroupNumber() int64

func (*ApplicationRequest) GetMaxNumber

func (x *ApplicationRequest) GetMaxNumber() int64

func (*ApplicationRequest) GetName

func (x *ApplicationRequest) GetName() string

func (*ApplicationRequest) GetPackageType

func (x *ApplicationRequest) GetPackageType() string

func (*ApplicationRequest) GetPhone

func (x *ApplicationRequest) GetPhone() string

func (*ApplicationRequest) ProtoMessage

func (*ApplicationRequest) ProtoMessage()

func (*ApplicationRequest) ProtoReflect

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

func (*ApplicationRequest) Reset

func (x *ApplicationRequest) Reset()

func (*ApplicationRequest) String

func (x *ApplicationRequest) String() string

func (*ApplicationRequest) Validate

func (m *ApplicationRequest) Validate() error

Validate checks the field values on ApplicationRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ApplicationRequest) ValidateAll

func (m *ApplicationRequest) ValidateAll() error

ValidateAll checks the field values on ApplicationRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApplicationRequestMultiError, or nil if none found.

type ApplicationRequestMultiError

type ApplicationRequestMultiError []error

ApplicationRequestMultiError is an error wrapping multiple validation errors returned by ApplicationRequest.ValidateAll() if the designated constraints aren't met.

func (ApplicationRequestMultiError) AllErrors

func (m ApplicationRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ApplicationRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ApplicationRequestValidationError

type ApplicationRequestValidationError struct {
	// contains filtered or unexported fields
}

ApplicationRequestValidationError is the validation error returned by ApplicationRequest.Validate if the designated constraints aren't met.

func (ApplicationRequestValidationError) Cause

Cause function returns cause value.

func (ApplicationRequestValidationError) Error

Error satisfies the builtin error interface

func (ApplicationRequestValidationError) ErrorName

ErrorName returns error name.

func (ApplicationRequestValidationError) Field

Field function returns field value.

func (ApplicationRequestValidationError) Key

Key function returns key value.

func (ApplicationRequestValidationError) Reason

Reason function returns reason value.

type BindingPhoneReply

type BindingPhoneReply struct {
	// contains filtered or unexported fields
}

func (*BindingPhoneReply) Descriptor deprecated

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

Deprecated: Use BindingPhoneReply.ProtoReflect.Descriptor instead.

func (*BindingPhoneReply) ProtoMessage

func (*BindingPhoneReply) ProtoMessage()

func (*BindingPhoneReply) ProtoReflect

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

func (*BindingPhoneReply) Reset

func (x *BindingPhoneReply) Reset()

func (*BindingPhoneReply) String

func (x *BindingPhoneReply) String() string

func (*BindingPhoneReply) Validate

func (m *BindingPhoneReply) Validate() error

Validate checks the field values on BindingPhoneReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BindingPhoneReply) ValidateAll

func (m *BindingPhoneReply) ValidateAll() error

ValidateAll checks the field values on BindingPhoneReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BindingPhoneReplyMultiError, or nil if none found.

type BindingPhoneReplyMultiError

type BindingPhoneReplyMultiError []error

BindingPhoneReplyMultiError is an error wrapping multiple validation errors returned by BindingPhoneReply.ValidateAll() if the designated constraints aren't met.

func (BindingPhoneReplyMultiError) AllErrors

func (m BindingPhoneReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BindingPhoneReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type BindingPhoneReplyValidationError

type BindingPhoneReplyValidationError struct {
	// contains filtered or unexported fields
}

BindingPhoneReplyValidationError is the validation error returned by BindingPhoneReply.Validate if the designated constraints aren't met.

func (BindingPhoneReplyValidationError) Cause

Cause function returns cause value.

func (BindingPhoneReplyValidationError) Error

Error satisfies the builtin error interface

func (BindingPhoneReplyValidationError) ErrorName

ErrorName returns error name.

func (BindingPhoneReplyValidationError) Field

Field function returns field value.

func (BindingPhoneReplyValidationError) Key

Key function returns key value.

func (BindingPhoneReplyValidationError) Reason

Reason function returns reason value.

type BindingPhoneRequest

type BindingPhoneRequest struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`       //租户主键
	Key   string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`     //短信的key
	Code  string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`   //短信编码
	Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` //手机号
	// contains filtered or unexported fields
}

绑定手机号 -------------------------------------------

func (*BindingPhoneRequest) Descriptor deprecated

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

Deprecated: Use BindingPhoneRequest.ProtoReflect.Descriptor instead.

func (*BindingPhoneRequest) GetCode

func (x *BindingPhoneRequest) GetCode() string

func (*BindingPhoneRequest) GetId

func (x *BindingPhoneRequest) GetId() string

func (*BindingPhoneRequest) GetKey

func (x *BindingPhoneRequest) GetKey() string

func (*BindingPhoneRequest) GetPhone

func (x *BindingPhoneRequest) GetPhone() string

func (*BindingPhoneRequest) ProtoMessage

func (*BindingPhoneRequest) ProtoMessage()

func (*BindingPhoneRequest) ProtoReflect

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

func (*BindingPhoneRequest) Reset

func (x *BindingPhoneRequest) Reset()

func (*BindingPhoneRequest) String

func (x *BindingPhoneRequest) String() string

func (*BindingPhoneRequest) Validate

func (m *BindingPhoneRequest) Validate() error

Validate checks the field values on BindingPhoneRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BindingPhoneRequest) ValidateAll

func (m *BindingPhoneRequest) ValidateAll() error

ValidateAll checks the field values on BindingPhoneRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BindingPhoneRequestMultiError, or nil if none found.

type BindingPhoneRequestMultiError

type BindingPhoneRequestMultiError []error

BindingPhoneRequestMultiError is an error wrapping multiple validation errors returned by BindingPhoneRequest.ValidateAll() if the designated constraints aren't met.

func (BindingPhoneRequestMultiError) AllErrors

func (m BindingPhoneRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BindingPhoneRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type BindingPhoneRequestValidationError

type BindingPhoneRequestValidationError struct {
	// contains filtered or unexported fields
}

BindingPhoneRequestValidationError is the validation error returned by BindingPhoneRequest.Validate if the designated constraints aren't met.

func (BindingPhoneRequestValidationError) Cause

Cause function returns cause value.

func (BindingPhoneRequestValidationError) Error

Error satisfies the builtin error interface

func (BindingPhoneRequestValidationError) ErrorName

ErrorName returns error name.

func (BindingPhoneRequestValidationError) Field

Field function returns field value.

func (BindingPhoneRequestValidationError) Key

Key function returns key value.

func (BindingPhoneRequestValidationError) Reason

Reason function returns reason value.

type CreateReply

type CreateReply struct {
	// contains filtered or unexported fields
}

func (*CreateReply) Descriptor deprecated

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

Deprecated: Use CreateReply.ProtoReflect.Descriptor instead.

func (*CreateReply) ProtoMessage

func (*CreateReply) ProtoMessage()

func (*CreateReply) ProtoReflect

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

func (*CreateReply) Reset

func (x *CreateReply) Reset()

func (*CreateReply) String

func (x *CreateReply) String() string

func (*CreateReply) Validate

func (m *CreateReply) Validate() error

Validate checks the field values on CreateReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateReply) ValidateAll

func (m *CreateReply) ValidateAll() error

ValidateAll checks the field values on CreateReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateReplyMultiError, or nil if none found.

type CreateReplyMultiError

type CreateReplyMultiError []error

CreateReplyMultiError is an error wrapping multiple validation errors returned by CreateReply.ValidateAll() if the designated constraints aren't met.

func (CreateReplyMultiError) AllErrors

func (m CreateReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateReplyMultiError) Error

func (m CreateReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CreateReplyValidationError

type CreateReplyValidationError struct {
	// contains filtered or unexported fields
}

CreateReplyValidationError is the validation error returned by CreateReply.Validate if the designated constraints aren't met.

func (CreateReplyValidationError) Cause

Cause function returns cause value.

func (CreateReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateReplyValidationError) ErrorName

func (e CreateReplyValidationError) ErrorName() string

ErrorName returns error name.

func (CreateReplyValidationError) Field

Field function returns field value.

func (CreateReplyValidationError) Key

Key function returns key value.

func (CreateReplyValidationError) Reason

Reason function returns reason value.

type CreateRequest

type CreateRequest struct {
	Id               string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                             //租户主键
	Name             string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                         //租户名称
	PackageType      string `protobuf:"bytes,3,opt,name=packageType,proto3" json:"packageType,omitempty"`           //套餐类型
	MaxNumber        int64  `protobuf:"varint,4,opt,name=maxNumber,proto3" json:"maxNumber,omitempty"`              // 最大租户数
	MaxGroupNumber   int64  `protobuf:"varint,5,opt,name=maxGroupNumber,proto3" json:"maxGroupNumber,omitempty"`    //最大群人数
	Status           int32  `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`                    //状态,1,可用,0未开通,2过期
	StartTime        int64  `protobuf:"varint,7,opt,name=startTime,proto3" json:"startTime,omitempty"`              //开始时间
	EndTime          int64  `protobuf:"varint,8,opt,name=endTime,proto3" json:"endTime,omitempty"`                  //结束时间
	AssociatedUserID string `protobuf:"bytes,9,opt,name=associatedUserID,proto3" json:"associatedUserID,omitempty"` // 租户id
	Phone            string `protobuf:"bytes,10,opt,name=phone,proto3" json:"phone,omitempty"`                      //手机号
	PubKey           string `protobuf:"bytes,11,opt,name=pubKey,proto3" json:"pubKey,omitempty"`                    //公钥
	PriKey           string `protobuf:"bytes,12,opt,name=priKey,proto3" json:"priKey,omitempty"`                    //私钥
	// contains filtered or unexported fields
}

创建租户 -------------------------------------------

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetAssociatedUserID

func (x *CreateRequest) GetAssociatedUserID() string

func (*CreateRequest) GetEndTime

func (x *CreateRequest) GetEndTime() int64

func (*CreateRequest) GetId

func (x *CreateRequest) GetId() string

func (*CreateRequest) GetMaxGroupNumber

func (x *CreateRequest) GetMaxGroupNumber() int64

func (*CreateRequest) GetMaxNumber

func (x *CreateRequest) GetMaxNumber() int64

func (*CreateRequest) GetName

func (x *CreateRequest) GetName() string

func (*CreateRequest) GetPackageType

func (x *CreateRequest) GetPackageType() string

func (*CreateRequest) GetPhone

func (x *CreateRequest) GetPhone() string

func (*CreateRequest) GetPriKey

func (x *CreateRequest) GetPriKey() string

func (*CreateRequest) GetPubKey

func (x *CreateRequest) GetPubKey() string

func (*CreateRequest) GetStartTime

func (x *CreateRequest) GetStartTime() int64

func (*CreateRequest) GetStatus

func (x *CreateRequest) GetStatus() int32

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

func (*CreateRequest) Validate

func (m *CreateRequest) Validate() error

Validate checks the field values on CreateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateRequest) ValidateAll

func (m *CreateRequest) ValidateAll() error

ValidateAll checks the field values on CreateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateRequestMultiError, or nil if none found.

type CreateRequestMultiError

type CreateRequestMultiError []error

CreateRequestMultiError is an error wrapping multiple validation errors returned by CreateRequest.ValidateAll() if the designated constraints aren't met.

func (CreateRequestMultiError) AllErrors

func (m CreateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRequestMultiError) Error

func (m CreateRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CreateRequestValidationError

type CreateRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateRequestValidationError is the validation error returned by CreateRequest.Validate if the designated constraints aren't met.

func (CreateRequestValidationError) Cause

Cause function returns cause value.

func (CreateRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRequestValidationError) ErrorName

func (e CreateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (CreateRequestValidationError) Field

Field function returns field value.

func (CreateRequestValidationError) Key

Key function returns key value.

func (CreateRequestValidationError) Reason

Reason function returns reason value.

type DeleteReply

type DeleteReply struct {
	// contains filtered or unexported fields
}

func (*DeleteReply) Descriptor deprecated

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

Deprecated: Use DeleteReply.ProtoReflect.Descriptor instead.

func (*DeleteReply) ProtoMessage

func (*DeleteReply) ProtoMessage()

func (*DeleteReply) ProtoReflect

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

func (*DeleteReply) Reset

func (x *DeleteReply) Reset()

func (*DeleteReply) String

func (x *DeleteReply) String() string

func (*DeleteReply) Validate

func (m *DeleteReply) Validate() error

Validate checks the field values on DeleteReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteReply) ValidateAll

func (m *DeleteReply) ValidateAll() error

ValidateAll checks the field values on DeleteReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteReplyMultiError, or nil if none found.

type DeleteReplyMultiError

type DeleteReplyMultiError []error

DeleteReplyMultiError is an error wrapping multiple validation errors returned by DeleteReply.ValidateAll() if the designated constraints aren't met.

func (DeleteReplyMultiError) AllErrors

func (m DeleteReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteReplyMultiError) Error

func (m DeleteReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteReplyValidationError

type DeleteReplyValidationError struct {
	// contains filtered or unexported fields
}

DeleteReplyValidationError is the validation error returned by DeleteReply.Validate if the designated constraints aren't met.

func (DeleteReplyValidationError) Cause

Cause function returns cause value.

func (DeleteReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteReplyValidationError) ErrorName

func (e DeleteReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteReplyValidationError) Field

Field function returns field value.

func (DeleteReplyValidationError) Key

Key function returns key value.

func (DeleteReplyValidationError) Reason

Reason function returns reason value.

type DeleteRequest

type DeleteRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //租户主键
	// contains filtered or unexported fields
}

删除租户 -------------------------------------------

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetId

func (x *DeleteRequest) GetId() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

func (*DeleteRequest) Validate

func (m *DeleteRequest) Validate() error

Validate checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteRequest) ValidateAll

func (m *DeleteRequest) ValidateAll() error

ValidateAll checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRequestMultiError, or nil if none found.

type DeleteRequestMultiError

type DeleteRequestMultiError []error

DeleteRequestMultiError is an error wrapping multiple validation errors returned by DeleteRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteRequestMultiError) AllErrors

func (m DeleteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRequestMultiError) Error

func (m DeleteRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteRequestValidationError

type DeleteRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.

func (DeleteRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRequestValidationError) ErrorName

func (e DeleteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteRequestValidationError) Field

Field function returns field value.

func (DeleteRequestValidationError) Key

Key function returns key value.

func (DeleteRequestValidationError) Reason

Reason function returns reason value.

type FindByAssociatedUsersIDReply

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

func (*FindByAssociatedUsersIDReply) Descriptor deprecated

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

Deprecated: Use FindByAssociatedUsersIDReply.ProtoReflect.Descriptor instead.

func (*FindByAssociatedUsersIDReply) GetData

func (x *FindByAssociatedUsersIDReply) GetData() *Tenant

func (*FindByAssociatedUsersIDReply) ProtoMessage

func (*FindByAssociatedUsersIDReply) ProtoMessage()

func (*FindByAssociatedUsersIDReply) ProtoReflect

func (*FindByAssociatedUsersIDReply) Reset

func (x *FindByAssociatedUsersIDReply) Reset()

func (*FindByAssociatedUsersIDReply) String

func (*FindByAssociatedUsersIDReply) Validate

func (m *FindByAssociatedUsersIDReply) Validate() error

Validate checks the field values on FindByAssociatedUsersIDReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindByAssociatedUsersIDReply) ValidateAll

func (m *FindByAssociatedUsersIDReply) ValidateAll() error

ValidateAll checks the field values on FindByAssociatedUsersIDReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindByAssociatedUsersIDReplyMultiError, or nil if none found.

type FindByAssociatedUsersIDReplyMultiError

type FindByAssociatedUsersIDReplyMultiError []error

FindByAssociatedUsersIDReplyMultiError is an error wrapping multiple validation errors returned by FindByAssociatedUsersIDReply.ValidateAll() if the designated constraints aren't met.

func (FindByAssociatedUsersIDReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (FindByAssociatedUsersIDReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindByAssociatedUsersIDReplyValidationError

type FindByAssociatedUsersIDReplyValidationError struct {
	// contains filtered or unexported fields
}

FindByAssociatedUsersIDReplyValidationError is the validation error returned by FindByAssociatedUsersIDReply.Validate if the designated constraints aren't met.

func (FindByAssociatedUsersIDReplyValidationError) Cause

Cause function returns cause value.

func (FindByAssociatedUsersIDReplyValidationError) Error

Error satisfies the builtin error interface

func (FindByAssociatedUsersIDReplyValidationError) ErrorName

ErrorName returns error name.

func (FindByAssociatedUsersIDReplyValidationError) Field

Field function returns field value.

func (FindByAssociatedUsersIDReplyValidationError) Key

Key function returns key value.

func (FindByAssociatedUsersIDReplyValidationError) Reason

Reason function returns reason value.

type FindByAssociatedUsersIDRequest

type FindByAssociatedUsersIDRequest struct {
	AssociatedUsersID string `protobuf:"bytes,1,opt,name=associatedUsersID,proto3" json:"associatedUsersID,omitempty"` //租户主键
	// contains filtered or unexported fields
}

根据创建租户id获取租户 -------------------------------------------

func (*FindByAssociatedUsersIDRequest) Descriptor deprecated

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

Deprecated: Use FindByAssociatedUsersIDRequest.ProtoReflect.Descriptor instead.

func (*FindByAssociatedUsersIDRequest) GetAssociatedUsersID

func (x *FindByAssociatedUsersIDRequest) GetAssociatedUsersID() string

func (*FindByAssociatedUsersIDRequest) ProtoMessage

func (*FindByAssociatedUsersIDRequest) ProtoMessage()

func (*FindByAssociatedUsersIDRequest) ProtoReflect

func (*FindByAssociatedUsersIDRequest) Reset

func (x *FindByAssociatedUsersIDRequest) Reset()

func (*FindByAssociatedUsersIDRequest) String

func (*FindByAssociatedUsersIDRequest) Validate

func (m *FindByAssociatedUsersIDRequest) Validate() error

Validate checks the field values on FindByAssociatedUsersIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindByAssociatedUsersIDRequest) ValidateAll

func (m *FindByAssociatedUsersIDRequest) ValidateAll() error

ValidateAll checks the field values on FindByAssociatedUsersIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindByAssociatedUsersIDRequestMultiError, or nil if none found.

type FindByAssociatedUsersIDRequestMultiError

type FindByAssociatedUsersIDRequestMultiError []error

FindByAssociatedUsersIDRequestMultiError is an error wrapping multiple validation errors returned by FindByAssociatedUsersIDRequest.ValidateAll() if the designated constraints aren't met.

func (FindByAssociatedUsersIDRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (FindByAssociatedUsersIDRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindByAssociatedUsersIDRequestValidationError

type FindByAssociatedUsersIDRequestValidationError struct {
	// contains filtered or unexported fields
}

FindByAssociatedUsersIDRequestValidationError is the validation error returned by FindByAssociatedUsersIDRequest.Validate if the designated constraints aren't met.

func (FindByAssociatedUsersIDRequestValidationError) Cause

Cause function returns cause value.

func (FindByAssociatedUsersIDRequestValidationError) Error

Error satisfies the builtin error interface

func (FindByAssociatedUsersIDRequestValidationError) ErrorName

ErrorName returns error name.

func (FindByAssociatedUsersIDRequestValidationError) Field

Field function returns field value.

func (FindByAssociatedUsersIDRequestValidationError) Key

Key function returns key value.

func (FindByAssociatedUsersIDRequestValidationError) Reason

Reason function returns reason value.

type FindByIDReply

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

func (*FindByIDReply) Descriptor deprecated

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

Deprecated: Use FindByIDReply.ProtoReflect.Descriptor instead.

func (*FindByIDReply) GetData

func (x *FindByIDReply) GetData() *Tenant

func (*FindByIDReply) ProtoMessage

func (*FindByIDReply) ProtoMessage()

func (*FindByIDReply) ProtoReflect

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

func (*FindByIDReply) Reset

func (x *FindByIDReply) Reset()

func (*FindByIDReply) String

func (x *FindByIDReply) String() string

func (*FindByIDReply) Validate

func (m *FindByIDReply) Validate() error

Validate checks the field values on FindByIDReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindByIDReply) ValidateAll

func (m *FindByIDReply) ValidateAll() error

ValidateAll checks the field values on FindByIDReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindByIDReplyMultiError, or nil if none found.

type FindByIDReplyMultiError

type FindByIDReplyMultiError []error

FindByIDReplyMultiError is an error wrapping multiple validation errors returned by FindByIDReply.ValidateAll() if the designated constraints aren't met.

func (FindByIDReplyMultiError) AllErrors

func (m FindByIDReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindByIDReplyMultiError) Error

func (m FindByIDReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FindByIDReplyValidationError

type FindByIDReplyValidationError struct {
	// contains filtered or unexported fields
}

FindByIDReplyValidationError is the validation error returned by FindByIDReply.Validate if the designated constraints aren't met.

func (FindByIDReplyValidationError) Cause

Cause function returns cause value.

func (FindByIDReplyValidationError) Error

Error satisfies the builtin error interface

func (FindByIDReplyValidationError) ErrorName

func (e FindByIDReplyValidationError) ErrorName() string

ErrorName returns error name.

func (FindByIDReplyValidationError) Field

Field function returns field value.

func (FindByIDReplyValidationError) Key

Key function returns key value.

func (FindByIDReplyValidationError) Reason

Reason function returns reason value.

type FindByIDRequest

type FindByIDRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //租户主键
	// contains filtered or unexported fields
}

根据id获取租户 -------------------------------------------

func (*FindByIDRequest) Descriptor deprecated

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

Deprecated: Use FindByIDRequest.ProtoReflect.Descriptor instead.

func (*FindByIDRequest) GetId

func (x *FindByIDRequest) GetId() string

func (*FindByIDRequest) ProtoMessage

func (*FindByIDRequest) ProtoMessage()

func (*FindByIDRequest) ProtoReflect

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

func (*FindByIDRequest) Reset

func (x *FindByIDRequest) Reset()

func (*FindByIDRequest) String

func (x *FindByIDRequest) String() string

func (*FindByIDRequest) Validate

func (m *FindByIDRequest) Validate() error

Validate checks the field values on FindByIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindByIDRequest) ValidateAll

func (m *FindByIDRequest) ValidateAll() error

ValidateAll checks the field values on FindByIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindByIDRequestMultiError, or nil if none found.

type FindByIDRequestMultiError

type FindByIDRequestMultiError []error

FindByIDRequestMultiError is an error wrapping multiple validation errors returned by FindByIDRequest.ValidateAll() if the designated constraints aren't met.

func (FindByIDRequestMultiError) AllErrors

func (m FindByIDRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindByIDRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindByIDRequestValidationError

type FindByIDRequestValidationError struct {
	// contains filtered or unexported fields
}

FindByIDRequestValidationError is the validation error returned by FindByIDRequest.Validate if the designated constraints aren't met.

func (FindByIDRequestValidationError) Cause

Cause function returns cause value.

func (FindByIDRequestValidationError) Error

Error satisfies the builtin error interface

func (FindByIDRequestValidationError) ErrorName

func (e FindByIDRequestValidationError) ErrorName() string

ErrorName returns error name.

func (FindByIDRequestValidationError) Field

Field function returns field value.

func (FindByIDRequestValidationError) Key

Key function returns key value.

func (FindByIDRequestValidationError) Reason

Reason function returns reason value.

type GetListReply

type GetListReply struct {
	Total int64     `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 总计条数
	List  []*Tenant `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetListReply) Descriptor deprecated

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

Deprecated: Use GetListReply.ProtoReflect.Descriptor instead.

func (*GetListReply) GetList

func (x *GetListReply) GetList() []*Tenant

func (*GetListReply) GetTotal

func (x *GetListReply) GetTotal() int64

func (*GetListReply) ProtoMessage

func (*GetListReply) ProtoMessage()

func (*GetListReply) ProtoReflect

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

func (*GetListReply) Reset

func (x *GetListReply) Reset()

func (*GetListReply) String

func (x *GetListReply) String() string

func (*GetListReply) Validate

func (m *GetListReply) Validate() error

Validate checks the field values on GetListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetListReply) ValidateAll

func (m *GetListReply) ValidateAll() error

ValidateAll checks the field values on GetListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetListReplyMultiError, or nil if none found.

type GetListReplyMultiError

type GetListReplyMultiError []error

GetListReplyMultiError is an error wrapping multiple validation errors returned by GetListReply.ValidateAll() if the designated constraints aren't met.

func (GetListReplyMultiError) AllErrors

func (m GetListReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetListReplyMultiError) Error

func (m GetListReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetListReplyValidationError

type GetListReplyValidationError struct {
	// contains filtered or unexported fields
}

GetListReplyValidationError is the validation error returned by GetListReply.Validate if the designated constraints aren't met.

func (GetListReplyValidationError) Cause

Cause function returns cause value.

func (GetListReplyValidationError) Error

Error satisfies the builtin error interface

func (GetListReplyValidationError) ErrorName

func (e GetListReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetListReplyValidationError) Field

Field function returns field value.

func (GetListReplyValidationError) Key

Key function returns key value.

func (GetListReplyValidationError) Reason

Reason function returns reason value.

type GetListRequest

type GetListRequest struct {
	Id          *string        `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`                   //租户主键
	Name        *string        `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`               //租户名称
	PackageType *string        `protobuf:"bytes,3,opt,name=packageType,proto3,oneof" json:"packageType,omitempty"` //套餐类型
	Status      *int32         `protobuf:"varint,4,opt,name=status,proto3,oneof" json:"status,omitempty"`          //状态,1,可用,0未开通,2过期
	Pagination  *v2.Pagination `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

根据id获取租户 -------------------------------------------

func (*GetListRequest) Descriptor deprecated

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

Deprecated: Use GetListRequest.ProtoReflect.Descriptor instead.

func (*GetListRequest) GetId

func (x *GetListRequest) GetId() string

func (*GetListRequest) GetName

func (x *GetListRequest) GetName() string

func (*GetListRequest) GetPackageType

func (x *GetListRequest) GetPackageType() string

func (*GetListRequest) GetPagination

func (x *GetListRequest) GetPagination() *v2.Pagination

func (*GetListRequest) GetStatus

func (x *GetListRequest) GetStatus() int32

func (*GetListRequest) ProtoMessage

func (*GetListRequest) ProtoMessage()

func (*GetListRequest) ProtoReflect

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

func (*GetListRequest) Reset

func (x *GetListRequest) Reset()

func (*GetListRequest) String

func (x *GetListRequest) String() string

func (*GetListRequest) Validate

func (m *GetListRequest) Validate() error

Validate checks the field values on GetListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetListRequest) ValidateAll

func (m *GetListRequest) ValidateAll() error

ValidateAll checks the field values on GetListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetListRequestMultiError, or nil if none found.

type GetListRequestMultiError

type GetListRequestMultiError []error

GetListRequestMultiError is an error wrapping multiple validation errors returned by GetListRequest.ValidateAll() if the designated constraints aren't met.

func (GetListRequestMultiError) AllErrors

func (m GetListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetListRequestMultiError) Error

func (m GetListRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetListRequestValidationError

type GetListRequestValidationError struct {
	// contains filtered or unexported fields
}

GetListRequestValidationError is the validation error returned by GetListRequest.Validate if the designated constraints aren't met.

func (GetListRequestValidationError) Cause

Cause function returns cause value.

func (GetListRequestValidationError) Error

Error satisfies the builtin error interface

func (GetListRequestValidationError) ErrorName

func (e GetListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetListRequestValidationError) Field

Field function returns field value.

func (GetListRequestValidationError) Key

Key function returns key value.

func (GetListRequestValidationError) Reason

Reason function returns reason value.

type Tenant

type Tenant struct {
	Id                string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                               //租户主键
	CreatedAt         int64  `protobuf:"varint,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"`                //创建时间
	UpdatedAt         int64  `protobuf:"varint,3,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`                //创建时间
	DeletedAt         int64  `protobuf:"varint,4,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"`                //删除时间
	AssociatedUsersID string `protobuf:"bytes,5,opt,name=associatedUsersID,proto3" json:"associatedUsersID,omitempty"` //开通租户id
	Name              string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`                           //租户名称
	Introduce         string `protobuf:"bytes,8,opt,name=introduce,proto3" json:"introduce,omitempty"`                 //简介
	WebsiteAddress    string `protobuf:"bytes,9,opt,name=websiteAddress,proto3" json:"websiteAddress,omitempty"`       //网站地址
	WebsiteStatus     int32  `protobuf:"varint,10,opt,name=websiteStatus,proto3" json:"websiteStatus,omitempty"`       //网站状态1,申请中,0未开通,2:可用
	PackageType       string `protobuf:"bytes,11,opt,name=packageType,proto3" json:"packageType,omitempty"`            //套餐类型
	MaxNumber         int64  `protobuf:"varint,12,opt,name=maxNumber,proto3" json:"maxNumber,omitempty"`               // 最大租户数
	MaxGroupNumber    int64  `protobuf:"varint,13,opt,name=maxGroupNumber,proto3" json:"maxGroupNumber,omitempty"`     //最大群人数
	Phone             string `protobuf:"bytes,14,opt,name=phone,proto3" json:"phone,omitempty"`                        //手机号
	Status            int32  `protobuf:"varint,15,opt,name=status,proto3" json:"status,omitempty"`                     //状态,1,可用,0未开通,2过期
	StartTime         int64  `protobuf:"varint,16,opt,name=startTime,proto3" json:"startTime,omitempty"`               //开始时间
	EndTime           int64  `protobuf:"varint,17,opt,name=endTime,proto3" json:"endTime,omitempty"`                   //结束时间
	Code              string `protobuf:"bytes,18,opt,name=code,proto3" json:"code,omitempty"`                          //租户名称
	// contains filtered or unexported fields
}

租户信息

func (*Tenant) Descriptor deprecated

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

Deprecated: Use Tenant.ProtoReflect.Descriptor instead.

func (*Tenant) GetAssociatedUsersID

func (x *Tenant) GetAssociatedUsersID() string

func (*Tenant) GetCode

func (x *Tenant) GetCode() string

func (*Tenant) GetCreatedAt

func (x *Tenant) GetCreatedAt() int64

func (*Tenant) GetDeletedAt

func (x *Tenant) GetDeletedAt() int64

func (*Tenant) GetEndTime

func (x *Tenant) GetEndTime() int64

func (*Tenant) GetId

func (x *Tenant) GetId() string

func (*Tenant) GetIntroduce

func (x *Tenant) GetIntroduce() string
func (x *Tenant) GetLogo() string

func (*Tenant) GetMaxGroupNumber

func (x *Tenant) GetMaxGroupNumber() int64

func (*Tenant) GetMaxNumber

func (x *Tenant) GetMaxNumber() int64

func (*Tenant) GetName

func (x *Tenant) GetName() string

func (*Tenant) GetPackageType

func (x *Tenant) GetPackageType() string

func (*Tenant) GetPhone

func (x *Tenant) GetPhone() string

func (*Tenant) GetStartTime

func (x *Tenant) GetStartTime() int64

func (*Tenant) GetStatus

func (x *Tenant) GetStatus() int32

func (*Tenant) GetUpdatedAt

func (x *Tenant) GetUpdatedAt() int64

func (*Tenant) GetWebsiteAddress

func (x *Tenant) GetWebsiteAddress() string

func (*Tenant) GetWebsiteStatus

func (x *Tenant) GetWebsiteStatus() 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

func (*Tenant) Validate

func (m *Tenant) Validate() error

Validate checks the field values on Tenant with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Tenant) ValidateAll

func (m *Tenant) ValidateAll() error

ValidateAll checks the field values on Tenant with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TenantMultiError, or nil if none found.

type TenantClient

type TenantClient interface {
	// 套餐申请
	Application(ctx context.Context, in *ApplicationRequest, opts ...grpc.CallOption) (*ApplicationReply, error)
	// 创建租户
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
	// 更新租户
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateReply, error)
	// 绑定手机号
	BindingPhone(ctx context.Context, in *BindingPhoneRequest, opts ...grpc.CallOption) (*BindingPhoneReply, error)
	// 删除租户
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteReply, error)
	// 查询租户
	FindByID(ctx context.Context, in *FindByIDRequest, opts ...grpc.CallOption) (*FindByIDReply, error)
	// 获取网站地址
	WebsitePath(ctx context.Context, in *WebsitePathRequest, opts ...grpc.CallOption) (*WebsitePathReply, error)
	// 获取租户列表
	GetList(ctx context.Context, in *GetListRequest, opts ...grpc.CallOption) (*GetListReply, error)
	// 根据创建租户id获取租户
	FindByAssociatedUsersID(ctx context.Context, in *FindByAssociatedUsersIDRequest, opts ...grpc.CallOption) (*FindByAssociatedUsersIDReply, error)
	// 网站申请
	WebsiteApplication(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

TenantClient is the client API for Tenant 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.

func NewTenantClient

func NewTenantClient(cc grpc.ClientConnInterface) TenantClient

type TenantErrorReason

type TenantErrorReason int32
const (
	// 创建租户失败
	TenantErrorReason_CREATE_TENANT_ERROR TenantErrorReason = 0
	// 更新租户信息失败
	TenantErrorReason_UPDATE_TENANT_ERROR TenantErrorReason = 1
	// 绑定手机号失败
	TenantErrorReason_BINDING_PHONE_ERROR TenantErrorReason = 2
	// 删除租户
	TenantErrorReason_DELETE_TENANT_ERROR TenantErrorReason = 3
	// 查询租户失败
	TenantErrorReason_FIND_TENANT_BY_ID_ERROR TenantErrorReason = 4
	// 获取租户列表失败
	TenantErrorReason_GET_TENANT_LIST_ERROR TenantErrorReason = 5
	// 根据关联用户查询租户失败
	TenantErrorReason_FIND_TENANT_BY_ASSOCIATED_USERS_ID_ERROR TenantErrorReason = 6
	// 租户已存在
	TenantErrorReason_TENANT_ALREADY_EXISTS TenantErrorReason = 7
	// 不存在
	TenantErrorReason_TENANT_NOT_FOUND TenantErrorReason = 8
	// Verification code verification failed
	TenantErrorReason_VERIFICATION_CODE_VERIFICATION_FAILED TenantErrorReason = 9
	// 序列化数据结构失败
	TenantErrorReason_MARSHAL_TENANT_DATA_ENCODING_FAIL TenantErrorReason = 10
	// 加密请求信息失败encryption
	TenantErrorReason_ENCRYPTION_REQUEST_OPTION_FAIL TenantErrorReason = 11
	// 手机验证码错误
	TenantErrorReason_MOBILE_VERIFICATION_CODE_ERROR TenantErrorReason = 12
	// 申请参数错误
	TenantErrorReason_APPLICATION_PARAMETER_ERROR TenantErrorReason = 13
	// 申请失败
	TenantErrorReason_APPLICATION_ERROR TenantErrorReason = 14
	// 租户未开通
	TenantErrorReason_TENANT_NOT_OPENED TenantErrorReason = 15
	// 申请审批中
	TenantErrorReason_APPLICATION_UNDER_REVIEW TenantErrorReason = 16
	// 网站已开通
	TenantErrorReason_THE_WEBSITE_HAS_BEEN_OPENED TenantErrorReason = 17
	// 申请审核中,请勿重复提交
	TenantErrorReason_TENANT_MULTIPLE_APPLICATION TenantErrorReason = 18
)

func (TenantErrorReason) Descriptor

func (TenantErrorReason) Enum

func (TenantErrorReason) EnumDescriptor deprecated

func (TenantErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use TenantErrorReason.Descriptor instead.

func (TenantErrorReason) Number

func (TenantErrorReason) String

func (x TenantErrorReason) String() string

func (TenantErrorReason) Type

type TenantMultiError

type TenantMultiError []error

TenantMultiError is an error wrapping multiple validation errors returned by Tenant.ValidateAll() if the designated constraints aren't met.

func (TenantMultiError) AllErrors

func (m TenantMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TenantMultiError) Error

func (m TenantMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TenantServer

type TenantServer interface {
	// 套餐申请
	Application(context.Context, *ApplicationRequest) (*ApplicationReply, error)
	// 创建租户
	Create(context.Context, *CreateRequest) (*CreateReply, error)
	// 更新租户
	Update(context.Context, *UpdateRequest) (*UpdateReply, error)
	// 绑定手机号
	BindingPhone(context.Context, *BindingPhoneRequest) (*BindingPhoneReply, error)
	// 删除租户
	Delete(context.Context, *DeleteRequest) (*DeleteReply, error)
	// 查询租户
	FindByID(context.Context, *FindByIDRequest) (*FindByIDReply, error)
	// 获取网站地址
	WebsitePath(context.Context, *WebsitePathRequest) (*WebsitePathReply, error)
	// 获取租户列表
	GetList(context.Context, *GetListRequest) (*GetListReply, error)
	// 根据创建租户id获取租户
	FindByAssociatedUsersID(context.Context, *FindByAssociatedUsersIDRequest) (*FindByAssociatedUsersIDReply, error)
	// 网站申请
	WebsiteApplication(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

TenantServer is the server API for Tenant service. All implementations must embed UnimplementedTenantServer for forward compatibility

type TenantValidationError

type TenantValidationError struct {
	// contains filtered or unexported fields
}

TenantValidationError is the validation error returned by Tenant.Validate if the designated constraints aren't met.

func (TenantValidationError) Cause

func (e TenantValidationError) Cause() error

Cause function returns cause value.

func (TenantValidationError) Error

func (e TenantValidationError) Error() string

Error satisfies the builtin error interface

func (TenantValidationError) ErrorName

func (e TenantValidationError) ErrorName() string

ErrorName returns error name.

func (TenantValidationError) Field

func (e TenantValidationError) Field() string

Field function returns field value.

func (TenantValidationError) Key

func (e TenantValidationError) Key() bool

Key function returns key value.

func (TenantValidationError) Reason

func (e TenantValidationError) Reason() string

Reason function returns reason value.

type UnimplementedTenantServer

type UnimplementedTenantServer struct {
}

UnimplementedTenantServer must be embedded to have forward compatible implementations.

func (UnimplementedTenantServer) Application

func (UnimplementedTenantServer) BindingPhone

func (UnimplementedTenantServer) Create

func (UnimplementedTenantServer) Delete

func (UnimplementedTenantServer) FindByID

func (UnimplementedTenantServer) GetList

func (UnimplementedTenantServer) Update

func (UnimplementedTenantServer) WebsiteApplication

func (UnimplementedTenantServer) WebsitePath

type UnsafeTenantServer

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

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

type UpdateReply

type UpdateReply struct {
	// contains filtered or unexported fields
}

func (*UpdateReply) Descriptor deprecated

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

Deprecated: Use UpdateReply.ProtoReflect.Descriptor instead.

func (*UpdateReply) ProtoMessage

func (*UpdateReply) ProtoMessage()

func (*UpdateReply) ProtoReflect

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

func (*UpdateReply) Reset

func (x *UpdateReply) Reset()

func (*UpdateReply) String

func (x *UpdateReply) String() string

func (*UpdateReply) Validate

func (m *UpdateReply) Validate() error

Validate checks the field values on UpdateReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateReply) ValidateAll

func (m *UpdateReply) ValidateAll() error

ValidateAll checks the field values on UpdateReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateReplyMultiError, or nil if none found.

type UpdateReplyMultiError

type UpdateReplyMultiError []error

UpdateReplyMultiError is an error wrapping multiple validation errors returned by UpdateReply.ValidateAll() if the designated constraints aren't met.

func (UpdateReplyMultiError) AllErrors

func (m UpdateReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateReplyMultiError) Error

func (m UpdateReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UpdateReplyValidationError

type UpdateReplyValidationError struct {
	// contains filtered or unexported fields
}

UpdateReplyValidationError is the validation error returned by UpdateReply.Validate if the designated constraints aren't met.

func (UpdateReplyValidationError) Cause

Cause function returns cause value.

func (UpdateReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateReplyValidationError) ErrorName

func (e UpdateReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateReplyValidationError) Field

Field function returns field value.

func (UpdateReplyValidationError) Key

Key function returns key value.

func (UpdateReplyValidationError) Reason

Reason function returns reason value.

type UpdateRequest

type UpdateRequest struct {
	Id               string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                    //租户主键
	Name             *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`                          //租户名称
	PackageType      *string `protobuf:"bytes,3,opt,name=packageType,proto3,oneof" json:"packageType,omitempty"`            //套餐类型
	MaxNumber        *int64  `protobuf:"varint,4,opt,name=maxNumber,proto3,oneof" json:"maxNumber,omitempty"`               // 最大租户数
	MaxGroupNumber   *int64  `protobuf:"varint,5,opt,name=maxGroupNumber,proto3,oneof" json:"maxGroupNumber,omitempty"`     //最大群人数
	Status           *int32  `protobuf:"varint,6,opt,name=status,proto3,oneof" json:"status,omitempty"`                     //状态,1,可用,0未开通,2过期
	StartTime        *int64  `protobuf:"varint,7,opt,name=startTime,proto3,oneof" json:"startTime,omitempty"`               //开始时间
	EndTime          *int64  `protobuf:"varint,8,opt,name=endTime,proto3,oneof" json:"endTime,omitempty"`                   //结束时间
	Introduce        *string `protobuf:"bytes,10,opt,name=introduce,proto3,oneof" json:"introduce,omitempty"`               //租户简介
	WebsiteAddress   *string `protobuf:"bytes,11,opt,name=websiteAddress,proto3,oneof" json:"websiteAddress,omitempty"`     //网站地址
	WebsiteStatus    *int32  `protobuf:"varint,12,opt,name=websiteStatus,proto3,oneof" json:"websiteStatus,omitempty"`      //网站状态
	Code             *string `protobuf:"bytes,13,opt,name=code,proto3,oneof" json:"code,omitempty"`                         //租户名称
	PubKey           *string `protobuf:"bytes,14,opt,name=pubKey,proto3,oneof" json:"pubKey,omitempty"`                     //公钥
	PriKey           *string `protobuf:"bytes,15,opt,name=priKey,proto3,oneof" json:"priKey,omitempty"`                     //私钥
	AssociatedUserID *string `protobuf:"bytes,16,opt,name=associatedUserID,proto3,oneof" json:"associatedUserID,omitempty"` // 租户id
	Phone            *string `protobuf:"bytes,17,opt,name=phone,proto3,oneof" json:"phone,omitempty"`                       //手机号
	// contains filtered or unexported fields
}

更新租户 -------------------------------------------

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetAssociatedUserID

func (x *UpdateRequest) GetAssociatedUserID() string

func (*UpdateRequest) GetCode

func (x *UpdateRequest) GetCode() string

func (*UpdateRequest) GetEndTime

func (x *UpdateRequest) GetEndTime() int64

func (*UpdateRequest) GetId

func (x *UpdateRequest) GetId() string

func (*UpdateRequest) GetIntroduce

func (x *UpdateRequest) GetIntroduce() string
func (x *UpdateRequest) GetLogo() string

func (*UpdateRequest) GetMaxGroupNumber

func (x *UpdateRequest) GetMaxGroupNumber() int64

func (*UpdateRequest) GetMaxNumber

func (x *UpdateRequest) GetMaxNumber() int64

func (*UpdateRequest) GetName

func (x *UpdateRequest) GetName() string

func (*UpdateRequest) GetPackageType

func (x *UpdateRequest) GetPackageType() string

func (*UpdateRequest) GetPhone

func (x *UpdateRequest) GetPhone() string

func (*UpdateRequest) GetPriKey

func (x *UpdateRequest) GetPriKey() string

func (*UpdateRequest) GetPubKey

func (x *UpdateRequest) GetPubKey() string

func (*UpdateRequest) GetStartTime

func (x *UpdateRequest) GetStartTime() int64

func (*UpdateRequest) GetStatus

func (x *UpdateRequest) GetStatus() int32

func (*UpdateRequest) GetWebsiteAddress

func (x *UpdateRequest) GetWebsiteAddress() string

func (*UpdateRequest) GetWebsiteStatus

func (x *UpdateRequest) GetWebsiteStatus() int32

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

func (*UpdateRequest) Validate

func (m *UpdateRequest) Validate() error

Validate checks the field values on UpdateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateRequest) ValidateAll

func (m *UpdateRequest) ValidateAll() error

ValidateAll checks the field values on UpdateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateRequestMultiError, or nil if none found.

type UpdateRequestMultiError

type UpdateRequestMultiError []error

UpdateRequestMultiError is an error wrapping multiple validation errors returned by UpdateRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateRequestMultiError) AllErrors

func (m UpdateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRequestMultiError) Error

func (m UpdateRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UpdateRequestValidationError

type UpdateRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateRequestValidationError is the validation error returned by UpdateRequest.Validate if the designated constraints aren't met.

func (UpdateRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRequestValidationError) ErrorName

func (e UpdateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateRequestValidationError) Field

Field function returns field value.

func (UpdateRequestValidationError) Key

Key function returns key value.

func (UpdateRequestValidationError) Reason

Reason function returns reason value.

type WebsitePathReply

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

func (*WebsitePathReply) Descriptor deprecated

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

Deprecated: Use WebsitePathReply.ProtoReflect.Descriptor instead.

func (*WebsitePathReply) GetUrl

func (x *WebsitePathReply) GetUrl() string

func (*WebsitePathReply) ProtoMessage

func (*WebsitePathReply) ProtoMessage()

func (*WebsitePathReply) ProtoReflect

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

func (*WebsitePathReply) Reset

func (x *WebsitePathReply) Reset()

func (*WebsitePathReply) String

func (x *WebsitePathReply) String() string

func (*WebsitePathReply) Validate

func (m *WebsitePathReply) Validate() error

Validate checks the field values on WebsitePathReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*WebsitePathReply) ValidateAll

func (m *WebsitePathReply) ValidateAll() error

ValidateAll checks the field values on WebsitePathReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WebsitePathReplyMultiError, or nil if none found.

type WebsitePathReplyMultiError

type WebsitePathReplyMultiError []error

WebsitePathReplyMultiError is an error wrapping multiple validation errors returned by WebsitePathReply.ValidateAll() if the designated constraints aren't met.

func (WebsitePathReplyMultiError) AllErrors

func (m WebsitePathReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WebsitePathReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type WebsitePathReplyValidationError

type WebsitePathReplyValidationError struct {
	// contains filtered or unexported fields
}

WebsitePathReplyValidationError is the validation error returned by WebsitePathReply.Validate if the designated constraints aren't met.

func (WebsitePathReplyValidationError) Cause

Cause function returns cause value.

func (WebsitePathReplyValidationError) Error

Error satisfies the builtin error interface

func (WebsitePathReplyValidationError) ErrorName

ErrorName returns error name.

func (WebsitePathReplyValidationError) Field

Field function returns field value.

func (WebsitePathReplyValidationError) Key

Key function returns key value.

func (WebsitePathReplyValidationError) Reason

Reason function returns reason value.

type WebsitePathRequest

type WebsitePathRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //租户主键
	// contains filtered or unexported fields
}

根据id获取网站服务 -------------------------------------------

func (*WebsitePathRequest) Descriptor deprecated

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

Deprecated: Use WebsitePathRequest.ProtoReflect.Descriptor instead.

func (*WebsitePathRequest) GetId

func (x *WebsitePathRequest) GetId() string

func (*WebsitePathRequest) ProtoMessage

func (*WebsitePathRequest) ProtoMessage()

func (*WebsitePathRequest) ProtoReflect

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

func (*WebsitePathRequest) Reset

func (x *WebsitePathRequest) Reset()

func (*WebsitePathRequest) String

func (x *WebsitePathRequest) String() string

func (*WebsitePathRequest) Validate

func (m *WebsitePathRequest) Validate() error

Validate checks the field values on WebsitePathRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*WebsitePathRequest) ValidateAll

func (m *WebsitePathRequest) ValidateAll() error

ValidateAll checks the field values on WebsitePathRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WebsitePathRequestMultiError, or nil if none found.

type WebsitePathRequestMultiError

type WebsitePathRequestMultiError []error

WebsitePathRequestMultiError is an error wrapping multiple validation errors returned by WebsitePathRequest.ValidateAll() if the designated constraints aren't met.

func (WebsitePathRequestMultiError) AllErrors

func (m WebsitePathRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WebsitePathRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type WebsitePathRequestValidationError

type WebsitePathRequestValidationError struct {
	// contains filtered or unexported fields
}

WebsitePathRequestValidationError is the validation error returned by WebsitePathRequest.Validate if the designated constraints aren't met.

func (WebsitePathRequestValidationError) Cause

Cause function returns cause value.

func (WebsitePathRequestValidationError) Error

Error satisfies the builtin error interface

func (WebsitePathRequestValidationError) ErrorName

ErrorName returns error name.

func (WebsitePathRequestValidationError) Field

Field function returns field value.

func (WebsitePathRequestValidationError) Key

Key function returns key value.

func (WebsitePathRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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