aggregation.go 486 字节
package protocol

import "opp/models"

//聚合数据

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

type Department struct {
	DepartmentId int    `orm:"column(department_id)`
	Name         string `orm:"column(name)`
}

type Position struct {
	PositionId int    `orm:"column(position_id)`
	Name       string `orm:"column(name)`
}