WelcomeAccountControllerAPI.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.template.api;
  2. import com.template.model.pojo.WelcomeAccount;
  3. import com.template.model.pojo.WelcomeRole;
  4. import com.template.model.result.CommonResult;
  5. import io.swagger.annotations.Api;
  6. import io.swagger.annotations.ApiOperation;
  7. import org.springframework.web.bind.annotation.*;
  8. @RequestMapping("/api/welcomeAccount")
  9. @Api(tags = {"WelcomeAccountController"}, value = "账号管理设置")
  10. public interface WelcomeAccountControllerAPI {
  11. @PostMapping(value = "/saveAccount")
  12. @ApiOperation(value = "添加账号", notes = "添加账号", httpMethod = "POST")
  13. CommonResult saveAccount(@RequestBody WelcomeAccount welcomeAccount);
  14. @GetMapping(value = "/deleteAccount")
  15. @ApiOperation(value = "删除账号", notes = "删除账号", httpMethod = "GET")
  16. CommonResult deleteAccount(@RequestParam Integer accountId);
  17. @PostMapping(value = "/updateAccount")
  18. @ApiOperation(value = "修改账号", notes = "修改账号", httpMethod = "POST")
  19. CommonResult updateAccount(@RequestBody WelcomeAccount welcomeAccount);
  20. @GetMapping(value = "/listAccount")
  21. @ApiOperation(value = "查询账号", notes = "查询账号", httpMethod = "GET")
  22. CommonResult listAccount(@RequestParam int currentPage, @RequestParam int pageCount,Integer status,String keyWord,String startTime,String endTime);
  23. @GetMapping(value = "/getAccountAuthority")
  24. @ApiOperation(value = "查询账号权限", notes = "查询账号权限", httpMethod = "GET")
  25. CommonResult getAccountAuthority(@RequestParam Integer accountId);
  26. }