import_user.go
685 字节
package command
import (
"github.com/beego/beego/v2/core/validation"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/user/adapter"
)
type ImportUserCommand struct {
AddUsers []SaveUserCommand `json:"add"`
EditUsers []SaveUserCommand `json:"edit"`
}
// 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) {
}