v2

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_net_v2_net_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GetByFormUserListSdk

type GetByFormUserListSdk struct {
	FromUserID string             `protobuf:"bytes,1,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"`
	Pagination *RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

根据用户获取列表 兼容老版本

func (*GetByFormUserListSdk) Descriptor deprecated

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

Deprecated: Use GetByFormUserListSdk.ProtoReflect.Descriptor instead.

func (*GetByFormUserListSdk) GetFromUserID

func (x *GetByFormUserListSdk) GetFromUserID() string

func (*GetByFormUserListSdk) GetPagination

func (x *GetByFormUserListSdk) GetPagination() *RequestPagination

func (*GetByFormUserListSdk) ProtoMessage

func (*GetByFormUserListSdk) ProtoMessage()

func (*GetByFormUserListSdk) ProtoReflect

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

func (*GetByFormUserListSdk) Reset

func (x *GetByFormUserListSdk) Reset()

func (*GetByFormUserListSdk) String

func (x *GetByFormUserListSdk) String() string

func (*GetByFormUserListSdk) Validate

func (m *GetByFormUserListSdk) Validate() error

Validate checks the field values on GetByFormUserListSdk 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 (*GetByFormUserListSdk) ValidateAll

func (m *GetByFormUserListSdk) ValidateAll() error

ValidateAll checks the field values on GetByFormUserListSdk 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 GetByFormUserListSdkMultiError, or nil if none found.

type GetByFormUserListSdkMultiError

type GetByFormUserListSdkMultiError []error

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

func (GetByFormUserListSdkMultiError) AllErrors

func (m GetByFormUserListSdkMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetByFormUserListSdkMultiError) Error

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

type GetByFormUserListSdkValidationError

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

GetByFormUserListSdkValidationError is the validation error returned by GetByFormUserListSdk.Validate if the designated constraints aren't met.

func (GetByFormUserListSdkValidationError) Cause

Cause function returns cause value.

func (GetByFormUserListSdkValidationError) Error

Error satisfies the builtin error interface

func (GetByFormUserListSdkValidationError) ErrorName

ErrorName returns error name.

func (GetByFormUserListSdkValidationError) Field

Field function returns field value.

func (GetByFormUserListSdkValidationError) Key

Key function returns key value.

func (GetByFormUserListSdkValidationError) Reason

Reason function returns reason value.

type GetByUserListSdk

type GetByUserListSdk struct {
	UserID     string             `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	Pagination *RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

根据用户获取列表 兼容老版本

func (*GetByUserListSdk) Descriptor deprecated

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

Deprecated: Use GetByUserListSdk.ProtoReflect.Descriptor instead.

func (*GetByUserListSdk) GetPagination

func (x *GetByUserListSdk) GetPagination() *RequestPagination

func (*GetByUserListSdk) GetUserID

func (x *GetByUserListSdk) GetUserID() string

func (*GetByUserListSdk) ProtoMessage

func (*GetByUserListSdk) ProtoMessage()

func (*GetByUserListSdk) ProtoReflect

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

func (*GetByUserListSdk) Reset

func (x *GetByUserListSdk) Reset()

func (*GetByUserListSdk) String

func (x *GetByUserListSdk) String() string

func (*GetByUserListSdk) Validate

func (m *GetByUserListSdk) Validate() error

Validate checks the field values on GetByUserListSdk 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 (*GetByUserListSdk) ValidateAll

func (m *GetByUserListSdk) ValidateAll() error

ValidateAll checks the field values on GetByUserListSdk 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 GetByUserListSdkMultiError, or nil if none found.

type GetByUserListSdkMultiError

type GetByUserListSdkMultiError []error

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

func (GetByUserListSdkMultiError) AllErrors

func (m GetByUserListSdkMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetByUserListSdkMultiError) Error

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

type GetByUserListSdkValidationError

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

GetByUserListSdkValidationError is the validation error returned by GetByUserListSdk.Validate if the designated constraints aren't met.

func (GetByUserListSdkValidationError) Cause

Cause function returns cause value.

func (GetByUserListSdkValidationError) Error

Error satisfies the builtin error interface

func (GetByUserListSdkValidationError) ErrorName

ErrorName returns error name.

func (GetByUserListSdkValidationError) Field

Field function returns field value.

func (GetByUserListSdkValidationError) Key

Key function returns key value.

func (GetByUserListSdkValidationError) Reason

Reason function returns reason value.

type Pagination

type Pagination struct {
	Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

分页

func (*Pagination) Descriptor deprecated

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

Deprecated: Use Pagination.ProtoReflect.Descriptor instead.

func (*Pagination) GetPage

func (x *Pagination) GetPage() int32

func (*Pagination) GetSize

func (x *Pagination) GetSize() int32

func (*Pagination) ProtoMessage

func (*Pagination) ProtoMessage()

func (*Pagination) ProtoReflect

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

func (*Pagination) Reset

func (x *Pagination) Reset()

func (*Pagination) String

func (x *Pagination) String() string

func (*Pagination) Validate

func (m *Pagination) Validate() error

Validate checks the field values on Pagination 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 (*Pagination) ValidateAll

func (m *Pagination) ValidateAll() error

ValidateAll checks the field values on Pagination 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 PaginationMultiError, or nil if none found.

type PaginationMultiError

type PaginationMultiError []error

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

func (PaginationMultiError) AllErrors

func (m PaginationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PaginationMultiError) Error

func (m PaginationMultiError) Error() string

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

type PaginationValidationError

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

PaginationValidationError is the validation error returned by Pagination.Validate if the designated constraints aren't met.

func (PaginationValidationError) Cause

func (e PaginationValidationError) Cause() error

Cause function returns cause value.

func (PaginationValidationError) Error

Error satisfies the builtin error interface

func (PaginationValidationError) ErrorName

func (e PaginationValidationError) ErrorName() string

ErrorName returns error name.

func (PaginationValidationError) Field

Field function returns field value.

func (PaginationValidationError) Key

Key function returns key value.

func (PaginationValidationError) Reason

func (e PaginationValidationError) Reason() string

Reason function returns reason value.

type RequestPagination

type RequestPagination struct {
	PageNumber int32 `protobuf:"varint,1,opt,name=pageNumber,proto3" json:"pageNumber,omitempty"`
	ShowNumber int32 `protobuf:"varint,2,opt,name=showNumber,proto3" json:"showNumber,omitempty"`
	// contains filtered or unexported fields
}

兼容历史版本

func (*RequestPagination) Descriptor deprecated

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

Deprecated: Use RequestPagination.ProtoReflect.Descriptor instead.

func (*RequestPagination) GetPageNumber

func (x *RequestPagination) GetPageNumber() int32

func (*RequestPagination) GetShowNumber

func (x *RequestPagination) GetShowNumber() int32

func (*RequestPagination) ProtoMessage

func (*RequestPagination) ProtoMessage()

func (*RequestPagination) ProtoReflect

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

func (*RequestPagination) Reset

func (x *RequestPagination) Reset()

func (*RequestPagination) String

func (x *RequestPagination) String() string

func (*RequestPagination) Validate

func (m *RequestPagination) Validate() error

Validate checks the field values on RequestPagination 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 (*RequestPagination) ValidateAll

func (m *RequestPagination) ValidateAll() error

ValidateAll checks the field values on RequestPagination 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 RequestPaginationMultiError, or nil if none found.

type RequestPaginationMultiError

type RequestPaginationMultiError []error

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

func (RequestPaginationMultiError) AllErrors

func (m RequestPaginationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestPaginationMultiError) Error

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

type RequestPaginationValidationError

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

RequestPaginationValidationError is the validation error returned by RequestPagination.Validate if the designated constraints aren't met.

func (RequestPaginationValidationError) Cause

Cause function returns cause value.

func (RequestPaginationValidationError) Error

Error satisfies the builtin error interface

func (RequestPaginationValidationError) ErrorName

ErrorName returns error name.

func (RequestPaginationValidationError) Field

Field function returns field value.

func (RequestPaginationValidationError) Key

Key function returns key value.

func (RequestPaginationValidationError) Reason

Reason function returns reason value.

type Result

type Result 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"`       //消息
	Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` //原因
	ErrMsg string `protobuf:"bytes,4,opt,name=errMsg,proto3" json:"errMsg,omitempty"` //错误信息
	Data   []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`     //数据
	// contains filtered or unexported fields
}

请求的返回

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetCode

func (x *Result) GetCode() int32

func (*Result) GetData

func (x *Result) GetData() []byte

func (*Result) GetErrMsg

func (x *Result) GetErrMsg() string

func (*Result) GetMsg

func (x *Result) GetMsg() string

func (*Result) GetReason

func (x *Result) GetReason() string

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

func (*Result) Validate

func (m *Result) Validate() error

Validate checks the field values on Result 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 (*Result) ValidateAll

func (m *Result) ValidateAll() error

ValidateAll checks the field values on Result 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 ResultMultiError, or nil if none found.

type ResultMultiError

type ResultMultiError []error

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

func (ResultMultiError) AllErrors

func (m ResultMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResultMultiError) Error

func (m ResultMultiError) Error() string

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

type ResultValidationError

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

ResultValidationError is the validation error returned by Result.Validate if the designated constraints aren't met.

func (ResultValidationError) Cause

func (e ResultValidationError) Cause() error

Cause function returns cause value.

func (ResultValidationError) Error

func (e ResultValidationError) Error() string

Error satisfies the builtin error interface

func (ResultValidationError) ErrorName

func (e ResultValidationError) ErrorName() string

ErrorName returns error name.

func (ResultValidationError) Field

func (e ResultValidationError) Field() string

Field function returns field value.

func (ResultValidationError) Key

func (e ResultValidationError) Key() bool

Key function returns key value.

func (ResultValidationError) Reason

func (e ResultValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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