|
|
|
package com.epmet.controller;
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.utils.Result;
|
|
|
|
import com.epmet.dto.form.UserBadgeListFormDTO;
|
|
|
|
import com.epmet.dto.form.UserOperListFormDTO;
|
|
|
|
import com.epmet.dto.result.UserBadgeListResultDTO;
|
|
|
|
import com.epmet.dto.result.UserOperListResultDTO;
|
|
|
|
import com.epmet.service.UserBadgeService;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author zxc
|
|
|
|
* @DateTime 2020/11/3 11:16 上午
|
|
|
|
*/
|
|
|
|
@RestController
|
|
|
|
@RequestMapping("badge")
|
|
|
|
public class UserBadgeController {
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private UserBadgeService userBadgeService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description 查询已经点亮的徽章
|
|
|
|
* @Param userBadgeListFormDTO
|
|
|
|
* @author zxc
|
|
|
|
* @date 2020/11/3 1:33 下午
|
|
|
|
*/
|
|
|
|
@PostMapping("badgelist")
|
|
|
|
public Result<List<UserBadgeListResultDTO>> selectBadgeList(@RequestBody UserBadgeListFormDTO userBadgeListFormDTO){
|
|
|
|
return new Result<List<UserBadgeListResultDTO>>().ok(userBadgeService.selectBadgeList(userBadgeListFormDTO));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description 个人中心-获取徽章可操作列表(点亮,取消,认证)
|
|
|
|
* @Param userOperListFormDTO
|
|
|
|
* @author zxc
|
|
|
|
* @date 2020/11/3 4:42 下午
|
|
|
|
*/
|
|
|
|
@PostMapping("badgeoperlist")
|
|
|
|
public Result<List<UserOperListResultDTO>> selectOperList(@RequestBody UserOperListFormDTO userOperListFormDTO){
|
|
|
|
return new Result<List<UserOperListResultDTO>>().ok(userBadgeService.selectOperList(userOperListFormDTO));
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|