|
@ -23,7 +23,7 @@ import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcInformationFormDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcInformationFormDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcInformationListFormDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcInformationListFormDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcInformationReadFormDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcInformationReadFormDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcIFristInfoResultDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcInformationFristResultDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcInformationListResultDTO; |
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcInformationListResultDTO; |
|
|
import com.elink.esua.epdc.service.InformationService; |
|
|
import com.elink.esua.epdc.service.InformationService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
@ -87,8 +87,16 @@ public class EpdcAppInformationController { |
|
|
return this.informationService.listByUserId(formDto); |
|
|
return this.informationService.listByUserId(formDto); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 获取第一条个人消息,并返回未读消息数 |
|
|
|
|
|
* |
|
|
|
|
|
* @param userId |
|
|
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcInformationFristResultDTO> |
|
|
|
|
|
* @author work@yujt.net.cn |
|
|
|
|
|
* @date 2019/9/18 13:54 |
|
|
|
|
|
*/ |
|
|
@PostMapping("first/{userId}") |
|
|
@PostMapping("first/{userId}") |
|
|
public Result<EpdcIFristInfoResultDTO> selectOneFristByUserId(@PathVariable("userId") String userId){ |
|
|
public Result<EpdcInformationFristResultDTO> selectOneFristByUserId(@PathVariable("userId") String userId) { |
|
|
return informationService.selectOneFristByUserId(userId); |
|
|
return informationService.selectOneFristByUserId(userId); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |