package com.red.circle.other.app.inner.convertor.sys;

import com.red.circle.framework.core.convertor.ConvertorModel;
import com.red.circle.other.infra.database.rds.entity.sys.Administrator;
import com.red.circle.other.infra.database.rds.entity.sys.AdministratorAuthResource;
import com.red.circle.other.inner.model.cmd.sys.SysAdministratorAuthResourceCmd;
import com.red.circle.other.inner.model.dto.sys.AdministratorDTO;
import com.red.circle.other.inner.model.dto.sys.SysAdministratorAuthResourceDTO;
import java.util.List;
import org.mapstruct.Mapper;

/**
 * @author pengliang on 2023/8/11
 */
@Mapper(componentModel = ConvertorModel.SPRING)
public interface AdministratorInnerConvertor {

  AdministratorDTO toAdministratorDTO(Administrator administrator);

  List<SysAdministratorAuthResourceDTO> toListAdministratorAuthResource(
      List<AdministratorAuthResource> list);

  AdministratorAuthResource toAdministratorAuthResource(SysAdministratorAuthResourceCmd cmd);
}
