xyz.erupt.core.controller.EruptComponentController Maven / Gradle / Ivy
package xyz.erupt.core.controller;
import org.springframework.web.bind.annotation.*;
import xyz.erupt.annotation.fun.VLModel;
import xyz.erupt.annotation.sub_field.sub_edit.AutoCompleteType;
import xyz.erupt.core.annotation.EruptRouter;
import xyz.erupt.core.constant.EruptRestPath;
import xyz.erupt.core.exception.EruptApiErrorTip;
import xyz.erupt.core.exception.EruptWebApiRuntimeException;
import xyz.erupt.core.service.EruptCoreService;
import xyz.erupt.core.util.EruptSpringUtil;
import xyz.erupt.core.util.EruptUtil;
import xyz.erupt.core.view.EruptApiModel;
import xyz.erupt.core.view.EruptFieldModel;
import java.util.List;
import java.util.Map;
/**
* @author YuePeng
* date 2020-08-14
*/
@RestController
@RequestMapping(EruptRestPath.ERUPT_COMP)
public class EruptComponentController {
/**
* 自动完成组件联动接口
*
* @param field 自动完成组件字段
* @param val 输入框的值
* @param formData 完整表单对象
* @return 联想结果
*/
@PostMapping("/auto-complete/{erupt}/{field}")
@EruptRouter(authIndex = 2, verifyType = EruptRouter.VerifyType.ERUPT)
public List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy