Class DictImportReqConverterImpl

java.lang.Object
io.github.xezzon.zeroweb.dict.converter.DictImportReqConverterImpl
All Implemented Interfaces:
io.github.xezzon.zeroweb.core.trait.From<io.github.xezzon.zeroweb.dict.DictImportReq, Dict>, DictImportReqConverter

@Generated(value="org.mapstruct.ap.MappingProcessor", date="2025-12-17T12:37:12+0000", comments="version: 1.6.3, compiler: javac, environment: Java 25.0.1 (Eclipse Adoptium)") public class DictImportReqConverterImpl extends Object implements DictImportReqConverter
  • Constructor Details

    • DictImportReqConverterImpl

      public DictImportReqConverterImpl()
  • Method Details

    • from

      public Dict from(io.github.xezzon.zeroweb.dict.DictImportReq source)
      Description copied from interface: DictImportReqConverter

      将字典导入请求转换为字典实体

      转换规则:

      • 忽略 parentId,由上层调用者设置
      • 忽略 id,由数据库自动生成
      • enabled 设为常量 true
      • editable 设为常量 false
      • 忽略 children,该字段为瞬态字段
      • tag 使用请求值,如为空则使用 Dict.DICT_TAG 默认值
      Specified by:
      from in interface DictImportReqConverter
      Specified by:
      from in interface io.github.xezzon.zeroweb.core.trait.From<io.github.xezzon.zeroweb.dict.DictImportReq, Dict>
      Parameters:
      source - 字典导入请求
      Returns:
      字典实体对象