package com.crm.manager.controller;


import com.crm.manager.service.custom.CustomLoginDeleteFeignService;
import com.crm.rely.backend.core.constant.FeignClientAnnotation;
import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.dto.custom.login.CustomLoginDeleteDto;
import com.crm.rely.backend.core.entity.custom.login.delete.CustomLoginDeleteSearchEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 账户删除
 * @author gao
 * @date 2025/7/28 17:38
 */
@RestController
@RequestMapping("/custom/login/delete")
public class CustomLoginDeleteController {

    @Autowired
    private CustomLoginDeleteFeignService customLoginDeleteFeignService;

    /**
     * 账户删除
     * @param entity:
     * @return BaseResultWithPagerDto<CustomLoginDeleteDto>
     */
    @PostMapping("/search/list")
    public BaseResultWithPagerDto<List<CustomLoginDeleteDto>> searchCustomList(@RequestBody CustomLoginDeleteSearchEntity entity) throws Exception {
        BaseResultWithPagerDto<List<CustomLoginDeleteDto>> result = customLoginDeleteFeignService.manageSearchList(entity);
        return result;
    }

}
