|
@@ -857,5 +857,57 @@ public class AuthApi {
|
|
|
Integer authUserId = 2 == userIdentity ? sysUser.getId() : 3 == userIdentity ? sysUser.getParentId() : null;
|
|
|
return authService.getDyVidoInfo(authUserId);
|
|
|
}
|
|
|
+//------------------------------------------抖音挑战赛1.7.7版本----------------------------------------------------------------------------------------------------------------
|
|
|
+ /**
|
|
|
+ * 新增参赛机构信息
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("save/ross/info")
|
|
|
+ public ResponseJson saveRossInfo(@CurrentUser SysUser sysUser, @RequestBody String params) {
|
|
|
+ if (null == sysUser) {
|
|
|
+ return ResponseJson.error("用户信息异常", null);
|
|
|
+ }
|
|
|
+ // 获取供应商用户id
|
|
|
+ Integer userIdentity = sysUser.getUserIdentity();
|
|
|
+ Integer authUserId = 2 == userIdentity ? sysUser.getId() : 3 == userIdentity ? sysUser.getParentId() : null;
|
|
|
+ if (null == authUserId) {
|
|
|
+ return ResponseJson.error("供应商用户id不能为空", null);
|
|
|
+ }
|
|
|
+ JSONObject jsonObject = JSONObject.parseObject(params);
|
|
|
+ String mobile=jsonObject.getString("mobile");
|
|
|
+ String licenseOssUrl=jsonObject.getString("licenseOssUrl");
|
|
|
+ String licenseOssName=jsonObject.getString("licenseOssName");
|
|
|
+ Integer authId=jsonObject.getInteger("authId");
|
|
|
+ //判断该账号是否已经参赛
|
|
|
+ List<RossChallengeRoundVo> infoByUserName = authService.getInfoByUserName(mobile);
|
|
|
+ if(null !=infoByUserName&&infoByUserName.size()>0){
|
|
|
+ return ResponseJson.success("您已报名",null);
|
|
|
+ }
|
|
|
+ RossChallengeRoundVo rossChallengeRoundVo=new RossChallengeRoundVo();
|
|
|
+ rossChallengeRoundVo.setAuthUserId(authUserId);
|
|
|
+ rossChallengeRoundVo.setUserName(mobile);
|
|
|
+ rossChallengeRoundVo.setAuthId(authId);
|
|
|
+ rossChallengeRoundVo.setLicenseOssUrl(licenseOssUrl);
|
|
|
+ rossChallengeRoundVo.setLicenseOssName(licenseOssName);
|
|
|
+ if(StringUtils.isEmpty(licenseOssUrl)&&StringUtils.isEmpty(licenseOssName)){
|
|
|
+ rossChallengeRoundVo.setAuthenticationStatus(1);
|
|
|
+ }else{
|
|
|
+ rossChallengeRoundVo.setAuthenticationStatus(0);
|
|
|
+ }
|
|
|
+ rossChallengeRoundVo.setContestStatus(1);
|
|
|
+ return authService.saveRossInfo(rossChallengeRoundVo);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 获取已报名信息列表
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("get/contested/info")
|
|
|
+ public ResponseJson<List<RossChallengeRoundVo>> getcontestedInfo(){
|
|
|
+ return authService.getcontestedInfo();
|
|
|
+ }
|
|
|
|
|
|
- }
|
|
|
+ @GetMapping("get/video/all")
|
|
|
+ public ResponseJson<List<RossChallengeVideo>> getVideoAll(String mobileOrAuthpart){
|
|
|
+ return authService.getVideoAll(mobileOrAuthpart);
|
|
|
+ }
|
|
|
+}
|