Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
cms-ci-test
Commits
147db56c
提交
147db56c
authored
5月 30, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
加盟修改
上级
58b18a0e
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
3 行删除
+7
-3
UserApplyTagVO.java
.../main/java/com/mmc/iuav/user/model/vo/UserApplyTagVO.java
+1
-1
CooperationController.java
...a/com/mmc/iuav/user/controller/CooperationController.java
+6
-2
没有找到文件。
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/vo/UserApplyTagVO.java
浏览文件 @
147db56c
...
@@ -28,7 +28,7 @@ public class UserApplyTagVO implements Serializable {
...
@@ -28,7 +28,7 @@ public class UserApplyTagVO implements Serializable {
@NotNull
(
message
=
"加盟标签id不能为空"
,
groups
=
{
Insert
.
class
})
@NotNull
(
message
=
"加盟标签id不能为空"
,
groups
=
{
Insert
.
class
})
private
Integer
cooperationTagId
;
private
Integer
cooperationTagId
;
@ApiModelProperty
(
value
=
"用户id"
)
@ApiModelProperty
(
value
=
"用户id"
)
@NotNull
(
message
=
"加盟标签id不能为空"
,
groups
=
{
Insert
.
class
})
//
@NotNull(message = "加盟标签id不能为空", groups = { Insert.class })
private
Integer
userAccountId
;
private
Integer
userAccountId
;
@ApiModelProperty
(
value
=
"申请人名称"
)
@ApiModelProperty
(
value
=
"申请人名称"
)
@NotBlank
(
message
=
"申请人名称不能为空"
,
groups
=
{
Insert
.
class
})
@NotBlank
(
message
=
"申请人名称不能为空"
,
groups
=
{
Insert
.
class
})
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/CooperationController.java
浏览文件 @
147db56c
...
@@ -11,6 +11,8 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -11,6 +11,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
/**
/**
* @author: zj
* @author: zj
* @Date: 2023/5/17 21:17
* @Date: 2023/5/17 21:17
...
@@ -18,7 +20,7 @@ import org.springframework.web.bind.annotation.*;
...
@@ -18,7 +20,7 @@ import org.springframework.web.bind.annotation.*;
@Api
(
tags
=
"合作加盟"
)
@Api
(
tags
=
"合作加盟"
)
@RequestMapping
(
"/cooperation/"
)
@RequestMapping
(
"/cooperation/"
)
@RestController
@RestController
public
class
CooperationController
{
public
class
CooperationController
extends
BaseController
{
@Autowired
@Autowired
private
CooperationService
cooperationService
;
private
CooperationService
cooperationService
;
...
@@ -39,7 +41,9 @@ public class CooperationController {
...
@@ -39,7 +41,9 @@ public class CooperationController {
@ApiOperation
(
value
=
"申请加盟"
)
@ApiOperation
(
value
=
"申请加盟"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@PostMapping
(
"apply"
)
@PostMapping
(
"apply"
)
public
ResultBody
apply
(
@Validated
(
value
=
{
Insert
.
class
})
@RequestBody
UserApplyTagVO
userApplyTagVO
){
public
ResultBody
apply
(
@Validated
(
value
=
{
Insert
.
class
})
@RequestBody
UserApplyTagVO
userApplyTagVO
,
HttpServletRequest
request
){
Integer
userAccountId
=
this
.
getUserLoginInfoFromRedis
(
request
).
getUserAccountId
();
userApplyTagVO
.
setUserAccountId
(
userAccountId
);
return
cooperationService
.
apply
(
userApplyTagVO
);
return
cooperationService
.
apply
(
userApplyTagVO
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论