Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorLoginFailed(format string, args ...interface{}) *errors.Error
- func ErrorRegisterFailed(format string, args ...interface{}) *errors.Error
- func ErrorUnknownError(format string, args ...interface{}) *errors.Error
- func IsLoginFailed(err error) bool
- func IsRegisterFailed(err error) bool
- func IsUnknownError(err error) bool
- func RegisterTaoKeHTTPServer(s *http.Server, srv TaoKeHTTPServer)
- func RegisterTaoKeServer(s grpc.ServiceRegistrar, srv TaoKeServer)
- type Carouse
- func (*Carouse) Descriptor() ([]byte, []int)deprecated
- func (x *Carouse) GetActivityId() string
- func (x *Carouse) GetLink() string
- func (x *Carouse) GetSourceType() int64
- func (x *Carouse) GetTopicId() int64
- func (x *Carouse) GetTopicImage() string
- func (x *Carouse) GetTopicName() string
- func (*Carouse) ProtoMessage()
- func (x *Carouse) ProtoReflect() protoreflect.Message
- func (x *Carouse) Reset()
- func (x *Carouse) String() string
- func (m *Carouse) Validate() error
- func (m *Carouse) ValidateAll() error
- type CarouseMultiError
- type CarouseValidationError
- type Categories
- func (*Categories) Descriptor() ([]byte, []int)deprecated
- func (x *Categories) GetCid() int64
- func (x *Categories) GetCname() string
- func (x *Categories) GetCpic() string
- func (x *Categories) GetSubcategories() []*Subcategories
- func (*Categories) ProtoMessage()
- func (x *Categories) ProtoReflect() protoreflect.Message
- func (x *Categories) Reset()
- func (x *Categories) String() string
- func (m *Categories) Validate() error
- func (m *Categories) ValidateAll() error
- type CategoriesMultiError
- type CategoriesValidationError
- type GetCarouseListReq
- func (*GetCarouseListReq) Descriptor() ([]byte, []int)deprecated
- func (*GetCarouseListReq) ProtoMessage()
- func (x *GetCarouseListReq) ProtoReflect() protoreflect.Message
- func (x *GetCarouseListReq) Reset()
- func (x *GetCarouseListReq) String() string
- func (m *GetCarouseListReq) Validate() error
- func (m *GetCarouseListReq) ValidateAll() error
- type GetCarouseListReqMultiError
- type GetCarouseListReqValidationError
- func (e GetCarouseListReqValidationError) Cause() error
- func (e GetCarouseListReqValidationError) Error() string
- func (e GetCarouseListReqValidationError) ErrorName() string
- func (e GetCarouseListReqValidationError) Field() string
- func (e GetCarouseListReqValidationError) Key() bool
- func (e GetCarouseListReqValidationError) Reason() string
- type GetCarouseListResp
- func (*GetCarouseListResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetCarouseListResp) GetData() []*Carouse
- func (*GetCarouseListResp) ProtoMessage()
- func (x *GetCarouseListResp) ProtoReflect() protoreflect.Message
- func (x *GetCarouseListResp) Reset()
- func (x *GetCarouseListResp) String() string
- func (m *GetCarouseListResp) Validate() error
- func (m *GetCarouseListResp) ValidateAll() error
- type GetCarouseListRespMultiError
- type GetCarouseListRespValidationError
- func (e GetCarouseListRespValidationError) Cause() error
- func (e GetCarouseListRespValidationError) Error() string
- func (e GetCarouseListRespValidationError) ErrorName() string
- func (e GetCarouseListRespValidationError) Field() string
- func (e GetCarouseListRespValidationError) Key() bool
- func (e GetCarouseListRespValidationError) Reason() string
- type GetSuperCategoryReq
- func (*GetSuperCategoryReq) Descriptor() ([]byte, []int)deprecated
- func (*GetSuperCategoryReq) ProtoMessage()
- func (x *GetSuperCategoryReq) ProtoReflect() protoreflect.Message
- func (x *GetSuperCategoryReq) Reset()
- func (x *GetSuperCategoryReq) String() string
- func (m *GetSuperCategoryReq) Validate() error
- func (m *GetSuperCategoryReq) ValidateAll() error
- type GetSuperCategoryReqMultiError
- type GetSuperCategoryReqValidationError
- func (e GetSuperCategoryReqValidationError) Cause() error
- func (e GetSuperCategoryReqValidationError) Error() string
- func (e GetSuperCategoryReqValidationError) ErrorName() string
- func (e GetSuperCategoryReqValidationError) Field() string
- func (e GetSuperCategoryReqValidationError) Key() bool
- func (e GetSuperCategoryReqValidationError) Reason() string
- type GetSuperCategoryResp
- func (*GetSuperCategoryResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetSuperCategoryResp) GetData() []*Categories
- func (*GetSuperCategoryResp) ProtoMessage()
- func (x *GetSuperCategoryResp) ProtoReflect() protoreflect.Message
- func (x *GetSuperCategoryResp) Reset()
- func (x *GetSuperCategoryResp) String() string
- func (m *GetSuperCategoryResp) Validate() error
- func (m *GetSuperCategoryResp) ValidateAll() error
- type GetSuperCategoryRespMultiError
- type GetSuperCategoryRespValidationError
- func (e GetSuperCategoryRespValidationError) Cause() error
- func (e GetSuperCategoryRespValidationError) Error() string
- func (e GetSuperCategoryRespValidationError) ErrorName() string
- func (e GetSuperCategoryRespValidationError) Field() string
- func (e GetSuperCategoryRespValidationError) Key() bool
- func (e GetSuperCategoryRespValidationError) Reason() string
- type Subcategories
- func (*Subcategories) Descriptor() ([]byte, []int)deprecated
- func (x *Subcategories) GetScpic() string
- func (x *Subcategories) GetSubcid() int64
- func (x *Subcategories) GetSubcname() string
- func (*Subcategories) ProtoMessage()
- func (x *Subcategories) ProtoReflect() protoreflect.Message
- func (x *Subcategories) Reset()
- func (x *Subcategories) String() string
- func (m *Subcategories) Validate() error
- func (m *Subcategories) ValidateAll() error
- type SubcategoriesMultiError
- type SubcategoriesValidationError
- func (e SubcategoriesValidationError) Cause() error
- func (e SubcategoriesValidationError) Error() string
- func (e SubcategoriesValidationError) ErrorName() string
- func (e SubcategoriesValidationError) Field() string
- func (e SubcategoriesValidationError) Key() bool
- func (e SubcategoriesValidationError) Reason() string
- type TaoKeClient
- type TaoKeHTTPClient
- type TaoKeHTTPClientImpl
- type TaoKeHTTPServer
- type TaoKeServer
- type TaokeInterfaceErrorReason
- func (TaokeInterfaceErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x TaokeInterfaceErrorReason) Enum() *TaokeInterfaceErrorReason
- func (TaokeInterfaceErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x TaokeInterfaceErrorReason) Number() protoreflect.EnumNumber
- func (x TaokeInterfaceErrorReason) String() string
- func (TaokeInterfaceErrorReason) Type() protoreflect.EnumType
- type UnimplementedTaoKeServer
- type UnsafeTaoKeServer
Constants ¶
const OperationTaoKeGetCarouseList = "/api.taoke.interface.v1.TaoKe/GetCarouseList"
const OperationTaoKeGetSuperCategory = "/api.taoke.interface.v1.TaoKe/GetSuperCategory"
Variables ¶
var ( TaokeInterfaceErrorReason_name = map[int32]string{ 0: "UNKNOWN_ERROR", 1: "LOGIN_FAILED", 2: "REGISTER_FAILED", } TaokeInterfaceErrorReason_value = map[string]int32{ "UNKNOWN_ERROR": 0, "LOGIN_FAILED": 1, "REGISTER_FAILED": 2, } )
Enum value maps for TaokeInterfaceErrorReason.
var File_taoke_interface_v1_taoke_error_proto protoreflect.FileDescriptor
var File_taoke_interface_v1_taoke_proto protoreflect.FileDescriptor
var TaoKe_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.taoke.interface.v1.TaoKe", HandlerType: (*TaoKeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCarouseList", Handler: _TaoKe_GetCarouseList_Handler, }, { MethodName: "GetSuperCategory", Handler: _TaoKe_GetSuperCategory_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "taoke/interface/v1/taoke.proto", }
TaoKe_ServiceDesc is the grpc.ServiceDesc for TaoKe service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorLoginFailed ¶
func ErrorRegisterFailed ¶
func ErrorUnknownError ¶
func IsLoginFailed ¶
func IsRegisterFailed ¶
func IsUnknownError ¶
func RegisterTaoKeHTTPServer ¶
func RegisterTaoKeHTTPServer(s *http.Server, srv TaoKeHTTPServer)
func RegisterTaoKeServer ¶
func RegisterTaoKeServer(s grpc.ServiceRegistrar, srv TaoKeServer)
Types ¶
type Carouse ¶
type Carouse struct { SourceType int64 `protobuf:"varint,1,opt,name=sourceType,proto3" json:"sourceType,omitempty"` TopicName string `protobuf:"bytes,2,opt,name=topicName,proto3" json:"topicName,omitempty"` TopicImage string `protobuf:"bytes,3,opt,name=topicImage,proto3" json:"topicImage,omitempty"` TopicId int64 `protobuf:"varint,4,opt,name=topicId,proto3" json:"topicId,omitempty"` Link string `protobuf:"bytes,5,opt,name=link,proto3" json:"link,omitempty"` ActivityId string `protobuf:"bytes,6,opt,name=activityId,proto3" json:"activityId,omitempty"` // contains filtered or unexported fields }
func (*Carouse) Descriptor
deprecated
func (*Carouse) GetActivityId ¶
func (*Carouse) GetSourceType ¶
func (*Carouse) GetTopicId ¶
func (*Carouse) GetTopicImage ¶
func (*Carouse) GetTopicName ¶
func (*Carouse) ProtoMessage ¶
func (*Carouse) ProtoMessage()
func (*Carouse) ProtoReflect ¶
func (x *Carouse) ProtoReflect() protoreflect.Message
func (*Carouse) Validate ¶
Validate checks the field values on Carouse 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 (*Carouse) ValidateAll ¶
ValidateAll checks the field values on Carouse 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 CarouseMultiError, or nil if none found.
type CarouseMultiError ¶
type CarouseMultiError []error
CarouseMultiError is an error wrapping multiple validation errors returned by Carouse.ValidateAll() if the designated constraints aren't met.
func (CarouseMultiError) AllErrors ¶
func (m CarouseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CarouseMultiError) Error ¶
func (m CarouseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CarouseValidationError ¶
type CarouseValidationError struct {
// contains filtered or unexported fields
}
CarouseValidationError is the validation error returned by Carouse.Validate if the designated constraints aren't met.
func (CarouseValidationError) Cause ¶
func (e CarouseValidationError) Cause() error
Cause function returns cause value.
func (CarouseValidationError) Error ¶
func (e CarouseValidationError) Error() string
Error satisfies the builtin error interface
func (CarouseValidationError) ErrorName ¶
func (e CarouseValidationError) ErrorName() string
ErrorName returns error name.
func (CarouseValidationError) Field ¶
func (e CarouseValidationError) Field() string
Field function returns field value.
func (CarouseValidationError) Key ¶
func (e CarouseValidationError) Key() bool
Key function returns key value.
func (CarouseValidationError) Reason ¶
func (e CarouseValidationError) Reason() string
Reason function returns reason value.
type Categories ¶
type Categories struct { Cid int64 `protobuf:"varint,1,opt,name=cid,proto3" json:"cid,omitempty"` Cname string `protobuf:"bytes,2,opt,name=cname,proto3" json:"cname,omitempty"` Cpic string `protobuf:"bytes,3,opt,name=cpic,proto3" json:"cpic,omitempty"` Subcategories []*Subcategories `protobuf:"bytes,4,rep,name=subcategories,proto3" json:"subcategories,omitempty"` // contains filtered or unexported fields }
func (*Categories) Descriptor
deprecated
func (*Categories) Descriptor() ([]byte, []int)
Deprecated: Use Categories.ProtoReflect.Descriptor instead.
func (*Categories) GetCid ¶
func (x *Categories) GetCid() int64
func (*Categories) GetCname ¶
func (x *Categories) GetCname() string
func (*Categories) GetCpic ¶
func (x *Categories) GetCpic() string
func (*Categories) GetSubcategories ¶
func (x *Categories) GetSubcategories() []*Subcategories
func (*Categories) ProtoMessage ¶
func (*Categories) ProtoMessage()
func (*Categories) ProtoReflect ¶
func (x *Categories) ProtoReflect() protoreflect.Message
func (*Categories) Reset ¶
func (x *Categories) Reset()
func (*Categories) String ¶
func (x *Categories) String() string
func (*Categories) Validate ¶
func (m *Categories) Validate() error
Validate checks the field values on Categories 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 (*Categories) ValidateAll ¶
func (m *Categories) ValidateAll() error
ValidateAll checks the field values on Categories 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 CategoriesMultiError, or nil if none found.
type CategoriesMultiError ¶
type CategoriesMultiError []error
CategoriesMultiError is an error wrapping multiple validation errors returned by Categories.ValidateAll() if the designated constraints aren't met.
func (CategoriesMultiError) AllErrors ¶
func (m CategoriesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CategoriesMultiError) Error ¶
func (m CategoriesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CategoriesValidationError ¶
type CategoriesValidationError struct {
// contains filtered or unexported fields
}
CategoriesValidationError is the validation error returned by Categories.Validate if the designated constraints aren't met.
func (CategoriesValidationError) Cause ¶
func (e CategoriesValidationError) Cause() error
Cause function returns cause value.
func (CategoriesValidationError) Error ¶
func (e CategoriesValidationError) Error() string
Error satisfies the builtin error interface
func (CategoriesValidationError) ErrorName ¶
func (e CategoriesValidationError) ErrorName() string
ErrorName returns error name.
func (CategoriesValidationError) Field ¶
func (e CategoriesValidationError) Field() string
Field function returns field value.
func (CategoriesValidationError) Key ¶
func (e CategoriesValidationError) Key() bool
Key function returns key value.
func (CategoriesValidationError) Reason ¶
func (e CategoriesValidationError) Reason() string
Reason function returns reason value.
type GetCarouseListReq ¶
type GetCarouseListReq struct {
// contains filtered or unexported fields
}
func (*GetCarouseListReq) Descriptor
deprecated
func (*GetCarouseListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetCarouseListReq.ProtoReflect.Descriptor instead.
func (*GetCarouseListReq) ProtoMessage ¶
func (*GetCarouseListReq) ProtoMessage()
func (*GetCarouseListReq) ProtoReflect ¶
func (x *GetCarouseListReq) ProtoReflect() protoreflect.Message
func (*GetCarouseListReq) Reset ¶
func (x *GetCarouseListReq) Reset()
func (*GetCarouseListReq) String ¶
func (x *GetCarouseListReq) String() string
func (*GetCarouseListReq) Validate ¶
func (m *GetCarouseListReq) Validate() error
Validate checks the field values on GetCarouseListReq 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 (*GetCarouseListReq) ValidateAll ¶
func (m *GetCarouseListReq) ValidateAll() error
ValidateAll checks the field values on GetCarouseListReq 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 GetCarouseListReqMultiError, or nil if none found.
type GetCarouseListReqMultiError ¶
type GetCarouseListReqMultiError []error
GetCarouseListReqMultiError is an error wrapping multiple validation errors returned by GetCarouseListReq.ValidateAll() if the designated constraints aren't met.
func (GetCarouseListReqMultiError) AllErrors ¶
func (m GetCarouseListReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCarouseListReqMultiError) Error ¶
func (m GetCarouseListReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCarouseListReqValidationError ¶
type GetCarouseListReqValidationError struct {
// contains filtered or unexported fields
}
GetCarouseListReqValidationError is the validation error returned by GetCarouseListReq.Validate if the designated constraints aren't met.
func (GetCarouseListReqValidationError) Cause ¶
func (e GetCarouseListReqValidationError) Cause() error
Cause function returns cause value.
func (GetCarouseListReqValidationError) Error ¶
func (e GetCarouseListReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetCarouseListReqValidationError) ErrorName ¶
func (e GetCarouseListReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetCarouseListReqValidationError) Field ¶
func (e GetCarouseListReqValidationError) Field() string
Field function returns field value.
func (GetCarouseListReqValidationError) Key ¶
func (e GetCarouseListReqValidationError) Key() bool
Key function returns key value.
func (GetCarouseListReqValidationError) Reason ¶
func (e GetCarouseListReqValidationError) Reason() string
Reason function returns reason value.
type GetCarouseListResp ¶
type GetCarouseListResp struct { Data []*Carouse `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetCarouseListResp) Descriptor
deprecated
func (*GetCarouseListResp) Descriptor() ([]byte, []int)
Deprecated: Use GetCarouseListResp.ProtoReflect.Descriptor instead.
func (*GetCarouseListResp) GetData ¶
func (x *GetCarouseListResp) GetData() []*Carouse
func (*GetCarouseListResp) ProtoMessage ¶
func (*GetCarouseListResp) ProtoMessage()
func (*GetCarouseListResp) ProtoReflect ¶
func (x *GetCarouseListResp) ProtoReflect() protoreflect.Message
func (*GetCarouseListResp) Reset ¶
func (x *GetCarouseListResp) Reset()
func (*GetCarouseListResp) String ¶
func (x *GetCarouseListResp) String() string
func (*GetCarouseListResp) Validate ¶
func (m *GetCarouseListResp) Validate() error
Validate checks the field values on GetCarouseListResp 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 (*GetCarouseListResp) ValidateAll ¶
func (m *GetCarouseListResp) ValidateAll() error
ValidateAll checks the field values on GetCarouseListResp 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 GetCarouseListRespMultiError, or nil if none found.
type GetCarouseListRespMultiError ¶
type GetCarouseListRespMultiError []error
GetCarouseListRespMultiError is an error wrapping multiple validation errors returned by GetCarouseListResp.ValidateAll() if the designated constraints aren't met.
func (GetCarouseListRespMultiError) AllErrors ¶
func (m GetCarouseListRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCarouseListRespMultiError) Error ¶
func (m GetCarouseListRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCarouseListRespValidationError ¶
type GetCarouseListRespValidationError struct {
// contains filtered or unexported fields
}
GetCarouseListRespValidationError is the validation error returned by GetCarouseListResp.Validate if the designated constraints aren't met.
func (GetCarouseListRespValidationError) Cause ¶
func (e GetCarouseListRespValidationError) Cause() error
Cause function returns cause value.
func (GetCarouseListRespValidationError) Error ¶
func (e GetCarouseListRespValidationError) Error() string
Error satisfies the builtin error interface
func (GetCarouseListRespValidationError) ErrorName ¶
func (e GetCarouseListRespValidationError) ErrorName() string
ErrorName returns error name.
func (GetCarouseListRespValidationError) Field ¶
func (e GetCarouseListRespValidationError) Field() string
Field function returns field value.
func (GetCarouseListRespValidationError) Key ¶
func (e GetCarouseListRespValidationError) Key() bool
Key function returns key value.
func (GetCarouseListRespValidationError) Reason ¶
func (e GetCarouseListRespValidationError) Reason() string
Reason function returns reason value.
type GetSuperCategoryReq ¶
type GetSuperCategoryReq struct {
// contains filtered or unexported fields
}
func (*GetSuperCategoryReq) Descriptor
deprecated
func (*GetSuperCategoryReq) Descriptor() ([]byte, []int)
Deprecated: Use GetSuperCategoryReq.ProtoReflect.Descriptor instead.
func (*GetSuperCategoryReq) ProtoMessage ¶
func (*GetSuperCategoryReq) ProtoMessage()
func (*GetSuperCategoryReq) ProtoReflect ¶
func (x *GetSuperCategoryReq) ProtoReflect() protoreflect.Message
func (*GetSuperCategoryReq) Reset ¶
func (x *GetSuperCategoryReq) Reset()
func (*GetSuperCategoryReq) String ¶
func (x *GetSuperCategoryReq) String() string
func (*GetSuperCategoryReq) Validate ¶
func (m *GetSuperCategoryReq) Validate() error
Validate checks the field values on GetSuperCategoryReq 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 (*GetSuperCategoryReq) ValidateAll ¶
func (m *GetSuperCategoryReq) ValidateAll() error
ValidateAll checks the field values on GetSuperCategoryReq 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 GetSuperCategoryReqMultiError, or nil if none found.
type GetSuperCategoryReqMultiError ¶
type GetSuperCategoryReqMultiError []error
GetSuperCategoryReqMultiError is an error wrapping multiple validation errors returned by GetSuperCategoryReq.ValidateAll() if the designated constraints aren't met.
func (GetSuperCategoryReqMultiError) AllErrors ¶
func (m GetSuperCategoryReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetSuperCategoryReqMultiError) Error ¶
func (m GetSuperCategoryReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetSuperCategoryReqValidationError ¶
type GetSuperCategoryReqValidationError struct {
// contains filtered or unexported fields
}
GetSuperCategoryReqValidationError is the validation error returned by GetSuperCategoryReq.Validate if the designated constraints aren't met.
func (GetSuperCategoryReqValidationError) Cause ¶
func (e GetSuperCategoryReqValidationError) Cause() error
Cause function returns cause value.
func (GetSuperCategoryReqValidationError) Error ¶
func (e GetSuperCategoryReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetSuperCategoryReqValidationError) ErrorName ¶
func (e GetSuperCategoryReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetSuperCategoryReqValidationError) Field ¶
func (e GetSuperCategoryReqValidationError) Field() string
Field function returns field value.
func (GetSuperCategoryReqValidationError) Key ¶
func (e GetSuperCategoryReqValidationError) Key() bool
Key function returns key value.
func (GetSuperCategoryReqValidationError) Reason ¶
func (e GetSuperCategoryReqValidationError) Reason() string
Reason function returns reason value.
type GetSuperCategoryResp ¶
type GetSuperCategoryResp struct { Data []*Categories `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetSuperCategoryResp) Descriptor
deprecated
func (*GetSuperCategoryResp) Descriptor() ([]byte, []int)
Deprecated: Use GetSuperCategoryResp.ProtoReflect.Descriptor instead.
func (*GetSuperCategoryResp) GetData ¶
func (x *GetSuperCategoryResp) GetData() []*Categories
func (*GetSuperCategoryResp) ProtoMessage ¶
func (*GetSuperCategoryResp) ProtoMessage()
func (*GetSuperCategoryResp) ProtoReflect ¶
func (x *GetSuperCategoryResp) ProtoReflect() protoreflect.Message
func (*GetSuperCategoryResp) Reset ¶
func (x *GetSuperCategoryResp) Reset()
func (*GetSuperCategoryResp) String ¶
func (x *GetSuperCategoryResp) String() string
func (*GetSuperCategoryResp) Validate ¶
func (m *GetSuperCategoryResp) Validate() error
Validate checks the field values on GetSuperCategoryResp 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 (*GetSuperCategoryResp) ValidateAll ¶
func (m *GetSuperCategoryResp) ValidateAll() error
ValidateAll checks the field values on GetSuperCategoryResp 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 GetSuperCategoryRespMultiError, or nil if none found.
type GetSuperCategoryRespMultiError ¶
type GetSuperCategoryRespMultiError []error
GetSuperCategoryRespMultiError is an error wrapping multiple validation errors returned by GetSuperCategoryResp.ValidateAll() if the designated constraints aren't met.
func (GetSuperCategoryRespMultiError) AllErrors ¶
func (m GetSuperCategoryRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetSuperCategoryRespMultiError) Error ¶
func (m GetSuperCategoryRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetSuperCategoryRespValidationError ¶
type GetSuperCategoryRespValidationError struct {
// contains filtered or unexported fields
}
GetSuperCategoryRespValidationError is the validation error returned by GetSuperCategoryResp.Validate if the designated constraints aren't met.
func (GetSuperCategoryRespValidationError) Cause ¶
func (e GetSuperCategoryRespValidationError) Cause() error
Cause function returns cause value.
func (GetSuperCategoryRespValidationError) Error ¶
func (e GetSuperCategoryRespValidationError) Error() string
Error satisfies the builtin error interface
func (GetSuperCategoryRespValidationError) ErrorName ¶
func (e GetSuperCategoryRespValidationError) ErrorName() string
ErrorName returns error name.
func (GetSuperCategoryRespValidationError) Field ¶
func (e GetSuperCategoryRespValidationError) Field() string
Field function returns field value.
func (GetSuperCategoryRespValidationError) Key ¶
func (e GetSuperCategoryRespValidationError) Key() bool
Key function returns key value.
func (GetSuperCategoryRespValidationError) Reason ¶
func (e GetSuperCategoryRespValidationError) Reason() string
Reason function returns reason value.
type Subcategories ¶
type Subcategories struct { Scpic string `protobuf:"bytes,1,opt,name=scpic,proto3" json:"scpic,omitempty"` Subcid int64 `protobuf:"varint,2,opt,name=subcid,proto3" json:"subcid,omitempty"` Subcname string `protobuf:"bytes,3,opt,name=subcname,proto3" json:"subcname,omitempty"` // contains filtered or unexported fields }
func (*Subcategories) Descriptor
deprecated
func (*Subcategories) Descriptor() ([]byte, []int)
Deprecated: Use Subcategories.ProtoReflect.Descriptor instead.
func (*Subcategories) GetScpic ¶
func (x *Subcategories) GetScpic() string
func (*Subcategories) GetSubcid ¶
func (x *Subcategories) GetSubcid() int64
func (*Subcategories) GetSubcname ¶
func (x *Subcategories) GetSubcname() string
func (*Subcategories) ProtoMessage ¶
func (*Subcategories) ProtoMessage()
func (*Subcategories) ProtoReflect ¶
func (x *Subcategories) ProtoReflect() protoreflect.Message
func (*Subcategories) Reset ¶
func (x *Subcategories) Reset()
func (*Subcategories) String ¶
func (x *Subcategories) String() string
func (*Subcategories) Validate ¶
func (m *Subcategories) Validate() error
Validate checks the field values on Subcategories 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 (*Subcategories) ValidateAll ¶
func (m *Subcategories) ValidateAll() error
ValidateAll checks the field values on Subcategories 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 SubcategoriesMultiError, or nil if none found.
type SubcategoriesMultiError ¶
type SubcategoriesMultiError []error
SubcategoriesMultiError is an error wrapping multiple validation errors returned by Subcategories.ValidateAll() if the designated constraints aren't met.
func (SubcategoriesMultiError) AllErrors ¶
func (m SubcategoriesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SubcategoriesMultiError) Error ¶
func (m SubcategoriesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SubcategoriesValidationError ¶
type SubcategoriesValidationError struct {
// contains filtered or unexported fields
}
SubcategoriesValidationError is the validation error returned by Subcategories.Validate if the designated constraints aren't met.
func (SubcategoriesValidationError) Cause ¶
func (e SubcategoriesValidationError) Cause() error
Cause function returns cause value.
func (SubcategoriesValidationError) Error ¶
func (e SubcategoriesValidationError) Error() string
Error satisfies the builtin error interface
func (SubcategoriesValidationError) ErrorName ¶
func (e SubcategoriesValidationError) ErrorName() string
ErrorName returns error name.
func (SubcategoriesValidationError) Field ¶
func (e SubcategoriesValidationError) Field() string
Field function returns field value.
func (SubcategoriesValidationError) Key ¶
func (e SubcategoriesValidationError) Key() bool
Key function returns key value.
func (SubcategoriesValidationError) Reason ¶
func (e SubcategoriesValidationError) Reason() string
Reason function returns reason value.
type TaoKeClient ¶
type TaoKeClient interface { GetCarouseList(ctx context.Context, in *GetCarouseListReq, opts ...grpc.CallOption) (*GetCarouseListResp, error) GetSuperCategory(ctx context.Context, in *GetSuperCategoryReq, opts ...grpc.CallOption) (*GetSuperCategoryResp, error) }
TaoKeClient is the client API for TaoKe 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 NewTaoKeClient ¶
func NewTaoKeClient(cc grpc.ClientConnInterface) TaoKeClient
type TaoKeHTTPClient ¶
type TaoKeHTTPClient interface { GetCarouseList(ctx context.Context, req *GetCarouseListReq, opts ...http.CallOption) (rsp *GetCarouseListResp, err error) GetSuperCategory(ctx context.Context, req *GetSuperCategoryReq, opts ...http.CallOption) (rsp *GetSuperCategoryResp, err error) }
func NewTaoKeHTTPClient ¶
func NewTaoKeHTTPClient(client *http.Client) TaoKeHTTPClient
type TaoKeHTTPClientImpl ¶
type TaoKeHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*TaoKeHTTPClientImpl) GetCarouseList ¶
func (c *TaoKeHTTPClientImpl) GetCarouseList(ctx context.Context, in *GetCarouseListReq, opts ...http.CallOption) (*GetCarouseListResp, error)
func (*TaoKeHTTPClientImpl) GetSuperCategory ¶
func (c *TaoKeHTTPClientImpl) GetSuperCategory(ctx context.Context, in *GetSuperCategoryReq, opts ...http.CallOption) (*GetSuperCategoryResp, error)
type TaoKeHTTPServer ¶
type TaoKeHTTPServer interface { GetCarouseList(context.Context, *GetCarouseListReq) (*GetCarouseListResp, error) GetSuperCategory(context.Context, *GetSuperCategoryReq) (*GetSuperCategoryResp, error) }
type TaoKeServer ¶
type TaoKeServer interface { GetCarouseList(context.Context, *GetCarouseListReq) (*GetCarouseListResp, error) GetSuperCategory(context.Context, *GetSuperCategoryReq) (*GetSuperCategoryResp, error) // contains filtered or unexported methods }
TaoKeServer is the server API for TaoKe service. All implementations must embed UnimplementedTaoKeServer for forward compatibility
type TaokeInterfaceErrorReason ¶
type TaokeInterfaceErrorReason int32
const ( TaokeInterfaceErrorReason_UNKNOWN_ERROR TaokeInterfaceErrorReason = 0 TaokeInterfaceErrorReason_LOGIN_FAILED TaokeInterfaceErrorReason = 1 TaokeInterfaceErrorReason_REGISTER_FAILED TaokeInterfaceErrorReason = 2 )
func (TaokeInterfaceErrorReason) Descriptor ¶
func (TaokeInterfaceErrorReason) Descriptor() protoreflect.EnumDescriptor
func (TaokeInterfaceErrorReason) Enum ¶
func (x TaokeInterfaceErrorReason) Enum() *TaokeInterfaceErrorReason
func (TaokeInterfaceErrorReason) EnumDescriptor
deprecated
func (TaokeInterfaceErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use TaokeInterfaceErrorReason.Descriptor instead.
func (TaokeInterfaceErrorReason) Number ¶
func (x TaokeInterfaceErrorReason) Number() protoreflect.EnumNumber
func (TaokeInterfaceErrorReason) String ¶
func (x TaokeInterfaceErrorReason) String() string
func (TaokeInterfaceErrorReason) Type ¶
func (TaokeInterfaceErrorReason) Type() protoreflect.EnumType
type UnimplementedTaoKeServer ¶
type UnimplementedTaoKeServer struct { }
UnimplementedTaoKeServer must be embedded to have forward compatible implementations.
func (UnimplementedTaoKeServer) GetCarouseList ¶
func (UnimplementedTaoKeServer) GetCarouseList(context.Context, *GetCarouseListReq) (*GetCarouseListResp, error)
func (UnimplementedTaoKeServer) GetSuperCategory ¶
func (UnimplementedTaoKeServer) GetSuperCategory(context.Context, *GetSuperCategoryReq) (*GetSuperCategoryResp, error)
type UnsafeTaoKeServer ¶
type UnsafeTaoKeServer interface {
// contains filtered or unexported methods
}
UnsafeTaoKeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TaoKeServer will result in compilation errors.