feat: 接口设计: user&user.tag
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.rainbus.dlp.entity.converter;
|
||||
|
||||
import com.rainbus.dlp.entity.dto.system.ApiInfo;
|
||||
import com.rainbus.dlp.entity.pojo.user.SysResource;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface SystemConv {
|
||||
|
||||
@Mapping(target = "id", ignore = true)
|
||||
@Mapping(target = "updatedAt", ignore = true)
|
||||
@Mapping(target = "resource", source = "uri")
|
||||
@Mapping(target = "createdAt", ignore = true)
|
||||
SysResource ApiInfoDto2Pojo(ApiInfo apiInfo);
|
||||
|
||||
List<SysResource> ApiInfosDto2Pojo(List<ApiInfo> apiInfos);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user