审查视图

pkg/application/user/command/import_user.go 685 字节
tangxvhui authored
1 2
package command
郑周 authored
3 4 5 6 7
import (
	"github.com/beego/beego/v2/core/validation"
	"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/user/adapter"
)
tangxvhui authored
8 9 10 11
type ImportUserCommand struct {
	AddUsers  []SaveUserCommand `json:"add"`
	EditUsers []SaveUserCommand `json:"edit"`
}
郑周 authored
12 13 14 15 16 17 18 19 20 21

// ImportParentUserCommand 导入直接上级
type ImportParentUserCommand struct {
	CompanyId  int                        `cname:"公司ID" json:"companyId"`
	OperatorId int                        `cname:"操作人ID" json:"operatorId"`
	Data       []adapter.ImportParentUser `cname:"数据" json:"-"` // 文件中读取到的数据
}

func (in *ImportParentUserCommand) Valid(_ *validation.Validation) {
}