|
@@ -2,9 +2,6 @@ package com.game.business.controller;
|
|
|
|
|
|
import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
-
|
|
|
-import com.game.business.domain.AppGameClassify;
|
|
|
-import com.game.business.service.IAppGameClassifyService;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -23,68 +20,70 @@ import com.game.common.annotation.DataSource;
|
|
|
import com.game.common.enums.DataSourceType;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import com.game.business.domain.AppGameClassify;
|
|
|
+import com.game.business.service.IAppGameClassifyService;
|
|
|
import com.game.common.utils.poi.ExcelUtil;
|
|
|
import com.game.common.core.page.TableDataInfo;
|
|
|
|
|
|
/**
|
|
|
- * 【请填写功能名称】Controller
|
|
|
+ * 游戏分类Controller
|
|
|
*
|
|
|
- * @author game
|
|
|
+ * @author dos
|
|
|
* @date 2024-06-14
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/system/classify")
|
|
|
+@RequestMapping("/business/classify")
|
|
|
@DataSource(DataSourceType.SLAVE)
|
|
|
-@Api(value = "AppGameClassifyController", description = "【请填写功能名称】接口", tags = {"【请填写功能名称】"})
|
|
|
+@Api(value = "AppGameClassifyController", description = "游戏分类接口", tags = {"游戏分类"})
|
|
|
public class AppGameClassifyController extends BaseController
|
|
|
{
|
|
|
@Autowired
|
|
|
private IAppGameClassifyService appGameClassifyService;
|
|
|
|
|
|
/**
|
|
|
- * 查询【请填写功能名称】列表
|
|
|
+ * 查询游戏分类列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:classify:list')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('business:classify:list')")
|
|
|
@GetMapping("/list")
|
|
|
- @ApiOperation(value = "查询【请填写功能名称】列表", notes = "获取【请填写功能名称】列表")
|
|
|
+ @ApiOperation(value = "查询游戏分类列表", notes = "获取游戏分类列表")
|
|
|
public TableDataInfo list(AppGameClassify appGameClassify)
|
|
|
{
|
|
|
startPage();
|
|
|
- List<AppGameClassify> list = appGameClassifyService.selectAppGameClassifyList(appGameClassify);
|
|
|
+ List<AppGameClassify> list = appGameClassifyService.list();
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 导出【请填写功能名称】列表
|
|
|
+ * 导出游戏分类列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:classify:export')")
|
|
|
- @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
|
|
+ @PreAuthorize("@ss.hasPermi('business:classify:export')")
|
|
|
+ @Log(title = "游戏分类", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
- @ApiOperation(value = "导出【请填写功能名称】列表", notes = "导出【请填写功能名称】列表")
|
|
|
+ @ApiOperation(value = "导出游戏分类列表", notes = "导出游戏分类列表")
|
|
|
public void export(HttpServletResponse response, AppGameClassify appGameClassify)
|
|
|
{
|
|
|
List<AppGameClassify> list = appGameClassifyService.selectAppGameClassifyList(appGameClassify);
|
|
|
ExcelUtil<AppGameClassify> util = new ExcelUtil<AppGameClassify>(AppGameClassify.class);
|
|
|
- util.exportExcel(response, list, "【请填写功能名称】数据");
|
|
|
+ util.exportExcel(response, list, "游戏分类数据");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取【请填写功能名称】详细信息
|
|
|
+ * 获取游戏分类详细信息
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:classify:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('business:classify:query')")
|
|
|
@GetMapping(value = "/{id}")
|
|
|
- @ApiOperation(value = "获取【请填写功能名称】详细信息", notes = "获取【请填写功能名称】详细信息")
|
|
|
+ @ApiOperation(value = "获取游戏分类详细信息", notes = "获取游戏分类详细信息")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
|
{
|
|
|
return success(appGameClassifyService.selectAppGameClassifyById(id));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 新增【请填写功能名称】
|
|
|
+ * 新增游戏分类
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:classify:add')")
|
|
|
- @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
|
|
- @ApiOperation(value = "新增【请填写功能名称】", notes = "新增【请填写功能名称】")
|
|
|
+ @PreAuthorize("@ss.hasPermi('business:classify:add')")
|
|
|
+ @Log(title = "游戏分类", businessType = BusinessType.INSERT)
|
|
|
+ @ApiOperation(value = "新增游戏分类", notes = "新增游戏分类")
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody AppGameClassify appGameClassify)
|
|
|
{
|
|
@@ -92,11 +91,11 @@ public class AppGameClassifyController extends BaseController
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 修改【请填写功能名称】
|
|
|
+ * 修改游戏分类
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:classify:edit')")
|
|
|
- @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
|
|
- @ApiOperation(value = "修改【请填写功能名称】", notes = "修改【请填写功能名称】")
|
|
|
+ @PreAuthorize("@ss.hasPermi('business:classify:edit')")
|
|
|
+ @Log(title = "游戏分类", businessType = BusinessType.UPDATE)
|
|
|
+ @ApiOperation(value = "修改游戏分类", notes = "修改游戏分类")
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody AppGameClassify appGameClassify)
|
|
|
{
|
|
@@ -104,11 +103,11 @@ public class AppGameClassifyController extends BaseController
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 删除【请填写功能名称】
|
|
|
+ * 删除游戏分类
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:classify:remove')")
|
|
|
- @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
|
|
- @ApiOperation(value = "删除【请填写功能名称】", notes = "删除【请填写功能名称】")
|
|
|
+ @PreAuthorize("@ss.hasPermi('business:classify:remove')")
|
|
|
+ @Log(title = "游戏分类", businessType = BusinessType.DELETE)
|
|
|
+ @ApiOperation(value = "删除游戏分类", notes = "删除游戏分类")
|
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
|
{
|