PaymentCenter/app/models/userinfomodel/domain.go

16 lines
322 B
Go

package userinfomodel
import (
"qteam/app/http/entities/backend"
"time"
)
func (m *UserInfo) ToDomain() (do backend.UserListResponse) {
do.Id = m.Id
do.Clientuniqueidentification = m.Clientuniqueidentification
do.Mobile = m.Mobile
do.Status = m.Status
do.Createtime = m.Createtime.Format(time.DateTime)
return
}