|
|
@ -4,6 +4,7 @@ import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.dto.form.SubmitAdviceFormDTO; |
|
|
|
import com.epmet.dto.result.MyAdviceListResultDTO; |
|
|
|
import com.epmet.modules.advice.service.AdviceService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
@ -11,6 +12,7 @@ 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; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
@ -48,7 +50,7 @@ public class AdviceController { |
|
|
|
* @Date 2020/11/5 13:26 |
|
|
|
*/ |
|
|
|
@PostMapping("myadvicelist") |
|
|
|
public Result getMyAdviceList(@RequestBody Map<String,Integer> map){ |
|
|
|
public Result<List<MyAdviceListResultDTO>> getMyAdviceList(@RequestBody Map<String,Integer> map){ |
|
|
|
return adviceService.getMyAdviceList(map); |
|
|
|
} |
|
|
|
} |
|
|
|