| | |
| | | import com.product.administration.service.ide.IConferenceManagerService; |
| | | import com.product.core.config.CoreConst; |
| | | import com.product.core.controller.support.AbstractBaseController; |
| | | import com.product.core.entity.DataTableEntity; |
| | | import com.product.core.entity.FieldSetEntity; |
| | | import com.product.core.entity.RequestParameterEntity; |
| | | import com.product.core.exception.BaseException; |
| | |
| | | import com.product.module.sys.config.SystemErrorCode; |
| | | import com.product.module.sys.version.ApiVersion; |
| | | import com.product.util.BaseUtil; |
| | | import org.omg.CORBA.DATA_CONVERSION; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | |
| | | |
| | | /** |
| | | * 获取签到信息 |
| | | * 获取签到或者访问信息 |
| | | * @param request |
| | | * @return |
| | | */ |
| | |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 发送消息 |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @PostMapping("/sendMsg/{version}") |
| | | @ApiVersion(1) |
| | | public String sendMsg(HttpServletRequest request){ |
| | | FieldSetEntity fse = null; |
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA); |
| | | if (bean != null) { |
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean; |
| | | fse = reqp.getFormData(); |
| | | } |
| | | //判断参数是否为空 |
| | | if (bean == null || fse == null) { |
| | | return this.error(com.product.admin.config.SystemCode.SYSTEM_FORM_NODATA.getValue(), com.product.admin.config.SystemCode.SYSTEM_FORM_NODATA.getText()); |
| | | } |
| | | conferenceManagerService.sendMsg(fse); |
| | | return OK(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |