1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| import BaseService from "../baseService";
| import { SysUser } from "../../entity/sys/core/sysUser";
|
| /**
| * 用户管理
| */
| export default class UserService extends BaseService {
| /**
| * 添加保存前事件
| */
| public async onAddSaveBefore(dataInfo: SysUser) {
| // 新增时,设置默认密码为000000
| if (dataInfo && !dataInfo.user_Id) {
| dataInfo.userPwd = this.ctx.helper.md5EncodingSalt("000000");
| }
|
| this.info.result = true;
| return this.info;
| }
| }
|
|