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.
|
|
package service
import ( "VoteManage_Go/api/v1/vote" "VoteManage_Go/internal/model/dto" "context" "github.com/gogf/gf/v2/net/ghttp")
type ( IVote interface { //条件筛选
GetVoteByCondition(ctx context.Context, req *vote.GetVoteDetailListReq) (votes []*dto.VoteDto, total int, err error) // 导出拥有卡券的用户列表
ExportVote(r *ghttp.Request, req *vote.GetVoteDetailListReq) // 投票活动列表
GetActivityList(ctx context.Context, req *vote.GetActivityListReq) (activityList []*dto.Activity, total int, err error) })
var ( localVote IVote)
func Vote() IVote { if localVote == nil { panic("implement not found for interface ICoupon, forgot register?") } return localVote}
func RegisterVote(i IVote) { localVote = i}
|