You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
830 B

  1. package service
  2. import (
  3. "context"
  4. v1 "practice_ArticleVote_Go/api/vote_record/v1"
  5. "practice_ArticleVote_Go/internal/logic/vote_record"
  6. )
  7. type IVoteRecord interface {
  8. GetAllArticleList(ctx context.Context, req *v1.GetAllArticleReq) (res *v1.GetAllArticleListRes, err error)
  9. ExportVoteDetail(ctx context.Context, req *v1.GetExportFileReq) (res *v1.GetExportFileRes, err error)
  10. GetIndex(ctx context.Context, req *v1.GetIndexReq) (res *v1.GetIndexRes, err error)
  11. AddRecord(ctx context.Context, req *v1.AddRecordReq) (res *v1.AddRecordRes, err error)
  12. GetVote(ctx context.Context, req *v1.GetVoteReq) (res *v1.GetVoteRes, err error)
  13. GetVoteDetail(ctx context.Context, req *v1.GetVoteDetailReq) (res *v1.GetVoteDetailListRes, err error)
  14. }
  15. func NewVoteRecordService() IVoteRecord {
  16. return vote_record.NewVoteRecordLogic()
  17. }