package com.storlead.sales.controller.customer;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.storlead.framework.common.result.Result;
import com.storlead.sales.pojo.dto.customer.DynamicLogSearchDTO;
import com.storlead.sales.pojo.vo.customer.DynamicLogVO;
import com.storlead.sales.service.customer.DynamicLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import javax.annotation.Resource;
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;

/**
 * <p>
 * 工单动态表 前端控制器
 * </p>
 *
 * @author YPZ
 * @since 2024-04-29
 */
@RestController
@RequestMapping("/dynamic-log")
@Api(tags = "销售: 通用动态管理相关接口")
public class DynamicLogController {

    @Resource
    private DynamicLogService dynamicLogService;
    @PostMapping(value = "/list")
    @ApiOperation(value = "工单动态管理-列表", notes = "工单动态管理-列表")
    public Result<IPage<DynamicLogVO>> list(@RequestBody DynamicLogSearchDTO dynamicLogSearchDTO) {
        return dynamicLogService.selectListVO(dynamicLogSearchDTO);
    }
}
