Documentation
¶
Index ¶
- Variables
- type GetByFormUserListSdk
- func (*GetByFormUserListSdk) Descriptor() ([]byte, []int)deprecated
- func (x *GetByFormUserListSdk) GetFromUserID() string
- func (x *GetByFormUserListSdk) GetPagination() *RequestPagination
- func (*GetByFormUserListSdk) ProtoMessage()
- func (x *GetByFormUserListSdk) ProtoReflect() protoreflect.Message
- func (x *GetByFormUserListSdk) Reset()
- func (x *GetByFormUserListSdk) String() string
- func (m *GetByFormUserListSdk) Validate() error
- func (m *GetByFormUserListSdk) ValidateAll() error
- type GetByFormUserListSdkMultiError
- type GetByFormUserListSdkValidationError
- func (e GetByFormUserListSdkValidationError) Cause() error
- func (e GetByFormUserListSdkValidationError) Error() string
- func (e GetByFormUserListSdkValidationError) ErrorName() string
- func (e GetByFormUserListSdkValidationError) Field() string
- func (e GetByFormUserListSdkValidationError) Key() bool
- func (e GetByFormUserListSdkValidationError) Reason() string
- type GetByUserListSdk
- func (*GetByUserListSdk) Descriptor() ([]byte, []int)deprecated
- func (x *GetByUserListSdk) GetPagination() *RequestPagination
- func (x *GetByUserListSdk) GetUserID() string
- func (*GetByUserListSdk) ProtoMessage()
- func (x *GetByUserListSdk) ProtoReflect() protoreflect.Message
- func (x *GetByUserListSdk) Reset()
- func (x *GetByUserListSdk) String() string
- func (m *GetByUserListSdk) Validate() error
- func (m *GetByUserListSdk) ValidateAll() error
- type GetByUserListSdkMultiError
- type GetByUserListSdkValidationError
- func (e GetByUserListSdkValidationError) Cause() error
- func (e GetByUserListSdkValidationError) Error() string
- func (e GetByUserListSdkValidationError) ErrorName() string
- func (e GetByUserListSdkValidationError) Field() string
- func (e GetByUserListSdkValidationError) Key() bool
- func (e GetByUserListSdkValidationError) Reason() string
- type Pagination
- func (*Pagination) Descriptor() ([]byte, []int)deprecated
- func (x *Pagination) GetPage() int32
- func (x *Pagination) GetSize() int32
- func (*Pagination) ProtoMessage()
- func (x *Pagination) ProtoReflect() protoreflect.Message
- func (x *Pagination) Reset()
- func (x *Pagination) String() string
- func (m *Pagination) Validate() error
- func (m *Pagination) ValidateAll() error
- type PaginationMultiError
- type PaginationValidationError
- type RequestPagination
- func (*RequestPagination) Descriptor() ([]byte, []int)deprecated
- func (x *RequestPagination) GetPageNumber() int32
- func (x *RequestPagination) GetShowNumber() int32
- func (*RequestPagination) ProtoMessage()
- func (x *RequestPagination) ProtoReflect() protoreflect.Message
- func (x *RequestPagination) Reset()
- func (x *RequestPagination) String() string
- func (m *RequestPagination) Validate() error
- func (m *RequestPagination) ValidateAll() error
- type RequestPaginationMultiError
- type RequestPaginationValidationError
- func (e RequestPaginationValidationError) Cause() error
- func (e RequestPaginationValidationError) Error() string
- func (e RequestPaginationValidationError) ErrorName() string
- func (e RequestPaginationValidationError) Field() string
- func (e RequestPaginationValidationError) Key() bool
- func (e RequestPaginationValidationError) Reason() string
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetCode() int32
- func (x *Result) GetData() []byte
- func (x *Result) GetErrMsg() string
- func (x *Result) GetMsg() string
- func (x *Result) GetReason() string
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- func (m *Result) Validate() error
- func (m *Result) ValidateAll() error
- type ResultMultiError
- type ResultValidationError
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (m GetByFormUserListSdkMultiError) Error() string
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 ¶
func (e GetByFormUserListSdkValidationError) Cause() error
Cause function returns cause value.
func (GetByFormUserListSdkValidationError) Error ¶
func (e GetByFormUserListSdkValidationError) Error() string
Error satisfies the builtin error interface
func (GetByFormUserListSdkValidationError) ErrorName ¶
func (e GetByFormUserListSdkValidationError) ErrorName() string
ErrorName returns error name.
func (GetByFormUserListSdkValidationError) Field ¶
func (e GetByFormUserListSdkValidationError) Field() string
Field function returns field value.
func (GetByFormUserListSdkValidationError) Key ¶
func (e GetByFormUserListSdkValidationError) Key() bool
Key function returns key value.
func (GetByFormUserListSdkValidationError) Reason ¶
func (e GetByFormUserListSdkValidationError) Reason() string
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 ¶
func (m GetByUserListSdkMultiError) Error() string
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 ¶
func (e GetByUserListSdkValidationError) Cause() error
Cause function returns cause value.
func (GetByUserListSdkValidationError) Error ¶
func (e GetByUserListSdkValidationError) Error() string
Error satisfies the builtin error interface
func (GetByUserListSdkValidationError) ErrorName ¶
func (e GetByUserListSdkValidationError) ErrorName() string
ErrorName returns error name.
func (GetByUserListSdkValidationError) Field ¶
func (e GetByUserListSdkValidationError) Field() string
Field function returns field value.
func (GetByUserListSdkValidationError) Key ¶
func (e GetByUserListSdkValidationError) Key() bool
Key function returns key value.
func (GetByUserListSdkValidationError) Reason ¶
func (e GetByUserListSdkValidationError) Reason() string
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 ¶
func (e PaginationValidationError) Error() string
Error satisfies the builtin error interface
func (PaginationValidationError) ErrorName ¶
func (e PaginationValidationError) ErrorName() string
ErrorName returns error name.
func (PaginationValidationError) Field ¶
func (e PaginationValidationError) Field() string
Field function returns field value.
func (PaginationValidationError) Key ¶
func (e PaginationValidationError) Key() bool
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 ¶
func (m RequestPaginationMultiError) Error() string
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 ¶
func (e RequestPaginationValidationError) Cause() error
Cause function returns cause value.
func (RequestPaginationValidationError) Error ¶
func (e RequestPaginationValidationError) Error() string
Error satisfies the builtin error interface
func (RequestPaginationValidationError) ErrorName ¶
func (e RequestPaginationValidationError) ErrorName() string
ErrorName returns error name.
func (RequestPaginationValidationError) Field ¶
func (e RequestPaginationValidationError) Field() string
Field function returns field value.
func (RequestPaginationValidationError) Key ¶
func (e RequestPaginationValidationError) Key() bool
Key function returns key value.
func (RequestPaginationValidationError) Reason ¶
func (e RequestPaginationValidationError) Reason() string
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) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
func (*Result) Validate ¶
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 ¶
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.