|
@@ -33,9 +33,10 @@ import com.fs.store.vo.h5.*;
|
|
import com.fs.system.service.ISysConfigService;
|
|
import com.fs.system.service.ISysConfigService;
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.github.pagehelper.PageInfo;
|
|
-import io.swagger.annotations.Api;
|
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
|
-import io.swagger.annotations.ApiParam;
|
|
|
|
|
|
+import io.swagger.v3.oas.annotations.Parameter;
|
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
+
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -51,7 +52,7 @@ import java.util.Map;
|
|
import java.util.Objects;
|
|
import java.util.Objects;
|
|
|
|
|
|
@Slf4j
|
|
@Slf4j
|
|
-@Api(tags = "用户会员相关接口")
|
|
|
|
|
|
+@Tag(name = "用户会员相关接口")
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/app/fs/user")
|
|
@RequestMapping("/app/fs/user")
|
|
public class FsUserController extends AppBaseController {
|
|
public class FsUserController extends AppBaseController {
|
|
@@ -83,7 +84,7 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@PostMapping("/pageList")
|
|
@PostMapping("/pageList")
|
|
- @ApiOperation("用户会员分页列表")
|
|
|
|
|
|
+ @Operation(summary = "用户会员分页列表")
|
|
public ResponseResult<PageInfo<FsUserPageListVO>> pageList(@RequestBody FsUserPageListParam param) {
|
|
public ResponseResult<PageInfo<FsUserPageListVO>> pageList(@RequestBody FsUserPageListParam param) {
|
|
log.debug("用户会员分页列表 param: {}", JSON.toJSONString(param));
|
|
log.debug("用户会员分页列表 param: {}", JSON.toJSONString(param));
|
|
param.setUserId(Long.parseLong(getUserId()));
|
|
param.setUserId(Long.parseLong(getUserId()));
|
|
@@ -95,7 +96,7 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/allCompanyUser")
|
|
@GetMapping("/allCompanyUser")
|
|
- @ApiOperation("获取所有公司销售")
|
|
|
|
|
|
+ @Operation(summary = "获取所有公司销售")
|
|
public ResponseResult<List<CompanyUser>> getAllCompanyUser() {
|
|
public ResponseResult<List<CompanyUser>> getAllCompanyUser() {
|
|
List<CompanyUser> companyUsers = companyUserService.selectAllCompanyUserAndSelf(Long.parseLong(getUserId()));
|
|
List<CompanyUser> companyUsers = companyUserService.selectAllCompanyUserAndSelf(Long.parseLong(getUserId()));
|
|
return ResponseResult.ok(companyUsers);
|
|
return ResponseResult.ok(companyUsers);
|
|
@@ -103,7 +104,7 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/totalNumber")
|
|
@GetMapping("/totalNumber")
|
|
- @ApiOperation("用户会员数量统计")
|
|
|
|
|
|
+ @Operation(summary = "用户会员数量统计")
|
|
public ResponseResult<UserListPageVO> getTotalNumber() {
|
|
public ResponseResult<UserListPageVO> getTotalNumber() {
|
|
UserListPageVO userNumber = fsUserService.getUserNumber(Long.parseLong(getUserId()));
|
|
UserListPageVO userNumber = fsUserService.getUserNumber(Long.parseLong(getUserId()));
|
|
return ResponseResult.ok(userNumber);
|
|
return ResponseResult.ok(userNumber);
|
|
@@ -111,17 +112,17 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/details")
|
|
@GetMapping("/details")
|
|
- @ApiOperation("用户会员详情")
|
|
|
|
- public ResponseResult<UserDetailsVO> getUserDetails(@ApiParam(value = "用户id", required = true) @RequestParam Long userId,
|
|
|
|
- @ApiParam(value = "用户项目关联id", required = true) @RequestParam Long userCompanyId,
|
|
|
|
- @ApiParam(value = "时间tab,不传表示查询全部,分别是:今天、昨天、前天、近七天", required = true) @RequestParam(required = false) String dateTag) {
|
|
|
|
|
|
+ @Operation(summary = "用户会员详情")
|
|
|
|
+ public ResponseResult<UserDetailsVO> getUserDetails(@Parameter(name = "用户id", required = true) @RequestParam Long userId,
|
|
|
|
+ @Parameter(name = "用户项目关联id", required = true) @RequestParam Long userCompanyId,
|
|
|
|
+ @Parameter(name = "时间tab,不传表示查询全部,分别是:今天、昨天、前天、近七天", required = true) @RequestParam(required = false) String dateTag) {
|
|
UserDetailsVO userDetails = fsUserService.getUserDetails(Long.parseLong(getUserId()), userId, dateTag,userCompanyId);
|
|
UserDetailsVO userDetails = fsUserService.getUserDetails(Long.parseLong(getUserId()), userId, dateTag,userCompanyId);
|
|
return ResponseResult.ok(userDetails);
|
|
return ResponseResult.ok(userDetails);
|
|
}
|
|
}
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/tagList")
|
|
@GetMapping("/tagList")
|
|
- @ApiOperation("用户会员标签列表")
|
|
|
|
|
|
+ @Operation(summary = "用户会员标签列表")
|
|
public ResponseResult<PageInfo<CompanyUserTagListVO>> getTagList(TagListParam param) {
|
|
public ResponseResult<PageInfo<CompanyUserTagListVO>> getTagList(TagListParam param) {
|
|
log.debug("用户会员标签列表 param: {}", JSON.toJSONString(param));
|
|
log.debug("用户会员标签列表 param: {}", JSON.toJSONString(param));
|
|
param.setUserId(Long.parseLong(getUserId()));
|
|
param.setUserId(Long.parseLong(getUserId()));
|
|
@@ -137,8 +138,8 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@PostMapping("/disabled")
|
|
@PostMapping("/disabled")
|
|
- @ApiOperation("批量禁用会员")
|
|
|
|
- public ResponseResult<Boolean> disabledUser(@ApiParam(value = "联系人id集合", required = true) @RequestBody List<Long> userCompanyUserIds) {
|
|
|
|
|
|
+ @Operation(summary = "批量禁用会员")
|
|
|
|
+ public ResponseResult<Boolean> disabledUser(@Parameter(name = "联系人id集合", required = true) @RequestBody List<Long> userCompanyUserIds) {
|
|
log.debug("批量禁用会员 ids: {}", JSON.toJSONString(userCompanyUserIds));
|
|
log.debug("批量禁用会员 ids: {}", JSON.toJSONString(userCompanyUserIds));
|
|
Boolean r = userCompanyUserService.batchUpdateStatus(userCompanyUserIds, 2);
|
|
Boolean r = userCompanyUserService.batchUpdateStatus(userCompanyUserIds, 2);
|
|
return ResponseResult.ok(r);
|
|
return ResponseResult.ok(r);
|
|
@@ -146,8 +147,8 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@PostMapping("/enabled")
|
|
@PostMapping("/enabled")
|
|
- @ApiOperation("批量启用会员")
|
|
|
|
- public ResponseResult<Boolean> enabledUser(@ApiParam(value = "联系人id集合", required = true) @RequestBody List<Long> userCompanyUserIds) {
|
|
|
|
|
|
+ @Operation(summary = "批量启用会员")
|
|
|
|
+ public ResponseResult<Boolean> enabledUser(@Parameter(name = "联系人id集合", required = true) @RequestBody List<Long> userCompanyUserIds) {
|
|
log.debug("批量启用会员 ids: {}", JSON.toJSONString(userCompanyUserIds));
|
|
log.debug("批量启用会员 ids: {}", JSON.toJSONString(userCompanyUserIds));
|
|
Boolean r = userCompanyUserService.batchUpdateStatus(userCompanyUserIds, 1);
|
|
Boolean r = userCompanyUserService.batchUpdateStatus(userCompanyUserIds, 1);
|
|
return ResponseResult.ok(r);
|
|
return ResponseResult.ok(r);
|
|
@@ -155,7 +156,7 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/firstPage/summaryCount")
|
|
@GetMapping("/firstPage/summaryCount")
|
|
- @ApiOperation("首页数据-顶部汇总统计")
|
|
|
|
|
|
+ @Operation(summary = "首页数据-顶部汇总统计")
|
|
public ResponseResult<FsUserSummaryCountVO> userSummaryCount() {
|
|
public ResponseResult<FsUserSummaryCountVO> userSummaryCount() {
|
|
long userId = Long.parseLong(getUserId());
|
|
long userId = Long.parseLong(getUserId());
|
|
return ResponseResult.ok(fsUserService.userSummaryCount(userId));
|
|
return ResponseResult.ok(fsUserService.userSummaryCount(userId));
|
|
@@ -163,9 +164,9 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/firstPage/statistics")
|
|
@GetMapping("/firstPage/statistics")
|
|
- @ApiOperation("首页数据-课程/答题/红包统计")
|
|
|
|
- public ResponseResult<FsUserStatisticsVO> userStatistics(@ApiParam(value = "开始时间", required = true) @RequestParam String startTime,
|
|
|
|
- @ApiParam(value = "结束时间", required = true) @RequestParam String endTime) {
|
|
|
|
|
|
+ @Operation(summary = "首页数据-课程/答题/红包统计")
|
|
|
|
+ public ResponseResult<FsUserStatisticsVO> userStatistics(@Parameter(name = "开始时间", required = true) @RequestParam String startTime,
|
|
|
|
+ @Parameter(name = "结束时间", required = true) @RequestParam String endTime) {
|
|
long userId = Long.parseLong(getUserId());
|
|
long userId = Long.parseLong(getUserId());
|
|
/*---------- 如果传入的日期是今天 ----------*/
|
|
/*---------- 如果传入的日期是今天 ----------*/
|
|
UserStatisticsCommonParam param = new UserStatisticsCommonParam();
|
|
UserStatisticsCommonParam param = new UserStatisticsCommonParam();
|
|
@@ -190,9 +191,9 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/statistics/details")
|
|
@GetMapping("/statistics/details")
|
|
- @ApiOperation("数据统计详情-课程/答题/红包统计")
|
|
|
|
- public ResponseResult<FsUserStatisticsVO> userStatisticsDetails(@ApiParam(value = "营期id") @RequestParam(required = false) String periodId,
|
|
|
|
- @ApiParam(value = "视频id") @RequestParam(required = false) String videoId) {
|
|
|
|
|
|
+ @Operation(summary = "数据统计详情-课程/答题/红包统计")
|
|
|
|
+ public ResponseResult<FsUserStatisticsVO> userStatisticsDetails(@Parameter(name = "营期id") @RequestParam(required = false) String periodId,
|
|
|
|
+ @Parameter(name = "视频id") @RequestParam(required = false) String videoId) {
|
|
long userId = Long.parseLong(getUserId());
|
|
long userId = Long.parseLong(getUserId());
|
|
long companyId = getCompanyId();
|
|
long companyId = getCompanyId();
|
|
UserStatisticsCommonParam param = new UserStatisticsCommonParam();
|
|
UserStatisticsCommonParam param = new UserStatisticsCommonParam();
|
|
@@ -203,14 +204,14 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/firstPage/userRanking")
|
|
@GetMapping("/firstPage/userRanking")
|
|
- @ApiOperation("首页数据/详情-销售排行榜统计")
|
|
|
|
|
|
+ @Operation(summary = "首页数据/详情-销售排行榜统计")
|
|
public ResponseResult<List<FsUserRankingVO>> userRanking(
|
|
public ResponseResult<List<FsUserRankingVO>> userRanking(
|
|
- @ApiParam(value = "开始时间") @RequestParam(required = false) String startTime,
|
|
|
|
- @ApiParam(value = "结束时间") @RequestParam(required = false) String endTime,
|
|
|
|
- @ApiParam(value = "营期id") @RequestParam(required = false) String periodId,
|
|
|
|
- @ApiParam(value = "视频id") @RequestParam(required = false) String videoId,
|
|
|
|
- @ApiParam(value = "asc-正序,desc-倒序", required = true) @RequestParam String order,
|
|
|
|
- @ApiParam(value = "类型,1-按完播率,2-按正确率", required = true) @RequestParam Integer type
|
|
|
|
|
|
+ @Parameter(name = "开始时间") @RequestParam(required = false) String startTime,
|
|
|
|
+ @Parameter(name = "结束时间") @RequestParam(required = false) String endTime,
|
|
|
|
+ @Parameter(name = "营期id") @RequestParam(required = false) String periodId,
|
|
|
|
+ @Parameter(name = "视频id") @RequestParam(required = false) String videoId,
|
|
|
|
+ @Parameter(name = "asc-正序,desc-倒序", required = true) @RequestParam String order,
|
|
|
|
+ @Parameter(name = "类型,1-按完播率,2-按正确率", required = true) @RequestParam Integer type
|
|
) {
|
|
) {
|
|
long userId = Long.parseLong(getUserId());
|
|
long userId = Long.parseLong(getUserId());
|
|
return ResponseResult.ok(fsUserService.userRanking(userId, startTime, endTime, periodId, videoId, order, type));
|
|
return ResponseResult.ok(fsUserService.userRanking(userId, startTime, endTime, periodId, videoId, order, type));
|
|
@@ -218,14 +219,14 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/firstPage/courseRanking")
|
|
@GetMapping("/firstPage/courseRanking")
|
|
- @ApiOperation("首页数据/详情-课程排行榜统计")
|
|
|
|
|
|
+ @Operation(summary = "首页数据/详情-课程排行榜统计")
|
|
public ResponseResult<List<FsCourseRankingVO>> courseRanking(
|
|
public ResponseResult<List<FsCourseRankingVO>> courseRanking(
|
|
- @ApiParam(value = "开始时间") @RequestParam(required = false) String startTime,
|
|
|
|
- @ApiParam(value = "结束时间") @RequestParam(required = false) String endTime,
|
|
|
|
- @ApiParam(value = "课程id") @RequestParam(required = false) String courseId,
|
|
|
|
- @ApiParam(value = "视频id") @RequestParam(required = false) String videoId,
|
|
|
|
- @ApiParam(value = "asc-正序,desc-倒序", required = true) @RequestParam String order,
|
|
|
|
- @ApiParam(value = "类型,1-按完播率,2-按正确率", required = true) @RequestParam Integer type
|
|
|
|
|
|
+ @Parameter(name = "开始时间") @RequestParam(required = false) String startTime,
|
|
|
|
+ @Parameter(name = "结束时间") @RequestParam(required = false) String endTime,
|
|
|
|
+ @Parameter(name = "课程id") @RequestParam(required = false) String courseId,
|
|
|
|
+ @Parameter(name = "视频id") @RequestParam(required = false) String videoId,
|
|
|
|
+ @Parameter(name = "asc-正序,desc-倒序", required = true) @RequestParam String order,
|
|
|
|
+ @Parameter(name = "类型,1-按完播率,2-按正确率", required = true) @RequestParam Integer type
|
|
) {
|
|
) {
|
|
long userId = Long.parseLong(getUserId());
|
|
long userId = Long.parseLong(getUserId());
|
|
return ResponseResult.ok(fsUserService.courseRanking(userId, startTime, endTime, courseId, videoId, order, type));
|
|
return ResponseResult.ok(fsUserService.courseRanking(userId, startTime, endTime, courseId, videoId, order, type));
|
|
@@ -233,9 +234,9 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/firstPage/graphic")
|
|
@GetMapping("/firstPage/graphic")
|
|
- @ApiOperation("首页数据-转化漏斗图")
|
|
|
|
- public ResponseResult<List<FsUserGraphicStatisticsVO>> graphicStatistics(@ApiParam(value = "开始时间", required = true) @RequestParam String startTime,
|
|
|
|
- @ApiParam(value = "结束时间", required = true) @RequestParam String endTime) {
|
|
|
|
|
|
+ @Operation(summary = "首页数据-转化漏斗图")
|
|
|
|
+ public ResponseResult<List<FsUserGraphicStatisticsVO>> graphicStatistics(@Parameter(name = "开始时间", required = true) @RequestParam String startTime,
|
|
|
|
+ @Parameter(name = "结束时间", required = true) @RequestParam String endTime) {
|
|
long userId = Long.parseLong(getUserId());
|
|
long userId = Long.parseLong(getUserId());
|
|
UserStatisticsCommonParam param = new UserStatisticsCommonParam();
|
|
UserStatisticsCommonParam param = new UserStatisticsCommonParam();
|
|
param.setUserId(userId).setStartTime(startTime).setEndTime(endTime);
|
|
param.setUserId(userId).setStartTime(startTime).setEndTime(endTime);
|
|
@@ -245,9 +246,9 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/graphic/details")
|
|
@GetMapping("/graphic/details")
|
|
- @ApiOperation("详情-转化漏斗图")
|
|
|
|
- public ResponseResult<List<FsUserGraphicStatisticsVO>> graphicStatisticsDetails(@ApiParam(value = "营期id") @RequestParam(required = false) String periodId,
|
|
|
|
- @ApiParam(value = "视频id") @RequestParam(required = false) String videoId) {
|
|
|
|
|
|
+ @Operation(summary = "详情-转化漏斗图")
|
|
|
|
+ public ResponseResult<List<FsUserGraphicStatisticsVO>> graphicStatisticsDetails(@Parameter(name = "营期id") @RequestParam(required = false) String periodId,
|
|
|
|
+ @Parameter(name = "视频id") @RequestParam(required = false) String videoId) {
|
|
long userId = Long.parseLong(getUserId());
|
|
long userId = Long.parseLong(getUserId());
|
|
UserStatisticsCommonParam param = new UserStatisticsCommonParam();
|
|
UserStatisticsCommonParam param = new UserStatisticsCommonParam();
|
|
param.setUserId(userId).setPeriodId(periodId).setVideoId(videoId);
|
|
param.setUserId(userId).setPeriodId(periodId).setVideoId(videoId);
|
|
@@ -256,7 +257,7 @@ public class FsUserController extends AppBaseController {
|
|
}
|
|
}
|
|
|
|
|
|
@Login
|
|
@Login
|
|
- @ApiOperation("修改用户备注、姓名")
|
|
|
|
|
|
+ @Operation(summary = "修改用户备注、姓名")
|
|
@PostMapping("/changeUserInfo")
|
|
@PostMapping("/changeUserInfo")
|
|
public ResponseResult<Object> changeUserInfo(@Valid @RequestBody FsUserUpdateParam param) {
|
|
public ResponseResult<Object> changeUserInfo(@Valid @RequestBody FsUserUpdateParam param) {
|
|
log.debug("修改用户备注、姓名 param:{}", JSON.toJSONString(param));
|
|
log.debug("修改用户备注、姓名 param:{}", JSON.toJSONString(param));
|
|
@@ -272,7 +273,7 @@ public class FsUserController extends AppBaseController {
|
|
}
|
|
}
|
|
|
|
|
|
@Login
|
|
@Login
|
|
- @ApiOperation("修改用户项目备注")
|
|
|
|
|
|
+ @Operation(summary = "修改用户项目备注")
|
|
@PostMapping("/changeUserRemark")
|
|
@PostMapping("/changeUserRemark")
|
|
public ResponseResult<Object> changeUserProjectRemark(@Valid @RequestBody FsUserProjectUpdateParam param) {
|
|
public ResponseResult<Object> changeUserProjectRemark(@Valid @RequestBody FsUserProjectUpdateParam param) {
|
|
log.debug("修改用户备注 param:{}", JSON.toJSONString(param));
|
|
log.debug("修改用户备注 param:{}", JSON.toJSONString(param));
|
|
@@ -287,7 +288,7 @@ public class FsUserController extends AppBaseController {
|
|
}
|
|
}
|
|
|
|
|
|
@Login
|
|
@Login
|
|
- @ApiOperation("修改用户标签")
|
|
|
|
|
|
+ @Operation(summary = "修改用户标签")
|
|
@PostMapping("/changeUserTags")
|
|
@PostMapping("/changeUserTags")
|
|
public ResponseResult<Object> changeUserTags(@Valid @RequestBody FsUserTagUpdateParam param) {
|
|
public ResponseResult<Object> changeUserTags(@Valid @RequestBody FsUserTagUpdateParam param) {
|
|
log.debug("修改用户标签 param:{}", JSON.toJSONString(param));
|
|
log.debug("修改用户标签 param:{}", JSON.toJSONString(param));
|
|
@@ -297,7 +298,7 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/courseAnalysis")
|
|
@GetMapping("/courseAnalysis")
|
|
- @ApiOperation("管理-课程分析-分页列表查询")
|
|
|
|
|
|
+ @Operation(summary = "管理-课程分析-分页列表查询")
|
|
public ResponseResult<PageInfo<FsCourseAnalysisVO>> courseAnalysisList(CourseAnalysisParam param) {
|
|
public ResponseResult<PageInfo<FsCourseAnalysisVO>> courseAnalysisList(CourseAnalysisParam param) {
|
|
param.setCompanyId(getCompanyId());
|
|
param.setCompanyId(getCompanyId());
|
|
PageHelper.startPage(param.getPageNum(), param.getPageSize());
|
|
PageHelper.startPage(param.getPageNum(), param.getPageSize());
|
|
@@ -308,10 +309,10 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/companyUser/details")
|
|
@GetMapping("/companyUser/details")
|
|
- @ApiOperation("管理-群管数据-根据销售id,群管数据统计")
|
|
|
|
- public ResponseResult<FsUserStatisticsVO> companyUserStatistics(@ApiParam(value = "营期id") @RequestParam(required = false) String periodId,
|
|
|
|
- @ApiParam(value = "视频id") @RequestParam(required = false) String videoId,
|
|
|
|
- @ApiParam(value = "销售用户id", required = true) @RequestParam String companyUserId) {
|
|
|
|
|
|
+ @Operation(summary = "管理-群管数据-根据销售id,群管数据统计")
|
|
|
|
+ public ResponseResult<FsUserStatisticsVO> companyUserStatistics(@Parameter(name = "营期id") @RequestParam(required = false) String periodId,
|
|
|
|
+ @Parameter(name = "视频id") @RequestParam(required = false) String videoId,
|
|
|
|
+ @Parameter(name = "销售用户id", required = true) @RequestParam String companyUserId) {
|
|
UserStatisticsCommonParam param = new UserStatisticsCommonParam();
|
|
UserStatisticsCommonParam param = new UserStatisticsCommonParam();
|
|
param.setUserId(Long.parseLong(getUserId()))
|
|
param.setUserId(Long.parseLong(getUserId()))
|
|
.setPeriodId(periodId).setVideoId(videoId)
|
|
.setPeriodId(periodId).setVideoId(videoId)
|
|
@@ -323,13 +324,13 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@GetMapping("/companyUser/summaryCount")
|
|
@GetMapping("/companyUser/summaryCount")
|
|
- @ApiOperation("管理-群管数据-顶部会员统计")
|
|
|
|
- public ResponseResult<CompanyUserSummaryCountVO> companyUserSummaryCount(@ApiParam(value = "销售用户id", required = true) @RequestParam String companyUserId) {
|
|
|
|
|
|
+ @Operation(summary = "管理-群管数据-顶部会员统计")
|
|
|
|
+ public ResponseResult<CompanyUserSummaryCountVO> companyUserSummaryCount(@Parameter(name = "销售用户id", required = true) @RequestParam String companyUserId) {
|
|
long userId = Long.parseLong(getUserId());
|
|
long userId = Long.parseLong(getUserId());
|
|
return ResponseResult.ok(fsUserService.companyUserSummaryCount(userId, companyUserId));
|
|
return ResponseResult.ok(fsUserService.companyUserSummaryCount(userId, companyUserId));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation("会员关联绑定销售")
|
|
|
|
|
|
+ @Operation(summary = "会员关联绑定销售")
|
|
@PostMapping("/beMember")
|
|
@PostMapping("/beMember")
|
|
public ResponseResult<Boolean> becomeMember(@Valid @RequestBody FsUserCourseBeMemberParam param) {
|
|
public ResponseResult<Boolean> becomeMember(@Valid @RequestBody FsUserCourseBeMemberParam param) {
|
|
log.debug("会员关联绑定销售 param:{}", JSON.toJSONString(param));
|
|
log.debug("会员关联绑定销售 param:{}", JSON.toJSONString(param));
|
|
@@ -338,7 +339,7 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@PostMapping("/userImage")
|
|
@PostMapping("/userImage")
|
|
- @ApiOperation("生成分享会员海报")
|
|
|
|
|
|
+ @Operation(summary = "生成分享会员海报")
|
|
public R createCourseImage(@RequestBody FsUserCourseBeMemberImageParam param) {
|
|
public R createCourseImage(@RequestBody FsUserCourseBeMemberImageParam param) {
|
|
try {
|
|
try {
|
|
//获取用户头像
|
|
//获取用户头像
|
|
@@ -372,7 +373,7 @@ public class FsUserController extends AppBaseController {
|
|
}
|
|
}
|
|
|
|
|
|
@PostMapping("/test")
|
|
@PostMapping("/test")
|
|
- @ApiOperation("测试定时任务")
|
|
|
|
|
|
+ @Operation(summary = "测试定时任务")
|
|
public void userCourseCountTask() {
|
|
public void userCourseCountTask() {
|
|
userCourseCountService.insertFsUserCourseCountTask();
|
|
userCourseCountService.insertFsUserCourseCountTask();
|
|
}
|
|
}
|