|
|
@ -7,8 +7,6 @@ import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.dto.form.CertificationAddFormDTO; |
|
|
|
import com.epmet.dto.form.OpenedOrClosedFormDTO; |
|
|
|
import com.epmet.modules.person.service.BadgeService; |
|
|
|
import com.epmet.resi.mine.dto.from.BadgeListFormDTO; |
|
|
|
import com.epmet.resi.mine.dto.from.OperListFormDTO; |
|
|
|
import com.epmet.resi.mine.dto.result.BadgeListResultDTO; |
|
|
|
import com.epmet.resi.mine.dto.result.OperListResultDTO; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -37,9 +35,11 @@ public class BadgeController { |
|
|
|
* @date 2020/11/3 4:11 下午 |
|
|
|
*/ |
|
|
|
@PostMapping("list") |
|
|
|
public Result<List<BadgeListResultDTO>> getBadgeList(@LoginUser TokenDto tokenDto,@RequestBody BadgeListFormDTO badgeListFormDTO){ |
|
|
|
ValidatorUtils.validateEntity(badgeListFormDTO, BadgeListFormDTO.BadgeList.class); |
|
|
|
return new Result<List<BadgeListResultDTO>>().ok(badgeService.getBadgeList(tokenDto,badgeListFormDTO)); |
|
|
|
// public Result<List<BadgeListResultDTO>> getBadgeList(@LoginUser TokenDto tokenDto,@RequestBody BadgeListFormDTO badgeListFormDTO){
|
|
|
|
public Result<List<BadgeListResultDTO>> getBadgeList(@LoginUser TokenDto tokenDto){ |
|
|
|
// ValidatorUtils.validateEntity(badgeListFormDTO, BadgeListFormDTO.BadgeList.class);
|
|
|
|
// return new Result<List<BadgeListResultDTO>>().ok(badgeService.getBadgeList(tokenDto,badgeListFormDTO));
|
|
|
|
return new Result<List<BadgeListResultDTO>>().ok(badgeService.getBadgeList(tokenDto.getCustomerId(),tokenDto.getUserId())); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -49,9 +49,11 @@ public class BadgeController { |
|
|
|
* @date 2020/11/3 4:28 下午 |
|
|
|
*/ |
|
|
|
@PostMapping("operlist") |
|
|
|
public Result<List<OperListResultDTO>> getOperList(@LoginUser TokenDto tokenDto,@RequestBody OperListFormDTO operListFormDTO){ |
|
|
|
ValidatorUtils.validateEntity(operListFormDTO, OperListFormDTO.OperList.class); |
|
|
|
return new Result<List<OperListResultDTO>>().ok(badgeService.getOperList(tokenDto,operListFormDTO)); |
|
|
|
// public Result<List<OperListResultDTO>> getOperList(@LoginUser TokenDto tokenDto,@RequestBody OperListFormDTO operListFormDTO){
|
|
|
|
public Result<List<OperListResultDTO>> getOperList(@LoginUser TokenDto tokenDto){ |
|
|
|
// ValidatorUtils.validateEntity(operListFormDTO, OperListFormDTO.OperList.class);
|
|
|
|
// return new Result<List<OperListResultDTO>>().ok(badgeService.getOperList(tokenDto,operListFormDTO));
|
|
|
|
return new Result<List<OperListResultDTO>>().ok(badgeService.getOperList(tokenDto.getCustomerId(),tokenDto.getUserId())); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|