avatar_frame

package
v0.0.0-...-b08fcc5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_avatar_frame_avatar_frame_proto protoreflect.FileDescriptor

Functions

func NewAvatarFrameEndpoints

func NewAvatarFrameEndpoints() []*api.Endpoint

func RegisterAvatarFrameHandler

func RegisterAvatarFrameHandler(s server.Server, hdlr AvatarFrameHandler, opts ...server.HandlerOption) error

Types

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) Descriptor() ([]byte, []int)

Deprecated: Use CreateReq.ProtoReflect.Descriptor instead.

func (*CreateReq) GetItem

func (x *CreateReq) GetItem() *Detail

func (*CreateReq) ProtoMessage

func (*CreateReq) ProtoMessage()

func (*CreateReq) ProtoReflect

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

func (*CreateReq) Reset

func (x *CreateReq) Reset()

func (*CreateReq) String

func (x *CreateReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use CreateRes.ProtoReflect.Descriptor instead.

func (*CreateRes) GetItem

func (x *CreateRes) GetItem() *Detail

func (*CreateRes) ProtoMessage

func (*CreateRes) ProtoMessage()

func (*CreateRes) ProtoReflect

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

func (*CreateRes) Reset

func (x *CreateRes) Reset()

func (*CreateRes) String

func (x *CreateRes) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use DeleteReq.ProtoReflect.Descriptor instead.

func (*DeleteReq) GetId

func (x *DeleteReq) GetId() int64

func (*DeleteReq) ProtoMessage

func (*DeleteReq) ProtoMessage()

func (*DeleteReq) ProtoReflect

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

func (*DeleteReq) Reset

func (x *DeleteReq) Reset()

func (*DeleteReq) String

func (x *DeleteReq) String() string

type DeleteRes

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

func (*DeleteRes) Descriptor deprecated

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

Deprecated: Use DeleteRes.ProtoReflect.Descriptor instead.

func (*DeleteRes) ProtoMessage

func (*DeleteRes) ProtoMessage()

func (*DeleteRes) ProtoReflect

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

func (*DeleteRes) Reset

func (x *DeleteRes) Reset()

func (*DeleteRes) String

func (x *DeleteRes) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Detail.ProtoReflect.Descriptor instead.

func (*Detail) GetCover

func (x *Detail) GetCover() string

func (*Detail) GetCreatedAt

func (x *Detail) GetCreatedAt() string

func (*Detail) GetId

func (x *Detail) GetId() int64

func (*Detail) GetLocalName

func (x *Detail) GetLocalName() string

func (*Detail) GetName

func (x *Detail) GetName() string

func (*Detail) GetShowState

func (x *Detail) GetShowState() int32

func (*Detail) GetUpdatedAt

func (x *Detail) GetUpdatedAt() string

func (*Detail) ProtoMessage

func (*Detail) ProtoMessage()

func (*Detail) ProtoReflect

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

func (*Detail) Reset

func (x *Detail) Reset()

func (*Detail) String

func (x *Detail) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetCover

func (x *Item) GetCover() string

func (*Item) GetId

func (x *Item) GetId() int64

func (*Item) GetLocalName

func (x *Item) GetLocalName() string

func (*Item) GetName

func (x *Item) GetName() string

func (*Item) GetShowName

func (x *Item) GetShowName() string

func (*Item) GetShowState

func (x *Item) GetShowState() int32

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use ListReq.ProtoReflect.Descriptor instead.

func (*ListReq) GetCountry

func (x *ListReq) GetCountry() string

func (*ListReq) GetPage

func (x *ListReq) GetPage() int64

func (*ListReq) GetSize

func (x *ListReq) GetSize() int64

func (*ListReq) ProtoMessage

func (*ListReq) ProtoMessage()

func (*ListReq) ProtoReflect

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

func (*ListReq) Reset

func (x *ListReq) Reset()

func (*ListReq) String

func (x *ListReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use ListRes.ProtoReflect.Descriptor instead.

func (*ListRes) GetList

func (x *ListRes) GetList() []*Detail

func (*ListRes) GetPage

func (x *ListRes) GetPage() int64

func (*ListRes) GetSize

func (x *ListRes) GetSize() int64

func (*ListRes) GetTotal

func (x *ListRes) GetTotal() int64

func (*ListRes) ProtoMessage

func (*ListRes) ProtoMessage()

func (*ListRes) ProtoReflect

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

func (*ListRes) Reset

func (x *ListRes) Reset()

func (*ListRes) String

func (x *ListRes) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UpdateReq.ProtoReflect.Descriptor instead.

func (*UpdateReq) GetItem

func (x *UpdateReq) GetItem() *UpdateReq_Detail

func (*UpdateReq) ProtoMessage

func (*UpdateReq) ProtoMessage()

func (*UpdateReq) ProtoReflect

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

func (*UpdateReq) Reset

func (x *UpdateReq) Reset()

func (*UpdateReq) String

func (x *UpdateReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UpdateRes.ProtoReflect.Descriptor instead.

func (*UpdateRes) GetItem

func (x *UpdateRes) GetItem() *Detail

func (*UpdateRes) ProtoMessage

func (*UpdateRes) ProtoMessage()

func (*UpdateRes) ProtoReflect

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

func (*UpdateRes) Reset

func (x *UpdateRes) Reset()

func (*UpdateRes) String

func (x *UpdateRes) String() string

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

Jump to

Keyboard shortcuts

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