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

Function toDomainUser

internal/repository/user.go:207–216  ·  view source on GitHub ↗

toDomainUser 将dao层对象转为领域层对象

(u dao.User)

Source from the content-addressed store, hash-verified

205
206// toDomainUser 将dao层对象转为领域层对象
207func toDomainUser(u dao.User) domain.User {
208 return domain.User{
209 ID: u.ID,
210 Password: u.PasswordHash,
211 Username: u.Username,
212 CreateTime: u.CreateTime,
213 UpdatedTime: u.UpdatedTime,
214 Deleted: u.Deleted,
215 }
216}

Callers 4

ChangePasswordMethod · 0.85
FindByIDMethod · 0.85
FindByPhoneMethod · 0.85
FindByUsernameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected