You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.7 KiB

5 years ago
package com.epmet.controller;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.form.UserBadgeListFormDTO;
5 years ago
import com.epmet.dto.form.UserOperListFormDTO;
5 years ago
import com.epmet.dto.result.UserBadgeListResultDTO;
5 years ago
import com.epmet.dto.result.UserOperListResultDTO;
5 years ago
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));
}
5 years ago
/**
* @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));
}
5 years ago
}