MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / convertToDomainLotteryDraw

Function convertToDomainLotteryDraw

internal/repository/lotteryDraw.go:273–283  ·  view source on GitHub ↗

convertToDomainLotteryDraw 将 dao.LotteryDraw 转换为 domain.LotteryDraw

(d dao.LotteryDraw)

Source from the content-addressed store, hash-verified

271
272// convertToDomainLotteryDraw 将 dao.LotteryDraw 转换为 domain.LotteryDraw
273func convertToDomainLotteryDraw(d dao.LotteryDraw) domain.LotteryDraw {
274 return domain.LotteryDraw{
275 ID: d.ID,
276 Name: d.Name,
277 Description: d.Description,
278 StartTime: d.StartTime,
279 EndTime: d.EndTime,
280 Status: d.Status,
281 Participants: convertToDomainParticipants(d.Participants),
282 }
283}
284
285// convertToDomainLotteryDraws 将 dao.LotteryDraw 列表转换为 domain.LotteryDraw 列表
286func convertToDomainLotteryDraws(daoLotteryDraws []dao.LotteryDraw) []domain.LotteryDraw {

Callers 2

GetLotteryDrawByIDMethod · 0.85

Calls 1

Tested by

no test coverage detected