提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.convert.tenant; |
H |
2 |
|
c39abc
|
3 |
import com.iailab.module.infra.api.db.dto.DataSourceConfigRespDTO; |
潘 |
4 |
import com.iailab.module.system.api.tenant.dto.TenantDataSourceConfigRespDTO; |
e7c126
|
5 |
import com.iailab.module.system.controller.admin.tenant.vo.tenant.TenantSaveReqVO; |
H |
6 |
import com.iailab.module.system.controller.admin.user.vo.user.UserSaveReqVO; |
|
7 |
import org.mapstruct.Mapper; |
|
8 |
import org.mapstruct.factory.Mappers; |
|
9 |
|
|
10 |
/** |
|
11 |
* 租户 Convert |
|
12 |
* |
|
13 |
* @author iailab |
|
14 |
*/ |
|
15 |
@Mapper |
|
16 |
public interface TenantConvert { |
|
17 |
|
|
18 |
TenantConvert INSTANCE = Mappers.getMapper(TenantConvert.class); |
|
19 |
|
|
20 |
default UserSaveReqVO convert02(TenantSaveReqVO bean) { |
|
21 |
UserSaveReqVO reqVO = new UserSaveReqVO(); |
|
22 |
reqVO.setUsername(bean.getUsername()); |
|
23 |
reqVO.setPassword(bean.getPassword()); |
|
24 |
reqVO.setNickname(bean.getContactName()).setMobile(bean.getContactMobile()); |
|
25 |
return reqVO; |
|
26 |
} |
|
27 |
|
c39abc
|
28 |
TenantDataSourceConfigRespDTO convert(DataSourceConfigRespDTO bean); |
潘 |
29 |
|
e7c126
|
30 |
} |