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.

19 lines
722 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. ExportVoteDetail(ctx context.Context, req *v1.GetExportFileReq) (res *v1.GetExportFileRes, err error)
  9. GetIndex(ctx context.Context, req *v1.GetIndexReq) (res *v1.GetIndexRes, err error)
  10. AddRecord(ctx context.Context, req *v1.AddRecordReq) (res *v1.AddRecordRes, err error)
  11. GetVote(ctx context.Context, req *v1.GetVoteReq) (res *v1.GetVoteRes, err error)
  12. GetVoteDetail(ctx context.Context, req *v1.GetVoteDetailReq) (res *v1.GetVoteDetailListRes, err error)
  13. }
  14. func NewVoteRecordService() IVoteRecord {
  15. return vote_record.NewVoteRecordLogic()
  16. }