提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.convert.social; |
H |
2 |
|
|
3 |
import com.iailab.module.system.api.social.dto.SocialUserBindReqDTO; |
|
4 |
import com.iailab.module.system.controller.admin.socail.vo.user.SocialUserBindReqVO; |
|
5 |
import org.mapstruct.Mapper; |
|
6 |
import org.mapstruct.Mapping; |
|
7 |
import org.mapstruct.factory.Mappers; |
|
8 |
|
|
9 |
@Mapper |
|
10 |
public interface SocialUserConvert { |
|
11 |
|
|
12 |
SocialUserConvert INSTANCE = Mappers.getMapper(SocialUserConvert.class); |
|
13 |
|
|
14 |
@Mapping(source = "reqVO.type", target = "socialType") |
|
15 |
SocialUserBindReqDTO convert(Long userId, Integer userType, SocialUserBindReqVO reqVO); |
|
16 |
|
|
17 |
} |