2 changed files with 3 additions and 49 deletions
@ -1,47 +0,0 @@ |
|||||||
package apelet.association.controller; |
|
||||||
|
|
||||||
import apelet.common.core.annotation.MyRequestBody; |
|
||||||
import apelet.common.core.object.ResponseResult; |
|
||||||
import apelet.common.online.controller.OnlineFormController; |
|
||||||
import apelet.common.online.dto.OnlineFormDto; |
|
||||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||||
import org.springframework.web.bind.annotation.PostMapping; |
|
||||||
import org.springframework.web.bind.annotation.RequestMapping; |
|
||||||
import org.springframework.web.bind.annotation.RestController; |
|
||||||
|
|
||||||
/** |
|
||||||
* 在线表单新增/修改独立接口。 |
|
||||||
* 仅提供对外的独立入口,业务逻辑不做任何改动,直接调用 OnlineFormController 的 add/update。 |
|
||||||
*/ |
|
||||||
@RestController |
|
||||||
@RequestMapping({"/onlineFormExt"}) |
|
||||||
public class OnlineFormExtController { |
|
||||||
|
|
||||||
/** |
|
||||||
* 在线表单控制器,复用其已有的新增/修改逻辑(含事务、校验、日志等)。 |
|
||||||
*/ |
|
||||||
@Autowired |
|
||||||
private OnlineFormController onlineFormController; |
|
||||||
|
|
||||||
/** |
|
||||||
* 新增在线表单。 |
|
||||||
* |
|
||||||
* @param onlineFormDto 表单信息 |
|
||||||
* @return 新增成功后的表单主键 formId |
|
||||||
*/ |
|
||||||
@PostMapping({"/add"}) |
|
||||||
public ResponseResult<Long> add(@MyRequestBody OnlineFormDto onlineFormDto) { |
|
||||||
return onlineFormController.add(onlineFormDto); |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* 修改在线表单。 |
|
||||||
* |
|
||||||
* @param onlineFormDto 表单信息 |
|
||||||
* @return 无业务数据返回 |
|
||||||
*/ |
|
||||||
@PostMapping({"/update"}) |
|
||||||
public ResponseResult<Void> update(@MyRequestBody OnlineFormDto onlineFormDto) { |
|
||||||
return onlineFormController.update(onlineFormDto); |
|
||||||
} |
|
||||||
} |
|
||||||
Loading…
Reference in new issue