Documentation ¶
Index ¶
- Variables
- func NewAvatarFrameEndpoints() []*api.Endpoint
- func RegisterAvatarFrameHandler(s server.Server, hdlr AvatarFrameHandler, opts ...server.HandlerOption) error
- type AvatarFrameHandler
- type AvatarFrameService
- type CreateReq
- type CreateRes
- type DeleteReq
- type DeleteRes
- type Detail
- func (*Detail) Descriptor() ([]byte, []int)deprecated
- func (x *Detail) GetCover() string
- func (x *Detail) GetCreatedAt() string
- func (x *Detail) GetId() int64
- func (x *Detail) GetLocalName() string
- func (x *Detail) GetName() string
- func (x *Detail) GetShowState() int32
- func (x *Detail) GetUpdatedAt() string
- func (*Detail) ProtoMessage()
- func (x *Detail) ProtoReflect() protoreflect.Message
- func (x *Detail) Reset()
- func (x *Detail) String() string
- type GetByIdReq
- type GetByIdRes
- type GetMultiReq
- type GetMultiRes
- type Item
- func (*Item) Descriptor() ([]byte, []int)deprecated
- func (x *Item) GetCover() string
- func (x *Item) GetId() int64
- func (x *Item) GetLocalName() string
- func (x *Item) GetName() string
- func (x *Item) GetShowName() string
- func (x *Item) GetShowState() int32
- func (*Item) ProtoMessage()
- func (x *Item) ProtoReflect() protoreflect.Message
- func (x *Item) Reset()
- func (x *Item) String() string
- type ListReq
- func (*ListReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListReq) GetCountry() string
- func (x *ListReq) GetPage() int64
- func (x *ListReq) GetSize() int64
- func (*ListReq) ProtoMessage()
- func (x *ListReq) ProtoReflect() protoreflect.Message
- func (x *ListReq) Reset()
- func (x *ListReq) String() string
- type ListRes
- func (*ListRes) Descriptor() ([]byte, []int)deprecated
- func (x *ListRes) GetList() []*Detail
- func (x *ListRes) GetPage() int64
- func (x *ListRes) GetSize() int64
- func (x *ListRes) GetTotal() int64
- func (*ListRes) ProtoMessage()
- func (x *ListRes) ProtoReflect() protoreflect.Message
- func (x *ListRes) Reset()
- func (x *ListRes) String() string
- type UpdateLocalNameReq
- func (*UpdateLocalNameReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLocalNameReq) GetCountry() string
- func (x *UpdateLocalNameReq) GetId() int64
- func (x *UpdateLocalNameReq) GetName() string
- func (*UpdateLocalNameReq) ProtoMessage()
- func (x *UpdateLocalNameReq) ProtoReflect() protoreflect.Message
- func (x *UpdateLocalNameReq) Reset()
- func (x *UpdateLocalNameReq) String() string
- type UpdateLocalNameRes
- type UpdateReq
- type UpdateReq_Detail
- func (*UpdateReq_Detail) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateReq_Detail) GetCover() string
- func (x *UpdateReq_Detail) GetId() int64
- func (x *UpdateReq_Detail) GetName() string
- func (x *UpdateReq_Detail) GetShowState() int32
- func (*UpdateReq_Detail) ProtoMessage()
- func (x *UpdateReq_Detail) ProtoReflect() protoreflect.Message
- func (x *UpdateReq_Detail) Reset()
- func (x *UpdateReq_Detail) String() string
- type UpdateRes
- type UpdateShowStateReq
- func (*UpdateShowStateReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateShowStateReq) GetId() int64
- func (x *UpdateShowStateReq) GetShowState() int32
- func (*UpdateShowStateReq) ProtoMessage()
- func (x *UpdateShowStateReq) ProtoReflect() protoreflect.Message
- func (x *UpdateShowStateReq) Reset()
- func (x *UpdateShowStateReq) String() string
- type UpdateShowStateRes
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_avatar_frame_avatar_frame_proto protoreflect.FileDescriptor
Functions ¶
func NewAvatarFrameEndpoints ¶
func RegisterAvatarFrameHandler ¶
func RegisterAvatarFrameHandler(s server.Server, hdlr AvatarFrameHandler, opts ...server.HandlerOption) error
Types ¶
type AvatarFrameHandler ¶
type AvatarFrameHandler interface { List(context.Context, *ListReq, *ListRes) error Create(context.Context, *CreateReq, *CreateRes) error Update(context.Context, *UpdateReq, *UpdateRes) error Delete(context.Context, *DeleteReq, *DeleteRes) error GetById(context.Context, *GetByIdReq, *GetByIdRes) error GetMulti(context.Context, *GetMultiReq, *GetMultiRes) error UpdateLocalName(context.Context, *UpdateLocalNameReq, *UpdateLocalNameRes) error UpdateShowState(context.Context, *UpdateShowStateReq, *UpdateShowStateRes) error }
type AvatarFrameService ¶
type AvatarFrameService interface { List(ctx context.Context, in *ListReq, opts ...client.CallOption) (*ListRes, error) Create(ctx context.Context, in *CreateReq, opts ...client.CallOption) (*CreateRes, error) Update(ctx context.Context, in *UpdateReq, opts ...client.CallOption) (*UpdateRes, error) Delete(ctx context.Context, in *DeleteReq, opts ...client.CallOption) (*DeleteRes, error) GetById(ctx context.Context, in *GetByIdReq, opts ...client.CallOption) (*GetByIdRes, error) GetMulti(ctx context.Context, in *GetMultiReq, opts ...client.CallOption) (*GetMultiRes, error) UpdateLocalName(ctx context.Context, in *UpdateLocalNameReq, opts ...client.CallOption) (*UpdateLocalNameRes, error) UpdateShowState(ctx context.Context, in *UpdateShowStateReq, opts ...client.CallOption) (*UpdateShowStateRes, error) }
func NewAvatarFrameService ¶
func NewAvatarFrameService(name string, c client.Client) AvatarFrameService
type CreateReq ¶
type CreateReq struct { Item *Detail `protobuf:"bytes,1,opt,name=item,proto3" json:"item"` // contains filtered or unexported fields }
func (*CreateReq) Descriptor
deprecated
func (*CreateReq) ProtoMessage ¶
func (*CreateReq) ProtoMessage()
func (*CreateReq) ProtoReflect ¶
func (x *CreateReq) ProtoReflect() protoreflect.Message
type CreateRes ¶
type CreateRes struct { Item *Detail `protobuf:"bytes,1,opt,name=item,proto3" json:"item"` // contains filtered or unexported fields }
func (*CreateRes) Descriptor
deprecated
func (*CreateRes) ProtoMessage ¶
func (*CreateRes) ProtoMessage()
func (*CreateRes) ProtoReflect ¶
func (x *CreateRes) ProtoReflect() protoreflect.Message
type DeleteReq ¶
type DeleteReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` // contains filtered or unexported fields }
func (*DeleteReq) Descriptor
deprecated
func (*DeleteReq) ProtoMessage ¶
func (*DeleteReq) ProtoMessage()
func (*DeleteReq) ProtoReflect ¶
func (x *DeleteReq) ProtoReflect() protoreflect.Message
type DeleteRes ¶
type DeleteRes struct {
// contains filtered or unexported fields
}
func (*DeleteRes) Descriptor
deprecated
func (*DeleteRes) ProtoMessage ¶
func (*DeleteRes) ProtoMessage()
func (*DeleteRes) ProtoReflect ¶
func (x *DeleteRes) ProtoReflect() protoreflect.Message
type Detail ¶
type Detail struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` // ID Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` // 名称 LocalName string `protobuf:"bytes,3,opt,name=local_name,json=localName,proto3" json:"local_name"` // 本地化名称 Cover string `protobuf:"bytes,4,opt,name=cover,proto3" json:"cover"` // 封面(缩略图) ShowState int32 `protobuf:"varint,8,opt,name=show_state,json=showState,proto3" json:"show_state"` // 1隐藏 2显示 CreatedAt string `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at"` UpdatedAt string `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at"` // contains filtered or unexported fields }
func (*Detail) Descriptor
deprecated
func (*Detail) GetCreatedAt ¶
func (*Detail) GetLocalName ¶
func (*Detail) GetShowState ¶
func (*Detail) GetUpdatedAt ¶
func (*Detail) ProtoMessage ¶
func (*Detail) ProtoMessage()
func (*Detail) ProtoReflect ¶
func (x *Detail) ProtoReflect() protoreflect.Message
type GetByIdReq ¶
type GetByIdReq struct { Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country"` // 所属国家 Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` // contains filtered or unexported fields }
func (*GetByIdReq) Descriptor
deprecated
func (*GetByIdReq) Descriptor() ([]byte, []int)
Deprecated: Use GetByIdReq.ProtoReflect.Descriptor instead.
func (*GetByIdReq) GetCountry ¶
func (x *GetByIdReq) GetCountry() string
func (*GetByIdReq) GetId ¶
func (x *GetByIdReq) GetId() int64
func (*GetByIdReq) ProtoMessage ¶
func (*GetByIdReq) ProtoMessage()
func (*GetByIdReq) ProtoReflect ¶
func (x *GetByIdReq) ProtoReflect() protoreflect.Message
func (*GetByIdReq) Reset ¶
func (x *GetByIdReq) Reset()
func (*GetByIdReq) String ¶
func (x *GetByIdReq) String() string
type GetByIdRes ¶
type GetByIdRes struct { Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item"` // contains filtered or unexported fields }
func (*GetByIdRes) Descriptor
deprecated
func (*GetByIdRes) Descriptor() ([]byte, []int)
Deprecated: Use GetByIdRes.ProtoReflect.Descriptor instead.
func (*GetByIdRes) GetItem ¶
func (x *GetByIdRes) GetItem() *Item
func (*GetByIdRes) ProtoMessage ¶
func (*GetByIdRes) ProtoMessage()
func (*GetByIdRes) ProtoReflect ¶
func (x *GetByIdRes) ProtoReflect() protoreflect.Message
func (*GetByIdRes) Reset ¶
func (x *GetByIdRes) Reset()
func (*GetByIdRes) String ¶
func (x *GetByIdRes) String() string
type GetMultiReq ¶
type GetMultiReq struct { Id []int64 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id"` Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country"` // 所属国家 // contains filtered or unexported fields }
func (*GetMultiReq) Descriptor
deprecated
func (*GetMultiReq) Descriptor() ([]byte, []int)
Deprecated: Use GetMultiReq.ProtoReflect.Descriptor instead.
func (*GetMultiReq) GetCountry ¶
func (x *GetMultiReq) GetCountry() string
func (*GetMultiReq) GetId ¶
func (x *GetMultiReq) GetId() []int64
func (*GetMultiReq) ProtoMessage ¶
func (*GetMultiReq) ProtoMessage()
func (*GetMultiReq) ProtoReflect ¶
func (x *GetMultiReq) ProtoReflect() protoreflect.Message
func (*GetMultiReq) Reset ¶
func (x *GetMultiReq) Reset()
func (*GetMultiReq) String ¶
func (x *GetMultiReq) String() string
type GetMultiRes ¶
type GetMultiRes struct { AvatarFrameMap map[int64]*Item `` /* 184-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetMultiRes) Descriptor
deprecated
func (*GetMultiRes) Descriptor() ([]byte, []int)
Deprecated: Use GetMultiRes.ProtoReflect.Descriptor instead.
func (*GetMultiRes) GetAvatarFrameMap ¶
func (x *GetMultiRes) GetAvatarFrameMap() map[int64]*Item
func (*GetMultiRes) ProtoMessage ¶
func (*GetMultiRes) ProtoMessage()
func (*GetMultiRes) ProtoReflect ¶
func (x *GetMultiRes) ProtoReflect() protoreflect.Message
func (*GetMultiRes) Reset ¶
func (x *GetMultiRes) Reset()
func (*GetMultiRes) String ¶
func (x *GetMultiRes) String() string
type Item ¶
type Item struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` // ID Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` // 名称 Cover string `protobuf:"bytes,3,opt,name=cover,proto3" json:"cover"` // 封面(缩略图) LocalName string `protobuf:"bytes,4,opt,name=local_name,json=localName,proto3" json:"local_name"` // 本地化名称 ShowState int32 `protobuf:"varint,15,opt,name=show_state,json=showState,proto3" json:"show_state"` // 1隐藏 2显示 // contains filtered or unexported fields }
func (*Item) Descriptor
deprecated
func (*Item) GetLocalName ¶
func (*Item) GetShowName ¶
func (*Item) GetShowState ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
type ListReq ¶
type ListReq struct { Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country"` // 国家 Page int64 `protobuf:"varint,40,opt,name=page,proto3" json:"page"` // 页码 Size int64 `protobuf:"varint,41,opt,name=size,proto3" json:"size"` // 单页记录数 // contains filtered or unexported fields }
func (*ListReq) Descriptor
deprecated
func (*ListReq) GetCountry ¶
func (*ListReq) ProtoMessage ¶
func (*ListReq) ProtoMessage()
func (*ListReq) ProtoReflect ¶
func (x *ListReq) ProtoReflect() protoreflect.Message
type ListRes ¶
type ListRes struct { List []*Detail `protobuf:"bytes,1,rep,name=list,proto3" json:"list"` Page int64 `protobuf:"varint,2,opt,name=page,proto3" json:"page"` // 当前页码 Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size"` // 单页条数 Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total"` // 符合条件的总记录数量 // contains filtered or unexported fields }
func (*ListRes) Descriptor
deprecated
func (*ListRes) ProtoMessage ¶
func (*ListRes) ProtoMessage()
func (*ListRes) ProtoReflect ¶
func (x *ListRes) ProtoReflect() protoreflect.Message
type UpdateLocalNameReq ¶
type UpdateLocalNameReq struct { Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country"` // 国家 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` // 本地化名称 Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id"` // // contains filtered or unexported fields }
func (*UpdateLocalNameReq) Descriptor
deprecated
func (*UpdateLocalNameReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLocalNameReq.ProtoReflect.Descriptor instead.
func (*UpdateLocalNameReq) GetCountry ¶
func (x *UpdateLocalNameReq) GetCountry() string
func (*UpdateLocalNameReq) GetId ¶
func (x *UpdateLocalNameReq) GetId() int64
func (*UpdateLocalNameReq) GetName ¶
func (x *UpdateLocalNameReq) GetName() string
func (*UpdateLocalNameReq) ProtoMessage ¶
func (*UpdateLocalNameReq) ProtoMessage()
func (*UpdateLocalNameReq) ProtoReflect ¶
func (x *UpdateLocalNameReq) ProtoReflect() protoreflect.Message
func (*UpdateLocalNameReq) Reset ¶
func (x *UpdateLocalNameReq) Reset()
func (*UpdateLocalNameReq) String ¶
func (x *UpdateLocalNameReq) String() string
type UpdateLocalNameRes ¶
type UpdateLocalNameRes struct {
// contains filtered or unexported fields
}
func (*UpdateLocalNameRes) Descriptor
deprecated
func (*UpdateLocalNameRes) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLocalNameRes.ProtoReflect.Descriptor instead.
func (*UpdateLocalNameRes) ProtoMessage ¶
func (*UpdateLocalNameRes) ProtoMessage()
func (*UpdateLocalNameRes) ProtoReflect ¶
func (x *UpdateLocalNameRes) ProtoReflect() protoreflect.Message
func (*UpdateLocalNameRes) Reset ¶
func (x *UpdateLocalNameRes) Reset()
func (*UpdateLocalNameRes) String ¶
func (x *UpdateLocalNameRes) String() string
type UpdateReq ¶
type UpdateReq struct { Item *UpdateReq_Detail `protobuf:"bytes,1,opt,name=item,proto3" json:"item"` // contains filtered or unexported fields }
func (*UpdateReq) Descriptor
deprecated
func (*UpdateReq) GetItem ¶
func (x *UpdateReq) GetItem() *UpdateReq_Detail
func (*UpdateReq) ProtoMessage ¶
func (*UpdateReq) ProtoMessage()
func (*UpdateReq) ProtoReflect ¶
func (x *UpdateReq) ProtoReflect() protoreflect.Message
type UpdateReq_Detail ¶
type UpdateReq_Detail struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` // ID Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` // 名称 Cover string `protobuf:"bytes,4,opt,name=cover,proto3" json:"cover"` // 封面(缩略图) ShowState int32 `protobuf:"varint,8,opt,name=show_state,json=showState,proto3" json:"show_state"` // 1隐藏 2显示 // contains filtered or unexported fields }
func (*UpdateReq_Detail) Descriptor
deprecated
func (*UpdateReq_Detail) Descriptor() ([]byte, []int)
Deprecated: Use UpdateReq_Detail.ProtoReflect.Descriptor instead.
func (*UpdateReq_Detail) GetCover ¶
func (x *UpdateReq_Detail) GetCover() string
func (*UpdateReq_Detail) GetId ¶
func (x *UpdateReq_Detail) GetId() int64
func (*UpdateReq_Detail) GetName ¶
func (x *UpdateReq_Detail) GetName() string
func (*UpdateReq_Detail) GetShowState ¶
func (x *UpdateReq_Detail) GetShowState() int32
func (*UpdateReq_Detail) ProtoMessage ¶
func (*UpdateReq_Detail) ProtoMessage()
func (*UpdateReq_Detail) ProtoReflect ¶
func (x *UpdateReq_Detail) ProtoReflect() protoreflect.Message
func (*UpdateReq_Detail) Reset ¶
func (x *UpdateReq_Detail) Reset()
func (*UpdateReq_Detail) String ¶
func (x *UpdateReq_Detail) String() string
type UpdateRes ¶
type UpdateRes struct { Item *Detail `protobuf:"bytes,1,opt,name=item,proto3" json:"item"` // contains filtered or unexported fields }
func (*UpdateRes) Descriptor
deprecated
func (*UpdateRes) ProtoMessage ¶
func (*UpdateRes) ProtoMessage()
func (*UpdateRes) ProtoReflect ¶
func (x *UpdateRes) ProtoReflect() protoreflect.Message
type UpdateShowStateReq ¶
type UpdateShowStateReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` ShowState int32 `protobuf:"varint,2,opt,name=show_state,json=showState,proto3" json:"show_state"` // contains filtered or unexported fields }
func (*UpdateShowStateReq) Descriptor
deprecated
func (*UpdateShowStateReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateShowStateReq.ProtoReflect.Descriptor instead.
func (*UpdateShowStateReq) GetId ¶
func (x *UpdateShowStateReq) GetId() int64
func (*UpdateShowStateReq) GetShowState ¶
func (x *UpdateShowStateReq) GetShowState() int32
func (*UpdateShowStateReq) ProtoMessage ¶
func (*UpdateShowStateReq) ProtoMessage()
func (*UpdateShowStateReq) ProtoReflect ¶
func (x *UpdateShowStateReq) ProtoReflect() protoreflect.Message
func (*UpdateShowStateReq) Reset ¶
func (x *UpdateShowStateReq) Reset()
func (*UpdateShowStateReq) String ¶
func (x *UpdateShowStateReq) String() string
type UpdateShowStateRes ¶
type UpdateShowStateRes struct {
// contains filtered or unexported fields
}
func (*UpdateShowStateRes) Descriptor
deprecated
func (*UpdateShowStateRes) Descriptor() ([]byte, []int)
Deprecated: Use UpdateShowStateRes.ProtoReflect.Descriptor instead.
func (*UpdateShowStateRes) ProtoMessage ¶
func (*UpdateShowStateRes) ProtoMessage()
func (*UpdateShowStateRes) ProtoReflect ¶
func (x *UpdateShowStateRes) ProtoReflect() protoreflect.Message
func (*UpdateShowStateRes) Reset ¶
func (x *UpdateShowStateRes) Reset()
func (*UpdateShowStateRes) String ¶
func (x *UpdateShowStateRes) String() string
Click to show internal directories.
Click to hide internal directories.