package org.sky.scientific.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import org.sky.core.tool.api.R;
import org.sky.scientific.pojo.dto.CostSummaryDTO;
import org.sky.scientific.pojo.vo.CostSummaryVO;
import org.sky.scientific.service.IAssetService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@AllArgsConstructor
@Tag(name = "研发费用统计")
public class CostController {

	private final IAssetService service;

	@GetMapping("/cost/summary")
	@ApiOperationSupport(order = 1)
	@Operation(summary = "研发费用统计-本年各月研发费用汇总表")
	public R<List<CostSummaryVO>> costSummary(CostSummaryDTO dto) {
		return R.data(service.costSummary(dto));
	}

}
