28 lines
701 B
Java
28 lines
701 B
Java
package com.lanyuanxiaoyao.service.template.controller;
|
|
|
|
import com.lanyuanxiaoyao.service.template.controller.response.GlobalResponse;
|
|
|
|
/**
|
|
* 删除控制器接口,用于定义统一的删除实体对象的接口规范
|
|
*
|
|
* <p>
|
|
* 前端传入的JSON格式示例:
|
|
* <pre>
|
|
* DELETE /remove/1
|
|
* </pre>
|
|
* </p>
|
|
*
|
|
* @author lanyuanxiaoyao
|
|
*/
|
|
public interface RemoveController {
|
|
String REMOVE = "/remove/{id}";
|
|
|
|
/**
|
|
* 根据ID删除实体对象
|
|
*
|
|
* @param id 需要删除的实体ID
|
|
* @return GlobalResponse<Object> 返回删除结果
|
|
* @throws Exception 删除过程中可能抛出的异常
|
|
*/
|
|
GlobalResponse<Object> remove(Long id) throws Exception;
|
|
} |