package com.jwipc.inquiry.controller.rest;

import com.jwipc.inquiry.constant.ModuleConst;
import com.jwipc.inquiry.dto.InquiryTemplateFieldDTO;
import com.jwipc.inquiry.entity.InquiryTemplateField;
import com.jwipc.inquiry.logic.InquiryTemplateFieldLogic;
import com.jwipc.inquiry.logic.InquiryTemplateLogic;
import com.jwipc.inquiry.model.query.InquiryTemplateFieldQuery;
import com.jwipc.inquiry.model.query.InquiryTemplateQuery;
import com.jwipc.page.PageView;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author shenyang.ou
 * @date 2024/2/4 19:48
 * @desc
 */
@RestController
@RequestMapping(ModuleConst.MODULE_ROOT + "/template/field/rest")
@RequiredArgsConstructor
public class InquiryTemplateFieldRestController {
    private final InquiryTemplateFieldLogic inquiryTemplateFieldLogic;

    /**
     * 列表
     * @param query
     * @return
     */
    @RequestMapping("/listAll")
    public List<InquiryTemplateFieldDTO> listAll(InquiryTemplateFieldQuery query) {
        return inquiryTemplateFieldLogic.listAll(query);
    }

}
