...
|
...
|
@@ -2,6 +2,7 @@ package dto |
|
|
|
|
|
import (
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/domain"
|
|
|
"time"
|
|
|
)
|
|
|
|
|
|
type UserDto struct {
|
...
|
...
|
@@ -32,6 +33,8 @@ type UserDto struct { |
|
|
// 部门
|
|
|
Department *domain.Department `json:"department,omitempty"`
|
|
|
Im *domain.Im `json:"im,omitempty"`
|
|
|
// 创建时间
|
|
|
CreatedAt time.Time `json:"createdAt,omitempty"`
|
|
|
}
|
|
|
|
|
|
type Company struct {
|
...
|
...
|
@@ -77,5 +80,6 @@ func (dto *UserDto) LoadDto(user *domain.User, company *domain.Company) error { |
|
|
}
|
|
|
dto.Organization = user.Organization
|
|
|
dto.Department = user.Department
|
|
|
dto.CreatedAt = user.CreatedAt
|
|
|
return nil
|
|
|
} |
...
|
...
|
|