Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { // Save 保存数据,case 绝对不会为 nil Save(ctx context.Context, ca *domain.Case) (int64, error) Publish(ctx context.Context, ca *domain.Case) (int64, error) List(ctx context.Context, offset int, limit int) ([]domain.Case, int64, error) PubList(ctx context.Context, offset int, limit int) ([]domain.Case, int64, error) GetPubByIDs(ctx context.Context, ids []int64) ([]domain.Case, error) Detail(ctx context.Context, caseId int64) (domain.Case, error) PubDetail(ctx context.Context, caseId int64) (domain.Case, error) }
func NewService ¶
func NewService(repo repository.CaseRepo) Service
Click to show internal directories.
Click to hide internal directories.