Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
data-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
data-server
Commits
c2c9baf3
Commit
c2c9baf3
authored
Apr 15, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
咨询审核接口update
parent
4b9ca5d2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
25 deletions
+30
-25
shopZx.java
...gy-model/src/main/java/cn/wisenergy/model/app/shopZx.java
+2
-2
ShopZxUserVo.java
...del/src/main/java/cn/wisenergy/model/vo/ShopZxUserVo.java
+1
-1
UserLevelService.java
.../main/java/cn/wisenergy/service/app/UserLevelService.java
+4
-1
UploadController.java
.../wisenergy/web/admin/controller/app/UploadController.java
+23
-21
No files found.
wisenergy-model/src/main/java/cn/wisenergy/model/app/shopZx.java
View file @
c2c9baf3
...
...
@@ -54,9 +54,9 @@ public class shopZx extends Model<shopZx> implements Serializable {
}
/**
* 审核字段
* 审核字段
0未审核 1审核通过 2 驳回
*/
@ApiModelProperty
(
name
=
"zx_to_examine"
,
value
=
"审核字段"
)
@ApiModelProperty
(
name
=
"zx_to_examine"
,
value
=
"审核字段
0未审核 1审核通过 2 驳回
"
)
private
Integer
zxToExamine
;
/**
* 资讯文字输入字段
...
...
wisenergy-model/src/main/java/cn/wisenergy/model/vo/ShopZxUserVo.java
View file @
c2c9baf3
...
...
@@ -47,7 +47,7 @@ public class ShopZxUserVo {
@ApiModelProperty
(
name
=
"liked_status"
,
value
=
"点赞状态"
)
private
Integer
likedStatus
;
@ApiModelProperty
(
name
=
"auditStatus"
,
value
=
"审核
状态
"
)
@ApiModelProperty
(
name
=
"auditStatus"
,
value
=
"审核
字段 0未审核 1审核通过 2 驳回
"
)
private
Integer
auditStatus
;
/**
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/UserLevelService.java
View file @
c2c9baf3
...
...
@@ -9,7 +9,10 @@ public interface UserLevelService {
*/
void
userLevelUpgrade
(
String
userId
);
//同步accountInfo 和TeamPerformance 的用户等级
/**
* 同步accountInfo 和TeamPerformance 的用户等级
* @param userId 用户id
*/
void
accountAndTeamPerformanceUserLevelUpdate
(
String
userId
);
}
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/UploadController.java
View file @
c2c9baf3
...
...
@@ -57,8 +57,8 @@ public class UploadController {
@ApiImplicitParam
(
name
=
"zxAddress"
,
value
=
"资讯发布地址"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"inviteCode"
,
value
=
"用户本人邀请码(发布人)"
,
required
=
true
,
dataType
=
"String"
)})
@RequestMapping
(
value
=
"/admin/ZX/uploadVideo"
,
method
=
RequestMethod
.
POST
)
public
Map
<
String
,
Object
>
uploadVideo
(
@RequestParam
(
value
=
"files"
)
MultipartFile
file
,
HttpServletRequest
request
,
String
zxField
,
String
inviteCode
)
throws
Exception
{
return
uploadService
.
uploadVideo
(
file
,
request
,
zxField
,
inviteCode
);
public
Map
<
String
,
Object
>
uploadVideo
(
@RequestParam
(
value
=
"files"
)
MultipartFile
file
,
HttpServletRequest
request
,
String
zxField
,
String
inviteCode
)
throws
Exception
{
return
uploadService
.
uploadVideo
(
file
,
request
,
zxField
,
inviteCode
);
}
/**
...
...
@@ -71,8 +71,8 @@ public class UploadController {
@ApiOperation
(
value
=
"用户头像上传接口"
,
notes
=
"返回路径给前台"
,
httpMethod
=
"POST"
,
produces
=
"application/json; charset=UTF-8"
)
@ApiImplicitParam
(
name
=
"file"
,
value
=
"单图片"
,
dataType
=
"MultipartFile"
)
@RequestMapping
(
value
=
"/ZX/uploadImage"
,
method
=
RequestMethod
.
POST
)
public
Map
<
String
,
Object
>
uploadImage
(
@RequestParam
(
value
=
"files"
)
MultipartFile
file
,
String
inviteCode
)
throws
Exception
{
return
uploadService
.
uploadImage
(
file
,
inviteCode
);
public
Map
<
String
,
Object
>
uploadImage
(
@RequestParam
(
value
=
"files"
)
MultipartFile
file
,
String
inviteCode
)
throws
Exception
{
return
uploadService
.
uploadImage
(
file
,
inviteCode
);
}
...
...
@@ -80,6 +80,7 @@ public class UploadController {
* *
* * TODO 多文件上传接口
* *
*
* @return
*/
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
UploadController
.
class
);
...
...
@@ -87,17 +88,18 @@ public class UploadController {
@ApiOperation
(
value
=
"资讯信息-文字/多图片上传接口"
,
notes
=
"上传图片,返回路径给前台"
,
httpMethod
=
"POST"
,
produces
=
"application/json; charset=UTF-8"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"zxField"
,
value
=
"资讯文字"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"files"
,
value
=
"多图片"
,
paramType
=
"form"
,
allowMultiple
=
true
,
dataType
=
"__file"
),
@ApiImplicitParam
(
name
=
"files"
,
value
=
"多图片"
,
paramType
=
"form"
,
allowMultiple
=
true
,
dataType
=
"__file"
),
@ApiImplicitParam
(
name
=
"inviteCode"
,
value
=
"用户本人邀请码(发布人)"
,
required
=
true
,
dataType
=
"String"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ZX/multipleImageUpload"
,
headers
=
"content-type=multipart/form-data"
)
public
Map
multipleImageUpload
(
@RequestParam
(
required
=
false
,
value
=
"files"
)
MultipartFile
[]
files
,
String
zxField
,
String
inviteCode
)
{
return
uploadService
.
imageUpload
(
files
,
zxField
,
inviteCode
);
public
Map
multipleImageUpload
(
@RequestParam
(
required
=
false
,
value
=
"files"
)
MultipartFile
[]
files
,
String
zxField
,
String
inviteCode
)
{
return
uploadService
.
imageUpload
(
files
,
zxField
,
inviteCode
);
}
/**
* TODO 资讯展示
* TODO 资讯展示
*
* @param pageNum
* @param pageSize
* @return
...
...
@@ -105,46 +107,46 @@ public class UploadController {
@ApiOperation
(
value
=
"用户发布已审核资讯信息倒叙展示"
,
notes
=
"倒叙展示"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"inviteCode"
,
value
=
"用户本人邀请码(发布人)"
,
required
=
false
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"pageNum"
,
value
=
"从几开始"
,
required
=
true
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"pageNum"
,
value
=
"从几开始"
,
required
=
true
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"pageSize"
,
value
=
"一页展示数量"
,
required
=
true
,
dataType
=
"Integer"
)})
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ZX/zxAll"
)
public
Map
selectPage
(
int
pageNum
,
int
pageSize
,
String
inviteCode
)
{
public
Map
selectPage
(
int
pageNum
,
int
pageSize
,
String
inviteCode
)
{
return
uploadService
.
selectPage
(
pageNum
,
pageSize
,
inviteCode
);
return
uploadService
.
selectPage
(
pageNum
,
pageSize
,
inviteCode
);
}
/**
*
TODO 点赞接口
* TODO 点赞接口
*/
@ApiOperation
(
value
=
"用户发布资讯信息点赞接口"
,
notes
=
"点赞接口"
,
httpMethod
=
"POST"
,
produces
=
"application/json; charset=UTF-8"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"zxid"
,
value
=
"资讯ID"
,
required
=
true
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
"inviteCode"
,
value
=
"用户本人邀请码(发布人)"
,
required
=
true
,
dataType
=
"String"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ZX/thumbUp"
)
public
Map
like
(
int
zxid
,
String
inviteCode
)
{
return
uploadService
.
Ilike
(
zxid
,
inviteCode
);
public
Map
like
(
int
zxid
,
String
inviteCode
)
{
return
uploadService
.
Ilike
(
zxid
,
inviteCode
);
}
/**
*
TODO 审核接口 0通过 1
驳回
*
0:未审核 1:审核通过 2:
驳回
*/
@ApiOperation
(
value
=
"用户发布资讯信息审核接口"
,
notes
=
"审核接口"
,
produces
=
"application/json; charset=UTF-8"
)
@ApiOperation
(
value
=
"用户发布资讯信息审核接口"
,
notes
=
"审核接口"
,
produces
=
"application/json; charset=UTF-8"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"zxid"
,
value
=
"资讯ID"
,
required
=
true
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
"approval"
,
value
=
"核准字段
:1是通过 0是
驳回"
,
required
=
true
,
dataType
=
"int"
)})
@ApiImplicitParam
(
name
=
"approval"
,
value
=
"核准字段
:0:未审核 1:审核通过 2:
驳回"
,
required
=
true
,
dataType
=
"int"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/admin/ZX/toExamine"
)
public
Map
ToExamine
(
int
zxid
,
int
approval
)
{
public
Map
ToExamine
(
int
zxid
,
int
approval
)
{
return
uploadService
.
toExamine
(
zxid
,
approval
);
return
uploadService
.
toExamine
(
zxid
,
approval
);
}
/**
*
TODO 查询资讯单表全部数据的API
* TODO 查询资讯单表全部数据的API
*/
@ApiOperation
(
value
=
"后台-资讯列表"
,
notes
=
"资讯列表"
,
httpMethod
=
"GET"
)
@ApiImplicitParam
(
name
=
"query"
,
value
=
"查询参数"
,
dataType
=
"CultivatingPrizeDto"
)
@GetMapping
(
"/admin/ZX/queryShopZxList"
)
public
R
<
PageInfo
<
ShopZxUserVo
>>
queryShopZxList
(
ShopZxUserDto
shopZxUserDto
){
public
R
<
PageInfo
<
ShopZxUserVo
>>
queryShopZxList
(
ShopZxUserDto
shopZxUserDto
)
{
return
uploadService
.
getShopZxUserList
(
shopZxUserDto
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment