package com.epmet.controller; import com.epmet.commons.tools.utils.Result; import com.epmet.dto.form.UserBadgeListFormDTO; import com.epmet.dto.result.UserBadgeListResultDTO; 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> selectBadgeList(@RequestBody UserBadgeListFormDTO userBadgeListFormDTO){ return new Result>().ok(userBadgeService.selectBadgeList(userBadgeListFormDTO)); } }