Documentation
¶
Index ¶
- Variables
- type Notice
- type NoticeRepo
- type NoticeUseCase
- func (uc *NoticeUseCase) Count(ctx context.Context) (int64, error)
- func (uc *NoticeUseCase) Create(ctx context.Context, notice *Notice) error
- func (uc *NoticeUseCase) Delete(ctx context.Context, id int64) error
- func (uc *NoticeUseCase) GetById(ctx context.Context, id int64) (*Notice, error)
- func (uc *NoticeUseCase) GetList(ctx context.Context, index, size int64) (list []*Notice, count int64, err error)
- func (uc *NoticeUseCase) Update(ctx context.Context, notice *Notice) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewNoticeUseCase)
Functions ¶
This section is empty.
Types ¶
type NoticeRepo ¶
type NoticeRepo interface {
GetList(ctx context.Context, index, size int64) ([]*Notice, error)
Count(ctx context.Context) (int64, error)
GetById(ctx context.Context, id int64) (*Notice, error)
UpdateById(ctx context.Context, notice *Notice) error
Insert(ctx context.Context, notice *Notice) error
DeleteById(ctx context.Context, id int64) error
}
type NoticeUseCase ¶
type NoticeUseCase struct {
// contains filtered or unexported fields
}
func NewNoticeUseCase ¶
func NewNoticeUseCase(repo NoticeRepo, logger log.Logger) *NoticeUseCase
func (*NoticeUseCase) Create ¶
func (uc *NoticeUseCase) Create(ctx context.Context, notice *Notice) error
Click to show internal directories.
Click to hide internal directories.