io.github.wujun728.online.controller.OnlineFormController Maven / Gradle / Ivy
The newest version!
package io.github.wujun728.online.controller;
import io.github.wujun728.common.base.Result;
import io.github.wujun728.online.common.PageResult;
import io.github.wujun728.online.query.OnlineFormQuery;
import io.github.wujun728.online.service.OnlineFormService;
import io.github.wujun728.online.vo.form.OnlineFormVO;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.rmi.ServerException;
import java.util.List;
import java.util.Map;
@RequestMapping(value={"sys/online/form/{tableId}"})
@RestController
public class OnlineFormController {
private /* synthetic */ OnlineFormService onlineFormService;
@GetMapping(value={"{id}"})
public Result get(@PathVariable(value="tableId") String hVTb, @PathVariable(value="id") Long LVTb) throws ServerException {
OnlineFormController NVTb = this;
Map kVTb = NVTb.onlineFormService.get(hVTb, LVTb);
return Result.ok(kVTb);
}
@PostMapping
public Result save(@PathVariable(value="tableId") String VuTb, @RequestBody Map XuTb) throws ServerException {
OnlineFormController wuTb = this;
wuTb.onlineFormService.save(VuTb, XuTb);
return Result.ok();
}
@PostMapping(value={"page"})
public Result page(@PathVariable(value="tableId") String wVTb, @RequestBody @Valid OnlineFormQuery VVTb) throws ServerException {
OnlineFormController XVTb = this;
PageResult
© 2015 - 2025 Weber Informatics LLC | Privacy Policy