Blame view

MemberController.java 1.17 KB
涂亚平 committed
1 2 3
package com.subsidy.controller;


涂亚平 committed
4 5 6 7 8 9 10 11 12
import com.subsidy.common.ResponseData;
import com.subsidy.common.ResponseVO;
import com.subsidy.dto.member.AcademyMembersDTO;
import com.subsidy.model.MemberDO;
import com.subsidy.service.MemberService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
涂亚平 committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;

/**
 * <p>
 * 学生表 前端控制器
 * </p>
 *
 * @author Tuyp
 * @since 2024-01-11
 */
@RestController
@Api(tags = "学生表")
涂亚平 committed
28
@RequestMapping("/member")
涂亚平 committed
29 30
public class MemberController {

涂亚平 committed
31 32 33 34 35 36 37 38 39 40 41
    @Autowired
    private MemberService memberService;

    @PostMapping("academyMembers")
    @ApiOperation("用户管理-学生管理  academyId practiceStatus userName")
    public ResponseVO academyMembers(@RequestBody AcademyMembersDTO academyMembersDTO){
        return ResponseData.generateCreatedResponse(0,memberService.academyMembers(academyMembersDTO));
    }



涂亚平 committed
42
}