biz

package
v0.0.0-...-f12ea2b Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_biz_do_proto protoreflect.FileDescriptor
View Source
var ProviderSet = wire.NewSet(NewMovieUsecase)

ProviderSet is biz providers.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Id          uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title       string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Director    string `protobuf:"bytes,4,opt,name=director,proto3" json:"director,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata) Descriptor deprecated

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

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetDescription

func (x *Metadata) GetDescription() string

func (*Metadata) GetDirector

func (x *Metadata) GetDirector() string

func (*Metadata) GetId

func (x *Metadata) GetId() uint64

func (*Metadata) GetTitle

func (x *Metadata) GetTitle() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

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

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type Movie

type Movie struct {
	RecordId   string `protobuf:"bytes,1,opt,name=record_id,json=recordId,proto3" json:"record_id,omitempty"`
	RecordType string `protobuf:"bytes,2,opt,name=record_type,json=recordType,proto3" json:"record_type,omitempty"`
	UserId     string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Value      uint32 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Movie) Descriptor deprecated

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

Deprecated: Use Movie.ProtoReflect.Descriptor instead.

func (*Movie) GetRecordId

func (x *Movie) GetRecordId() string

func (*Movie) GetRecordType

func (x *Movie) GetRecordType() string

func (*Movie) GetUserId

func (x *Movie) GetUserId() string

func (*Movie) GetValue

func (x *Movie) GetValue() uint32

func (*Movie) ProtoMessage

func (*Movie) ProtoMessage()

func (*Movie) ProtoReflect

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

func (*Movie) Reset

func (x *Movie) Reset()

func (*Movie) String

func (x *Movie) String() string

type MovieDetail

type MovieDetail struct {
	Rating   float64   `protobuf:"fixed64,1,opt,name=rating,proto3" json:"rating,omitempty"`
	Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*MovieDetail) Descriptor deprecated

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

Deprecated: Use MovieDetail.ProtoReflect.Descriptor instead.

func (*MovieDetail) GetMetadata

func (x *MovieDetail) GetMetadata() *Metadata

func (*MovieDetail) GetRating

func (x *MovieDetail) GetRating() float64

func (*MovieDetail) ProtoMessage

func (*MovieDetail) ProtoMessage()

func (*MovieDetail) ProtoReflect

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

func (*MovieDetail) Reset

func (x *MovieDetail) Reset()

func (*MovieDetail) String

func (x *MovieDetail) String() string

type MovieRepo

type MovieRepo interface {
	ListMovies(ctx context.Context, recordType, recordID string) (movies []*Movie, err error)
	CreateMovie(ctx context.Context, recordType, recordID string, movie *Movie) (err error)
}

type MovieUsecase

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

func (*MovieUsecase) GetMovieDetail

func (m *MovieUsecase) GetMovieDetail(ctx context.Context, ID uint64) (resp *MovieDetail, err error)

Jump to

Keyboard shortcuts

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