aggregation.go 483 字节
package protocol

import (
	"opp/models"
	"time"
)

//聚合数据

//用户基础聚合
type UserBaseInfoAggregation struct {
	User        *models.User
	Company     *models.Company
	Departments []*Department
	Positions   []*Position
	UserCompany *models.UserCompany
}

type Position struct {
	PositionId int       `orm:"column(position_id)`
	Name       string    `orm:"column(name)`
	Relation   string    `orm:"column(relation)"`
	CreateTime time.Time `orm:"column(create_time)"`
}