package com.crm.manager.controller;

import com.crm.manager.service.CustomNoticeFeignService;
import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.entity.custom.notice.CustomNoticeAllByCustomIdEntity;
import com.crm.rely.backend.exception.ServiceException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 客户通知
 * @author: houn
 * @create: 2020-06-13 17:52
 **/
@RestController
@RequestMapping("/custom/notice")
public class CustomNoticeController {

    @Autowired
    private CustomNoticeFeignService customNoticeFeignService;

    @PostMapping("/search/custom/list")
    public BaseResultDto searchCustomList(@RequestBody @Validated CustomNoticeAllByCustomIdEntity entity) throws ServiceException {

        return customNoticeFeignService.searchCustomList(entity);
    }


}
