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
20 lines
830 B
package service
|
|
|
|
import (
|
|
"context"
|
|
v1 "practice_ArticleVote_Go/api/vote_record/v1"
|
|
"practice_ArticleVote_Go/internal/logic/vote_record"
|
|
)
|
|
|
|
type IVoteRecord interface {
|
|
GetAllArticleList(ctx context.Context, req *v1.GetAllArticleReq) (res *v1.GetAllArticleListRes, err error)
|
|
ExportVoteDetail(ctx context.Context, req *v1.GetExportFileReq) (res *v1.GetExportFileRes, err error)
|
|
GetIndex(ctx context.Context, req *v1.GetIndexReq) (res *v1.GetIndexRes, err error)
|
|
AddRecord(ctx context.Context, req *v1.AddRecordReq) (res *v1.AddRecordRes, err error)
|
|
GetVote(ctx context.Context, req *v1.GetVoteReq) (res *v1.GetVoteRes, err error)
|
|
GetVoteDetail(ctx context.Context, req *v1.GetVoteDetailReq) (res *v1.GetVoteDetailListRes, err error)
|
|
}
|
|
|
|
func NewVoteRecordService() IVoteRecord {
|
|
return vote_record.NewVoteRecordLogic()
|
|
}
|