|
@@ -8,6 +8,7 @@ import java.util.Arrays;
|
|
import com.ruoyi.app.domain.TbAppUser;
|
|
import com.ruoyi.app.domain.TbAppUser;
|
|
import com.ruoyi.app.service.ITbAppUserService;
|
|
import com.ruoyi.app.service.ITbAppUserService;
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
|
+import io.swagger.annotations.Api;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -32,9 +33,10 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
* @author Alex
|
|
* @author Alex
|
|
* @date 2020-09-24
|
|
* @date 2020-09-24
|
|
*/
|
|
*/
|
|
|
|
+@Api(value = "个人会员管理", tags = "个人会员管理")
|
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
@RestController
|
|
@RestController
|
|
-@RequestMapping("/app/user" )
|
|
|
|
|
|
+@RequestMapping("/system/appUser" )
|
|
public class TbAppUserController extends BaseController {
|
|
public class TbAppUserController extends BaseController {
|
|
|
|
|
|
private final ITbAppUserService iTbAppUserService;
|
|
private final ITbAppUserService iTbAppUserService;
|
|
@@ -42,7 +44,7 @@ public class TbAppUserController extends BaseController {
|
|
/**
|
|
/**
|
|
* 查询会员列表
|
|
* 查询会员列表
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('system:user:list')")
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:appUser:list')")
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
public TableDataInfo list(TbAppUser tbAppUser)
|
|
public TableDataInfo list(TbAppUser tbAppUser)
|
|
{
|
|
{
|
|
@@ -82,7 +84,7 @@ public class TbAppUserController extends BaseController {
|
|
/**
|
|
/**
|
|
* 导出会员列表
|
|
* 导出会员列表
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('system:user:export')" )
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:appUser:export')" )
|
|
@Log(title = "会员" , businessType = BusinessType.EXPORT)
|
|
@Log(title = "会员" , businessType = BusinessType.EXPORT)
|
|
@GetMapping("/export" )
|
|
@GetMapping("/export" )
|
|
public AjaxResult export(TbAppUser tbAppUser) {
|
|
public AjaxResult export(TbAppUser tbAppUser) {
|
|
@@ -95,7 +97,7 @@ public class TbAppUserController extends BaseController {
|
|
/**
|
|
/**
|
|
* 获取会员详细信息
|
|
* 获取会员详细信息
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('system:user:query')" )
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:appUser:query')" )
|
|
@GetMapping(value = "/{id}" )
|
|
@GetMapping(value = "/{id}" )
|
|
public AjaxResult getInfo(@PathVariable("id" ) Long id) {
|
|
public AjaxResult getInfo(@PathVariable("id" ) Long id) {
|
|
return AjaxResult.success(iTbAppUserService.getById(id));
|
|
return AjaxResult.success(iTbAppUserService.getById(id));
|
|
@@ -104,7 +106,7 @@ public class TbAppUserController extends BaseController {
|
|
/**
|
|
/**
|
|
* 新增会员
|
|
* 新增会员
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('system:user:add')" )
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:appUser:add')" )
|
|
@Log(title = "会员" , businessType = BusinessType.INSERT)
|
|
@Log(title = "会员" , businessType = BusinessType.INSERT)
|
|
@PostMapping
|
|
@PostMapping
|
|
public AjaxResult add(@RequestBody TbAppUser tbAppUser) {
|
|
public AjaxResult add(@RequestBody TbAppUser tbAppUser) {
|
|
@@ -114,7 +116,7 @@ public class TbAppUserController extends BaseController {
|
|
/**
|
|
/**
|
|
* 修改会员
|
|
* 修改会员
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('system:user:edit')" )
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:appUser:edit')" )
|
|
@Log(title = "会员" , businessType = BusinessType.UPDATE)
|
|
@Log(title = "会员" , businessType = BusinessType.UPDATE)
|
|
@PutMapping
|
|
@PutMapping
|
|
public AjaxResult edit(@RequestBody TbAppUser tbAppUser) {
|
|
public AjaxResult edit(@RequestBody TbAppUser tbAppUser) {
|
|
@@ -124,7 +126,7 @@ public class TbAppUserController extends BaseController {
|
|
/**
|
|
/**
|
|
* 删除会员
|
|
* 删除会员
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('system:user:remove')" )
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:appUser:remove')" )
|
|
@Log(title = "会员" , businessType = BusinessType.DELETE)
|
|
@Log(title = "会员" , businessType = BusinessType.DELETE)
|
|
@DeleteMapping("/{ids}" )
|
|
@DeleteMapping("/{ids}" )
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|