|
@@ -4,6 +4,8 @@ import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
import com.ruoyi.common.annotation.Anonymous;
|
|
import com.ruoyi.common.annotation.Anonymous;
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
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;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -25,6 +27,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
* @author lsw
|
|
* @author lsw
|
|
* @date 2024-07-19
|
|
* @date 2024-07-19
|
|
*/
|
|
*/
|
|
|
|
+@Api(tags = "小程序用户管理")
|
|
@Anonymous
|
|
@Anonymous
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/work/user")
|
|
@RequestMapping("/work/user")
|
|
@@ -32,6 +35,7 @@ public class UserController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private IUserService userService;
|
|
private IUserService userService;
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "获取小程序用户")
|
|
@Anonymous
|
|
@Anonymous
|
|
//@PreAuthorize("@ss.hasPermi('work:user:list')")
|
|
//@PreAuthorize("@ss.hasPermi('work:user:list')")
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
@@ -41,6 +45,7 @@ public class UserController extends BaseController {
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "根据id查询小程序用户")
|
|
@Anonymous
|
|
@Anonymous
|
|
//@PreAuthorize("@ss.hasPermi('work:user:query')")
|
|
//@PreAuthorize("@ss.hasPermi('work:user:query')")
|
|
@GetMapping(value = "/detail/{id}")
|
|
@GetMapping(value = "/detail/{id}")
|
|
@@ -48,6 +53,7 @@ public class UserController extends BaseController {
|
|
return AjaxResult.success(userService.getById(id));
|
|
return AjaxResult.success(userService.getById(id));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "添加小程序用户")
|
|
@Anonymous
|
|
@Anonymous
|
|
//@PreAuthorize("@ss.hasPermi('work:user:add')")
|
|
//@PreAuthorize("@ss.hasPermi('work:user:add')")
|
|
@Log(title = "小程序用户", businessType = BusinessType.INSERT)
|
|
@Log(title = "小程序用户", businessType = BusinessType.INSERT)
|
|
@@ -56,6 +62,7 @@ public class UserController extends BaseController {
|
|
return toAjax(userService.save(user));
|
|
return toAjax(userService.save(user));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "修改小程序用户")
|
|
@Anonymous
|
|
@Anonymous
|
|
//@PreAuthorize("@ss.hasPermi('work:user:edit')")
|
|
//@PreAuthorize("@ss.hasPermi('work:user:edit')")
|
|
@Log(title = "小程序用户", businessType = BusinessType.UPDATE)
|
|
@Log(title = "小程序用户", businessType = BusinessType.UPDATE)
|
|
@@ -64,6 +71,7 @@ public class UserController extends BaseController {
|
|
return toAjax(userService.updateById(user));
|
|
return toAjax(userService.updateById(user));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "删除小程序用户")
|
|
@Anonymous
|
|
@Anonymous
|
|
//@PreAuthorize("@ss.hasPermi('work:user:remove')")
|
|
//@PreAuthorize("@ss.hasPermi('work:user:remove')")
|
|
@Log(title = "小程序用户", businessType = BusinessType.DELETE)
|
|
@Log(title = "小程序用户", businessType = BusinessType.DELETE)
|