| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "门店id", name = "storeId", required = true, dataType = "int"), |
| | | }) |
| | | public ResultUtil getStoreDetails(Integer storeId, String content, double score, String imgs){ |
| | | public ResultUtil getStoreDetails(Integer storeId, String content, double score, String imgs) { |
| | | try { |
| | | Integer uid = tokenUtil.getUserIdFormRedis(); |
| | | if(null == uid){ |
| | | if (null == uid) { |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | StoreEvaluation storeEvaluation = new StoreEvaluation(); |
| | |
| | | storeEvaluation.setInsertTime(new Date()); |
| | | evaluationService.save(storeEvaluation); |
| | | return ResultUtil.success(); |
| | | }catch (Exception e){ |
| | | } catch (Exception e) { |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |