aggregation.go
367 字节
package protocol
import "opp/models"
//聚合数据
//用户基础聚合
type UserBaseInfoAggregation struct {
User *models.User
Company *models.Company
Department []*Department
Position []*Position
UserCompany *models.UserCompany
}
type Position struct {
PositionId int `orm:"column(position_id)`
Name string `orm:"column(name)`
}