| package com.zt.modules.sys.mapstruct; | 
|   | 
| import org.mapstruct.Mapper; | 
| import org.mapstruct.Mapping; | 
| import org.mapstruct.Mappings; | 
|   | 
| import com.zt.core.db.model.DataFilterMethod; | 
| import com.zt.modules.sys.model.SysInterface; | 
|   | 
| /** | 
|  * SYS_INTERFACE | 
|  * | 
|  * @author xhb test@email.com | 
|  * @since 1.0.0 2020-06-02 | 
|  */ | 
| @Mapper(componentModel = "spring") | 
| public interface SysInterfaceMapper { | 
|   | 
|     @Mappings({ @Mapping(target = "group1", source = "swagger"), @Mapping(target = "group2", source = "apiTags"), | 
|             @Mapping(target = "method", source = "method") }) | 
|     SysInterface fromMethod(DataFilterMethod method); | 
| } |