package com.xjrsoft.module.student.controller; import cn.dev33.satoken.annotation.SaCheckPermission; import cn.dev33.satoken.stp.StpUtil; import com.xjrsoft.common.model.result.RT; import com.xjrsoft.module.student.dto.BaseStudentInfoPageDto; import com.xjrsoft.module.student.service.IStudentManagerService; import com.xjrsoft.module.student.vo.StudentPersonalInfoVo; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.validation.Valid; /** * @title: 学生职务设置 * @Author dzx * @Date: 2023-11-13 * @Version 1.0 */ @RestController @RequestMapping("/student" + "/consumption") @Api(value = "/student" + "/consumption",tags = "学生消费管理") @AllArgsConstructor public class ConsumptionController { private final IStudentManagerService studentManagerService; @GetMapping(value = "/personal-info") @ApiOperation(value="学生个人信息") @SaCheckPermission("consumption:detail") public RT personalInfo(@Valid BaseStudentInfoPageDto dto){ StudentPersonalInfoVo info = studentManagerService.getPersonalInfo(StpUtil.getLoginIdAsLong()); return RT.ok(info); } }