mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 23:23:55 +08:00
add:参数增删改查
* add:配置管理接口 * add:参数增删改查
This commit is contained in:
+3
-3
@@ -82,11 +82,11 @@ public class TimbreController {
|
||||
return new Result<>();
|
||||
}
|
||||
|
||||
@DeleteMapping("/{id}")
|
||||
@DeleteMapping
|
||||
@Operation(summary = "音色删除")
|
||||
@RequiresPermissions("sys:role:superAdmin")
|
||||
public Result<Void> delete(@PathVariable String id) {
|
||||
timbreService.delete(new String[] { id });
|
||||
public Result<Void> delete(@RequestBody String[] ids) {
|
||||
timbreService.delete(ids);
|
||||
return new Result<>();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import lombok.Data;
|
||||
@Data
|
||||
public class TimbreDetailsVO implements Serializable {
|
||||
@Schema(description = "音色id")
|
||||
private Long id;
|
||||
private String id;
|
||||
|
||||
@Schema(description = "语言")
|
||||
private String languages;
|
||||
|
||||
Reference in New Issue
Block a user