init
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
package com.ruoyi.cai.auth;
|
package com.ruoyi.cai.auth;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "登陆入参模型")
|
||||||
public class LoginCaiUser {
|
public class LoginCaiUser {
|
||||||
|
@Schema(description = "用户")
|
||||||
private String username;
|
private String username;
|
||||||
|
@Schema(description = "密码")
|
||||||
private String password;
|
private String password;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import com.ruoyi.common.core.domain.PageQuery;
|
|||||||
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.common.core.domain.R;
|
||||||
import com.ruoyi.common.core.page.TableDataInfo;
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
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.*;
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ import com.ruoyi.cai.auth.LoginCaiUser;
|
|||||||
import com.ruoyi.cai.service.CaiUserService;
|
import com.ruoyi.cai.service.CaiUserService;
|
||||||
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.common.core.domain.R;
|
||||||
import com.ruoyi.common.core.domain.model.LoginBody;
|
import com.ruoyi.common.core.domain.model.LoginBody;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
@@ -18,6 +21,7 @@ import java.util.Map;
|
|||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/auth")
|
@RequestMapping("/api/auth")
|
||||||
@SaIgnore
|
@SaIgnore
|
||||||
|
@Tag(name = "权限相关接口,免鉴权")
|
||||||
public class CaiAuthAppController {
|
public class CaiAuthAppController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -26,13 +30,15 @@ public class CaiAuthAppController {
|
|||||||
private CaiUserService caiUserService;
|
private CaiUserService caiUserService;
|
||||||
|
|
||||||
@PostMapping("/register")
|
@PostMapping("/register")
|
||||||
|
@Operation(summary = "注册")
|
||||||
public R<Void> register(@RequestBody LoginCaiUser caiUser){
|
public R<Void> register(@RequestBody LoginCaiUser caiUser){
|
||||||
caiUserService.register(caiUser);
|
caiUserService.register(caiUser);
|
||||||
return R.ok();
|
return R.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/login")
|
@PostMapping("/login")
|
||||||
public R<Map<String,Object>> login(@RequestBody LoginBody loginBody){
|
@Operation(summary = "登陆")
|
||||||
|
public R<Map<String,Object>> login(@RequestBody LoginCaiUser loginBody){
|
||||||
Map<String, Object> ajax = new HashMap<>();
|
Map<String, Object> ajax = new HashMap<>();
|
||||||
String token = caiLoginManager.login(loginBody.getUsername(), loginBody.getPassword());
|
String token = caiLoginManager.login(loginBody.getUsername(), loginBody.getPassword());
|
||||||
ajax.put("token",token);
|
ajax.put("token",token);
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import com.ruoyi.common.core.domain.PageQuery;
|
|||||||
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.common.core.domain.R;
|
||||||
import com.ruoyi.common.core.page.TableDataInfo;
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
import com.ruoyi.common.helper.LoginHelper;
|
import com.ruoyi.common.helper.LoginHelper;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
@@ -23,6 +25,7 @@ import java.util.List;
|
|||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/current")
|
@RequestMapping("/api/current")
|
||||||
|
@Tag(name = "当前用户相关接口")
|
||||||
public class CaiCurrentUserAppController {
|
public class CaiCurrentUserAppController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private CurrentUserManager currentUserManager;
|
private CurrentUserManager currentUserManager;
|
||||||
@@ -36,18 +39,21 @@ public class CaiCurrentUserAppController {
|
|||||||
private CaiReportService reportService;
|
private CaiReportService reportService;
|
||||||
|
|
||||||
@GetMapping("/user/aliInfo")
|
@GetMapping("/user/aliInfo")
|
||||||
|
@Operation(summary = "获取绑定支付宝信息")
|
||||||
public R<CaiAccountBankcard> aliInfo(){
|
public R<CaiAccountBankcard> aliInfo(){
|
||||||
CaiAccountBankcard accountBankcard = currentUserManager.aliInfo();
|
CaiAccountBankcard accountBankcard = currentUserManager.aliInfo();
|
||||||
return R.ok(accountBankcard);
|
return R.ok(accountBankcard);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/user/save-or-update/ali")
|
@PostMapping("/user/save-or-update/ali")
|
||||||
|
@Operation(summary = "支付宝信息的新增和修改")
|
||||||
public R<Boolean> updateAli(AccountAliBankCardRes res){
|
public R<Boolean> updateAli(AccountAliBankCardRes res){
|
||||||
currentUserManager.saveOrUpdateAliInfo(res);
|
currentUserManager.saveOrUpdateAliInfo(res);
|
||||||
return R.ok(true);
|
return R.ok(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/user/withdraw/ali")
|
@PostMapping("/user/withdraw/ali")
|
||||||
|
@Operation(summary = "支付宝提现接口")
|
||||||
public R<Boolean> withdraw(WithdrawRes res){
|
public R<Boolean> withdraw(WithdrawRes res){
|
||||||
res.setUserId(LoginHelper.getUserId());
|
res.setUserId(LoginHelper.getUserId());
|
||||||
accountCashService.withdraw(res);
|
accountCashService.withdraw(res);
|
||||||
@@ -55,47 +61,56 @@ public class CaiCurrentUserAppController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/user/info")
|
@GetMapping("/user/info")
|
||||||
|
@Operation(summary = "当前用户信息")
|
||||||
public R<CurrentUserInfoVo> currentInfo(){
|
public R<CurrentUserInfoVo> currentInfo(){
|
||||||
return R.ok(currentUserManager.currentInfo());
|
return R.ok(currentUserManager.currentInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/user/account")
|
@GetMapping("/user/account")
|
||||||
|
@Operation(summary = "快速获取当前用户账号信息")
|
||||||
public R<UserAccountVo> currentAccount(){
|
public R<UserAccountVo> currentAccount(){
|
||||||
return R.ok(currentUserManager.currentAccount());
|
return R.ok(currentUserManager.currentAccount());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/anchor/info")
|
@GetMapping("/anchor/info")
|
||||||
|
@Operation(summary = "当前用户的主播信息")
|
||||||
public R<AnchorVo> anchorInfo(){
|
public R<AnchorVo> anchorInfo(){
|
||||||
return R.ok(currentUserManager.anchorInfo());
|
return R.ok(currentUserManager.anchorInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/anchor/update")
|
@PostMapping("/anchor/update")
|
||||||
|
@Operation(summary = "修改当前用户的主播信息")
|
||||||
public R<Boolean> anchorUpdate(AnchorUpdateRes anchorUpdate){
|
public R<Boolean> anchorUpdate(AnchorUpdateRes anchorUpdate){
|
||||||
return R.ok(currentUserManager.anchorUpdate(anchorUpdate));
|
return R.ok(currentUserManager.anchorUpdate(anchorUpdate));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/user/update")
|
@PostMapping("/user/update")
|
||||||
|
@Operation(summary = "修改当前用户信息")
|
||||||
public R<Boolean> userUpdate(UserUpdateRes res){
|
public R<Boolean> userUpdate(UserUpdateRes res){
|
||||||
return R.ok(currentUserManager.userUpdate(res));
|
return R.ok(currentUserManager.userUpdate(res));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/user/album/del")
|
@PostMapping("/user/album/del")
|
||||||
|
@Operation(summary = "删除相册")
|
||||||
public R<Boolean> userAlbumDel(IdRes res){
|
public R<Boolean> userAlbumDel(IdRes res){
|
||||||
return R.ok(userAlbumService.removeAlbum(res.getId()));
|
return R.ok(userAlbumService.removeAlbum(res.getId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/user/album/add")
|
@PostMapping("/user/album/add")
|
||||||
|
@Operation(summary = "新增相册")
|
||||||
public R<Boolean> userAlbumAdd(AlbumAddRes res){
|
public R<Boolean> userAlbumAdd(AlbumAddRes res){
|
||||||
res.setUserId(LoginHelper.getUserId());
|
res.setUserId(LoginHelper.getUserId());
|
||||||
return R.ok(userAlbumService.addAlbum(res));
|
return R.ok(userAlbumService.addAlbum(res));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/user/album/reset")
|
@PostMapping("/user/album/reset")
|
||||||
|
@Operation(summary = "重排序相册")
|
||||||
public R<Boolean> userAlbumAdd(List<AlbumResetRes> res){
|
public R<Boolean> userAlbumAdd(List<AlbumResetRes> res){
|
||||||
return R.ok(userAlbumService.resetAlbum(res,LoginHelper.getUserId()));
|
return R.ok(userAlbumService.resetAlbum(res,LoginHelper.getUserId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/user/recharge/log")
|
@GetMapping("/user/recharge/log")
|
||||||
|
@Operation(summary = "充值记录-分页")
|
||||||
public TableDataInfo<AccountRechargeVo> rechargeLog(PageQuery query){
|
public TableDataInfo<AccountRechargeVo> rechargeLog(PageQuery query){
|
||||||
Long userId = LoginHelper.getUserId();
|
Long userId = LoginHelper.getUserId();
|
||||||
Page<CaiAccountRecharge> page = caiAccountRechargeService.page(query.build(), Wrappers.lambdaQuery(CaiAccountRecharge.class)
|
Page<CaiAccountRecharge> page = caiAccountRechargeService.page(query.build(), Wrappers.lambdaQuery(CaiAccountRecharge.class)
|
||||||
@@ -105,6 +120,7 @@ public class CaiCurrentUserAppController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/user/cash/log")
|
@GetMapping("/user/cash/log")
|
||||||
|
@Operation(summary = "提现记录-分页")
|
||||||
public TableDataInfo<AccountCashVo> cashLog(PageQuery query){
|
public TableDataInfo<AccountCashVo> cashLog(PageQuery query){
|
||||||
Long userId = LoginHelper.getUserId();
|
Long userId = LoginHelper.getUserId();
|
||||||
Page<CaiAccountCash> page = accountCashService.page(query.build(), Wrappers.lambdaQuery(CaiAccountCash.class)
|
Page<CaiAccountCash> page = accountCashService.page(query.build(), Wrappers.lambdaQuery(CaiAccountCash.class)
|
||||||
@@ -114,6 +130,7 @@ public class CaiCurrentUserAppController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/user/report")
|
@PostMapping("/user/report")
|
||||||
|
@Operation(summary = "举报")
|
||||||
public R<Void> report(UserReportRes reportRes){
|
public R<Void> report(UserReportRes reportRes){
|
||||||
Long userId = LoginHelper.getUserId();
|
Long userId = LoginHelper.getUserId();
|
||||||
reportRes.setUserId(userId);
|
reportRes.setUserId(userId);
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import com.ruoyi.cai.service.CaiGoodsService;
|
|||||||
import com.ruoyi.cai.service.CaiReportCateService;
|
import com.ruoyi.cai.service.CaiReportCateService;
|
||||||
import com.ruoyi.cai.service.CaiWithdrawExchangeService;
|
import com.ruoyi.cai.service.CaiWithdrawExchangeService;
|
||||||
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.common.core.domain.R;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
@@ -17,6 +19,7 @@ import java.util.List;
|
|||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/setting")
|
@RequestMapping("/api/setting")
|
||||||
|
@Tag(name = "获取设置相关接口")
|
||||||
public class CaiSettingAppController {
|
public class CaiSettingAppController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -27,6 +30,7 @@ public class CaiSettingAppController {
|
|||||||
private CaiReportCateService reportCateService;
|
private CaiReportCateService reportCateService;
|
||||||
|
|
||||||
@GetMapping("/goods")
|
@GetMapping("/goods")
|
||||||
|
@Operation(summary = "充值配置")
|
||||||
public R<List<CaiGoods>> goods(){
|
public R<List<CaiGoods>> goods(){
|
||||||
List<CaiGoods> list = goodsService.list(Wrappers.lambdaQuery(CaiGoods.class)
|
List<CaiGoods> list = goodsService.list(Wrappers.lambdaQuery(CaiGoods.class)
|
||||||
.eq(CaiGoods::getStatus,0)
|
.eq(CaiGoods::getStatus,0)
|
||||||
@@ -35,6 +39,7 @@ public class CaiSettingAppController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/withdraw")
|
@GetMapping("/withdraw")
|
||||||
|
@Operation(summary = "提现配置")
|
||||||
public R<List<CaiWithdrawExchange>> withdraw(){
|
public R<List<CaiWithdrawExchange>> withdraw(){
|
||||||
List<CaiWithdrawExchange> list = withdrawExchangeService.list(Wrappers.lambdaQuery(CaiWithdrawExchange.class)
|
List<CaiWithdrawExchange> list = withdrawExchangeService.list(Wrappers.lambdaQuery(CaiWithdrawExchange.class)
|
||||||
.orderByAsc(CaiWithdrawExchange::getMoney));
|
.orderByAsc(CaiWithdrawExchange::getMoney));
|
||||||
@@ -42,6 +47,7 @@ public class CaiSettingAppController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/report")
|
@GetMapping("/report")
|
||||||
|
@Operation(summary = "举报分类配置")
|
||||||
public R<List<CaiReportCate>> report(){
|
public R<List<CaiReportCate>> report(){
|
||||||
List<CaiReportCate> list = reportCateService.list(Wrappers.lambdaQuery(CaiReportCate.class));
|
List<CaiReportCate> list = reportCateService.list(Wrappers.lambdaQuery(CaiReportCate.class));
|
||||||
return R.ok(list);
|
return R.ok(list);
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ import com.ruoyi.common.core.domain.R;
|
|||||||
import com.ruoyi.common.core.domain.model.LoginUser;
|
import com.ruoyi.common.core.domain.model.LoginUser;
|
||||||
import com.ruoyi.common.core.page.TableDataInfo;
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
import com.ruoyi.common.helper.LoginHelper;
|
import com.ruoyi.common.helper.LoginHelper;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
@@ -17,18 +19,21 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/user")
|
@RequestMapping("/api/user")
|
||||||
|
@Tag(name = "用户相关接口")
|
||||||
public class CaiUserAppController {
|
public class CaiUserAppController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private CaiUserService caiUserService;
|
private CaiUserService caiUserService;
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
|
@Operation(summary = "用户全局查询-分页")
|
||||||
public TableDataInfo<UserListVo> page(PageQuery page, UserQuery query){
|
public TableDataInfo<UserListVo> page(PageQuery page, UserQuery query){
|
||||||
Page<UserListVo> res = caiUserService.pageApp(page,query);
|
Page<UserListVo> res = caiUserService.pageApp(page,query);
|
||||||
return TableDataInfo.build(res);
|
return TableDataInfo.build(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/info")
|
@GetMapping("/info")
|
||||||
|
@Operation(summary = "用户首页信息")
|
||||||
public R<UserInfoVo> info(Long userId){
|
public R<UserInfoVo> info(Long userId){
|
||||||
UserInfoVo res = caiUserService.info(userId);
|
UserInfoVo res = caiUserService.info(userId);
|
||||||
return R.ok(res);
|
return R.ok(res);
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ import com.ruoyi.common.core.domain.PageQuery;
|
|||||||
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.common.core.domain.R;
|
||||||
import com.ruoyi.common.core.page.TableDataInfo;
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
import com.ruoyi.common.helper.LoginHelper;
|
import com.ruoyi.common.helper.LoginHelper;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
@@ -19,6 +21,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/dynamic")
|
@RequestMapping("/api/dynamic")
|
||||||
|
@Tag(name = "广场动态相关接口")
|
||||||
public class CaiUserDynamicAppController {
|
public class CaiUserDynamicAppController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -27,12 +30,14 @@ public class CaiUserDynamicAppController {
|
|||||||
private CaiUserFollowDynamicService userFollowDynamicService;
|
private CaiUserFollowDynamicService userFollowDynamicService;
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
|
@Operation(summary = "广场动态查询")
|
||||||
public TableDataInfo<DynamicListVo> page(PageQuery pageQuery, DynamicQuery query){
|
public TableDataInfo<DynamicListVo> page(PageQuery pageQuery, DynamicQuery query){
|
||||||
Page<DynamicListVo> resp = dynamicService.pageApp(pageQuery,query);
|
Page<DynamicListVo> resp = dynamicService.pageApp(pageQuery,query);
|
||||||
return TableDataInfo.build(resp);
|
return TableDataInfo.build(resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/star")
|
@PostMapping("/star")
|
||||||
|
@Operation(summary = "关注动态")
|
||||||
public R<Void> star(DynamicStarRes query){
|
public R<Void> star(DynamicStarRes query){
|
||||||
query.setUserId(LoginHelper.getUserId());
|
query.setUserId(LoginHelper.getUserId());
|
||||||
userFollowDynamicService.star(query);
|
userFollowDynamicService.star(query);
|
||||||
@@ -40,6 +45,7 @@ public class CaiUserDynamicAppController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/unstar")
|
@PostMapping("/unstar")
|
||||||
|
@Operation(summary = "取消关注动态")
|
||||||
public R<Void> unStar(DynamicStarRes query){
|
public R<Void> unStar(DynamicStarRes query){
|
||||||
query.setUserId(LoginHelper.getUserId());
|
query.setUserId(LoginHelper.getUserId());
|
||||||
userFollowDynamicService.unStar(query);
|
userFollowDynamicService.unStar(query);
|
||||||
@@ -47,6 +53,7 @@ public class CaiUserDynamicAppController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/save")
|
@PostMapping("/save")
|
||||||
|
@Operation(summary = "发布动态")
|
||||||
public R<Void> save(DynamicAddRes res){
|
public R<Void> save(DynamicAddRes res){
|
||||||
res.setUserId(LoginHelper.getUserId());
|
res.setUserId(LoginHelper.getUserId());
|
||||||
dynamicService.saveDynamic(res);
|
dynamicService.saveDynamic(res);
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import com.ruoyi.cai.service.CaiUserFollowService;
|
|||||||
import com.ruoyi.common.core.domain.PageQuery;
|
import com.ruoyi.common.core.domain.PageQuery;
|
||||||
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.common.core.domain.R;
|
||||||
import com.ruoyi.common.core.page.TableDataInfo;
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
@@ -16,24 +18,28 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/user/star")
|
@RequestMapping("/api/user/star")
|
||||||
|
@Tag(name = "关注相关接口")
|
||||||
public class CaiUserStartAppController {
|
public class CaiUserStartAppController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private CaiUserFollowService userFollowService;
|
private CaiUserFollowService userFollowService;
|
||||||
|
|
||||||
@PostMapping("/star")
|
@PostMapping("/star")
|
||||||
|
@Operation(summary = "关注用户")
|
||||||
public R<Boolean> star(StarOrVisitorRes starOrVisitorRes){
|
public R<Boolean> star(StarOrVisitorRes starOrVisitorRes){
|
||||||
boolean bool = userFollowService.star(starOrVisitorRes);
|
boolean bool = userFollowService.star(starOrVisitorRes);
|
||||||
return R.ok(bool);
|
return R.ok(bool);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/unstar")
|
@PostMapping("/unstar")
|
||||||
|
@Operation(summary = "取消关注用户")
|
||||||
public R<Boolean> unStar(StarOrVisitorRes starOrVisitorRes){
|
public R<Boolean> unStar(StarOrVisitorRes starOrVisitorRes){
|
||||||
boolean bool = userFollowService.unStar(starOrVisitorRes);
|
boolean bool = userFollowService.unStar(starOrVisitorRes);
|
||||||
return R.ok(bool);
|
return R.ok(bool);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
|
@Operation(summary = "关注、粉丝列表查询")
|
||||||
public TableDataInfo<UserStarOrVisitorList> page(StarQuery query, PageQuery pageQuery){
|
public TableDataInfo<UserStarOrVisitorList> page(StarQuery query, PageQuery pageQuery){
|
||||||
Page<UserStarOrVisitorList> res = userFollowService.pageApp(pageQuery,query);
|
Page<UserStarOrVisitorList> res = userFollowService.pageApp(pageQuery,query);
|
||||||
return TableDataInfo.build(res);
|
return TableDataInfo.build(res);
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import com.ruoyi.cai.service.CaiUserVisitorService;
|
|||||||
import com.ruoyi.common.core.domain.PageQuery;
|
import com.ruoyi.common.core.domain.PageQuery;
|
||||||
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.common.core.domain.R;
|
||||||
import com.ruoyi.common.core.page.TableDataInfo;
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
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.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
@@ -18,6 +20,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/user/visitor")
|
@RequestMapping("/api/user/visitor")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
@Tag(name = "访问记录相关接口")
|
||||||
public class CaiUserVisitorAppController {
|
public class CaiUserVisitorAppController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -25,6 +28,7 @@ public class CaiUserVisitorAppController {
|
|||||||
|
|
||||||
// 除网络问题不返回异常。避免影响业务
|
// 除网络问题不返回异常。避免影响业务
|
||||||
@PostMapping("/visitor")
|
@PostMapping("/visitor")
|
||||||
|
@Operation(summary = "新增浏览记录")
|
||||||
public R<Boolean> visitor(StarOrVisitorRes starOrVisitorRes){
|
public R<Boolean> visitor(StarOrVisitorRes starOrVisitorRes){
|
||||||
try {
|
try {
|
||||||
boolean bool = userVisitorService.visitor(starOrVisitorRes);
|
boolean bool = userVisitorService.visitor(starOrVisitorRes);
|
||||||
@@ -35,6 +39,7 @@ public class CaiUserVisitorAppController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
|
@Operation(summary = "我的浏览记录、访客查询-分页")
|
||||||
public TableDataInfo<UserStarOrVisitorList> page(VisitorQuery query, PageQuery pageQuery){
|
public TableDataInfo<UserStarOrVisitorList> page(VisitorQuery query, PageQuery pageQuery){
|
||||||
Page<UserStarOrVisitorList> res = userVisitorService.pageApp(pageQuery,query);
|
Page<UserStarOrVisitorList> res = userVisitorService.pageApp(pageQuery,query);
|
||||||
return TableDataInfo.build(res);
|
return TableDataInfo.build(res);
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.ruoyi.cai.domain;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@@ -14,6 +15,7 @@ import java.io.Serializable;
|
|||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("cai_account_bankcard")
|
@TableName("cai_account_bankcard")
|
||||||
|
@Schema(description = "用户银行卡对象")
|
||||||
public class CaiAccountBankcard implements Serializable {
|
public class CaiAccountBankcard implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID=1L;
|
private static final long serialVersionUID=1L;
|
||||||
@@ -22,34 +24,42 @@ public class CaiAccountBankcard implements Serializable {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@TableId(value = "id")
|
@TableId(value = "id")
|
||||||
|
@Schema(description = "ID")
|
||||||
private Integer id;
|
private Integer id;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "用户ID")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
/**
|
||||||
* 账户类型 1 支付宝 2 微信 3 银行卡
|
* 账户类型 1 支付宝 2 微信 3 银行卡
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "类型")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
/**
|
/**
|
||||||
* 银行编码
|
* 银行编码
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "编码")
|
||||||
private String bankCode;
|
private String bankCode;
|
||||||
/**
|
/**
|
||||||
* 银行名称
|
* 银行名称
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "名称")
|
||||||
private String bank;
|
private String bank;
|
||||||
/**
|
/**
|
||||||
* 持卡人姓名
|
* 持卡人姓名
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "持卡人姓名")
|
||||||
private String cardName;
|
private String cardName;
|
||||||
/**
|
/**
|
||||||
* 卡号
|
* 卡号
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "卡号")
|
||||||
private String cardAccount;
|
private String cardAccount;
|
||||||
/**
|
/**
|
||||||
* 0 可用 1 不可用
|
* 0 可用 1 不可用
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "状态")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.ruoyi.cai.domain;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@@ -22,27 +23,33 @@ public class CaiGoods implements Serializable {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "ID")
|
||||||
@TableId(value = "id")
|
@TableId(value = "id")
|
||||||
private Long id;
|
private Long id;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "名称")
|
||||||
private String name;
|
private String name;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "价格")
|
||||||
private BigDecimal price;
|
private BigDecimal price;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "紫贝数量")
|
||||||
private Long amount;
|
private Long amount;
|
||||||
/**
|
/**
|
||||||
* 状态 0 可用 1不可用
|
* 状态 0 可用 1不可用
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "可用状态")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.ruoyi.cai.domain;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@@ -22,10 +23,12 @@ public class CaiReportCate implements Serializable {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@TableId(value = "id")
|
@TableId(value = "id")
|
||||||
|
@Schema(description = "举报分类ID")
|
||||||
private Integer id;
|
private Integer id;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "名称")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.ruoyi.cai.domain;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@@ -22,14 +23,17 @@ public class CaiWithdrawExchange implements Serializable {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@TableId(value = "id")
|
@TableId(value = "id")
|
||||||
|
@Schema(description = "提现-兑换配置")
|
||||||
private Long id;
|
private Long id;
|
||||||
/**
|
/**
|
||||||
* 兑换金额
|
* 兑换金额
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "兑换金额")
|
||||||
private Integer money;
|
private Integer money;
|
||||||
/**
|
/**
|
||||||
* 所需货币数量
|
* 所需货币数量
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "所需货币")
|
||||||
private Integer coinNum;
|
private Integer coinNum;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,22 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "用户银行卡修改入参")
|
||||||
public class AccountAliBankCardRes {
|
public class AccountAliBankCardRes {
|
||||||
|
@Schema(description = "ID")
|
||||||
private Integer id;
|
private Integer id;
|
||||||
/**
|
/**
|
||||||
* 持卡人姓名
|
* 持卡人姓名
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "持卡人姓名")
|
||||||
private String cardName;
|
private String cardName;
|
||||||
/**
|
/**
|
||||||
* 卡号
|
* 卡号
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "卡号")
|
||||||
private String cardAccount;
|
private String cardAccount;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class AlbumAddRes {
|
public class AlbumAddRes {
|
||||||
|
@Schema(description = "用户ID",accessMode = Schema.AccessMode.READ_ONLY)
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
@Schema(description = "url")
|
||||||
private String url;
|
private String url;
|
||||||
|
@Schema(description = "排序")
|
||||||
private Integer orderBy;
|
private Integer orderBy;
|
||||||
// private boolean first;
|
// private boolean first;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class AlbumResetRes {
|
public class AlbumResetRes {
|
||||||
|
@Schema(description = "ID")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
@Schema(description = "排序")
|
||||||
private Integer orderBy;
|
private Integer orderBy;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ public class AnchorListQuery {
|
|||||||
* 2-新人查询
|
* 2-新人查询
|
||||||
* 3-同城查询
|
* 3-同城查询
|
||||||
*/
|
*/
|
||||||
@Schema(description = "类型")
|
@Schema(description = "类型 0-默认 1-活跃 2-新人 3-同城")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
@Schema(description = "城市")
|
@Schema(description = "城市(同城查询使用)")
|
||||||
private String city;
|
private String city;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +1,26 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class AnchorUpdateRes {
|
public class AnchorUpdateRes {
|
||||||
|
@Schema(description = "用户ID")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
/**
|
||||||
* 价格,默认50彩币
|
* 价格,默认50彩币
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "价格")
|
||||||
private Long price;
|
private Long price;
|
||||||
/**
|
/**
|
||||||
* 开启视频接听 0 未开启 1 已开启
|
* 开启视频接听 0 未开启 1 已开启
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "开启视频接听")
|
||||||
private Integer openVideoStatus;
|
private Integer openVideoStatus;
|
||||||
/**
|
/**
|
||||||
* 是否隐藏接单次数 1隐藏 2不隐藏
|
* 是否隐藏接单次数 1隐藏 2不隐藏
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "是否隐藏接单次数")
|
||||||
private Integer orderSwitch;
|
private Integer orderSwitch;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,28 +1,34 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
import com.ruoyi.cai.dto.app.vo.DynamicImageVo;
|
import com.ruoyi.cai.dto.app.vo.DynamicImageVo;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "发布动态")
|
||||||
public class DynamicAddRes {
|
public class DynamicAddRes {
|
||||||
/**
|
/**
|
||||||
* 用户ID
|
* 用户ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "用户ID")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
/**
|
||||||
* 内容
|
* 内容
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "内容")
|
||||||
private String content;
|
private String content;
|
||||||
/**
|
/**
|
||||||
* 城市ID
|
* 城市ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "城市ID")
|
||||||
private Integer cityId;
|
private Integer cityId;
|
||||||
/**
|
/**
|
||||||
* 是否有附件 0 没有 1 有
|
* 是否有附件 0 没有 1 有
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "是否有附件")
|
||||||
private Integer isAttach;
|
private Integer isAttach;
|
||||||
/**
|
/**
|
||||||
* 状态 0 审核中 1可用 2 不可用
|
* 状态 0 审核中 1可用 2 不可用
|
||||||
@@ -34,6 +40,6 @@ public class DynamicAddRes {
|
|||||||
private Long sort;
|
private Long sort;
|
||||||
|
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
|
@Schema(description = "照片列表")
|
||||||
private List<DynamicImageVo> imageList;
|
private List<DynamicImageVo> imageList;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,22 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "动态查询入参")
|
||||||
public class DynamicQuery {
|
public class DynamicQuery {
|
||||||
|
|
||||||
// 1=最新(默认) 2=关注 3=同城
|
// 1=最新(默认) 2=关注 3=同城
|
||||||
|
@Schema(description = "类型 1=最新(默认) 2=关注 3=同城")
|
||||||
private Integer type = 1;
|
private Integer type = 1;
|
||||||
|
|
||||||
|
@Schema(description = "用户ID")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
|
@Schema(description = "当前用户ID", accessMode = Schema.AccessMode.READ_ONLY)
|
||||||
private Long currentUserId;
|
private Long currentUserId;
|
||||||
|
|
||||||
|
@Schema(description = "城市")
|
||||||
private Integer cityId;
|
private Integer cityId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "动态关注")
|
||||||
public class DynamicStarRes {
|
public class DynamicStarRes {
|
||||||
|
@Schema(description = "动态ID")
|
||||||
private Long dynamicId;
|
private Long dynamicId;
|
||||||
|
@Schema(description = "用户ID",accessMode = Schema.AccessMode.READ_ONLY)
|
||||||
private Long userId;
|
private Long userId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,24 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "赠送礼物入参")
|
||||||
public class GiveGiftRes {
|
public class GiveGiftRes {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 类型 1 个人详情页 2.IM页面 3视频页
|
* 类型 1 个人详情页 2.IM页面 3视频页
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "类型 1 个人详情页 2.IM页面 3视频页")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
|
@Schema(description = "接收方用户ID")
|
||||||
private Long toUserId;
|
private Long toUserId;
|
||||||
|
|
||||||
|
@Schema(description = "礼物ID")
|
||||||
private Long giftId;
|
private Long giftId;
|
||||||
|
|
||||||
|
@Schema(description = "礼物数量")
|
||||||
private Long giftCount;
|
private Long giftCount;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class IdRes {
|
public class IdRes {
|
||||||
|
@Schema(description = "id")
|
||||||
private Long id;
|
private Long id;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "入参模型")
|
||||||
public class StarOrVisitorRes {
|
public class StarOrVisitorRes {
|
||||||
|
@Schema(description = "目标用户ID")
|
||||||
private Long toUserId;
|
private Long toUserId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "查询返回")
|
||||||
public class StarQuery {
|
public class StarQuery {
|
||||||
// 1=查询我的关注 2=查询我的粉丝
|
// 1=查询我的关注 2=查询我的粉丝
|
||||||
|
@Schema(description = "类型 1=查询我的关注 2=查询我的粉丝")
|
||||||
private Integer type = 1;
|
private Integer type = 1;
|
||||||
|
|
||||||
|
@Schema(accessMode = Schema.AccessMode.READ_ONLY)
|
||||||
private Long userId;
|
private Long userId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,17 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "用户查询")
|
||||||
public class UserQuery {
|
public class UserQuery {
|
||||||
|
|
||||||
|
@Schema(description = "昵称")
|
||||||
private String nickname;
|
private String nickname;
|
||||||
|
@Schema(description = "蜜瓜号")
|
||||||
private String usercode;
|
private String usercode;
|
||||||
|
|
||||||
|
@Schema(description = "性别")
|
||||||
private Integer gender;
|
private Integer gender;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@@ -8,21 +9,26 @@ public class UserReportRes {
|
|||||||
/**
|
/**
|
||||||
* 举报类型 1 个人详情页 2 视频结束 3 动态 4.IM页面
|
* 举报类型 1 个人详情页 2 视频结束 3 动态 4.IM页面
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "举报类型 1 个人详情页 2 视频结束 3 动态 4.IM页面")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
/**
|
/**
|
||||||
* 举报分类
|
* 举报分类
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "举报分类ID")
|
||||||
private Long cateId;
|
private Long cateId;
|
||||||
/**
|
/**
|
||||||
* 举报人
|
* 举报人
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "举报人")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
/**
|
||||||
* 举报对象
|
* 举报对象
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "举报对象")
|
||||||
private Long reportUid;
|
private Long reportUid;
|
||||||
/**
|
/**
|
||||||
* 举报内容
|
* 举报内容
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "举报内容")
|
||||||
private String content;
|
private String content;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,18 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class UserUpdateRes {
|
public class UserUpdateRes {
|
||||||
|
@Schema(description = "用户ID",accessMode = Schema.AccessMode.READ_ONLY)
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
@Schema(description = "城市")
|
||||||
private String city;
|
private String city;
|
||||||
|
@Schema(description = "昵称")
|
||||||
private String nickname;
|
private String nickname;
|
||||||
|
@Schema(description = "生日")
|
||||||
private LocalDateTime birthday;
|
private LocalDateTime birthday;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,16 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "足迹")
|
||||||
public class VisitorQuery {
|
public class VisitorQuery {
|
||||||
// 1=查询我的足迹 2=查询我的访客
|
// 1=查询我的足迹 2=查询我的访客
|
||||||
|
@Schema(description = "类型 1=查询我的足迹 2=查询我的访客")
|
||||||
private Integer type = 1;
|
private Integer type = 1;
|
||||||
|
|
||||||
|
@Schema(description = "用户ID",accessMode = Schema.AccessMode.READ_WRITE)
|
||||||
private Long userId;
|
private Long userId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,22 +1,28 @@
|
|||||||
package com.ruoyi.cai.dto.app.query;
|
package com.ruoyi.cai.dto.app.query;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "提现入参")
|
||||||
public class WithdrawRes {
|
public class WithdrawRes {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 提现配置ID
|
* 提现配置ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "提现配置ID")
|
||||||
private Long withdrawSettingId;
|
private Long withdrawSettingId;
|
||||||
/**
|
/**
|
||||||
* 兑换金额
|
* 兑换金额
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "兑换金额")
|
||||||
private Long money;
|
private Long money;
|
||||||
/**
|
/**
|
||||||
* 所需货币数量
|
* 所需货币数量
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "所需货币数量")
|
||||||
private Long coinNum;
|
private Long coinNum;
|
||||||
|
@Schema(description = "当前用户ID",accessMode = Schema.AccessMode.READ_ONLY)
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,58 +1,72 @@
|
|||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "提现记录")
|
||||||
public class AccountCashVo {
|
public class AccountCashVo {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "ID")
|
||||||
private Integer id;
|
private Integer id;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "用户Id")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
/**
|
||||||
* 提现金额
|
* 提现金额
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "提现金额")
|
||||||
private BigDecimal cashMoney;
|
private BigDecimal cashMoney;
|
||||||
/**
|
/**
|
||||||
* 真实提现金额
|
* 真实提现金额
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "真实提现金额")
|
||||||
private BigDecimal realCashMoney;
|
private BigDecimal realCashMoney;
|
||||||
/**
|
/**
|
||||||
* 提现手续费
|
* 提现手续费
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "手续费")
|
||||||
private BigDecimal cashFees;
|
private BigDecimal cashFees;
|
||||||
/**
|
/**
|
||||||
* 银行名称
|
* 银行名称
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "银行卡名称")
|
||||||
private String bank;
|
private String bank;
|
||||||
/**
|
/**
|
||||||
* 账户名称
|
* 账户名称
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "账户名称")
|
||||||
private String cardName;
|
private String cardName;
|
||||||
/**
|
/**
|
||||||
* 账户
|
* 账户
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "账户")
|
||||||
private String cardAccount;
|
private String cardAccount;
|
||||||
/**
|
/**
|
||||||
* 1 申请 2 审核通过 3 审核不通过 4 提现取消
|
* 1 申请 2 审核通过 3 审核不通过 4 提现取消
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "1-待审核 2-审核通过 3-审核不通过 4-提现取消")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
/**
|
/**
|
||||||
* 审核时间
|
* 审核时间
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "审核时间")
|
||||||
private LocalDateTime verifyTime;
|
private LocalDateTime verifyTime;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "审核备注")
|
||||||
private String verifyRemark;
|
private String verifyRemark;
|
||||||
|
|
||||||
|
|
||||||
|
@Schema(description = "提现时间")
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,48 +1,60 @@
|
|||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "充值记录")
|
||||||
public class AccountRechargeVo {
|
public class AccountRechargeVo {
|
||||||
|
@Schema(description = "ID")
|
||||||
private Long id;
|
private Long id;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "用户Id")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "充值ID")
|
||||||
private Long goodsId;
|
private Long goodsId;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "订单编号")
|
||||||
private String orderNo;
|
private String orderNo;
|
||||||
/**
|
/**
|
||||||
* 订单名
|
* 订单名
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "订单名称")
|
||||||
private String orderName;
|
private String orderName;
|
||||||
/**
|
/**
|
||||||
* 充值类型 0 手工充值 1 线上充值
|
* 充值类型 0 手工充值 1 线上充值
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "充值类型")
|
||||||
private Integer rechargeType;
|
private Integer rechargeType;
|
||||||
/**
|
/**
|
||||||
* 充值金额
|
* 充值金额
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "充值金额")
|
||||||
private BigDecimal rechargeMoney;
|
private BigDecimal rechargeMoney;
|
||||||
/**
|
/**
|
||||||
* 充值的紫贝
|
* 充值的紫贝
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "紫贝数量")
|
||||||
private Integer coinNum;
|
private Integer coinNum;
|
||||||
/**
|
/**
|
||||||
* 充值平台类型
|
* 充值平台类型
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "平台")
|
||||||
private Long platformType;
|
private Long platformType;
|
||||||
/**
|
/**
|
||||||
* 充值平台名称
|
* 充值平台名称
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "平台名称")
|
||||||
private String platformName;
|
private String platformName;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -55,6 +67,8 @@ public class AccountRechargeVo {
|
|||||||
/**
|
/**
|
||||||
* 类型: 0积分(默认),1会员
|
* 类型: 0积分(默认),1会员
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "0-充值 1-会员")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
@Schema(description = "充值时间")
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,46 @@
|
|||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "主播信息")
|
||||||
public class AnchorVo {
|
public class AnchorVo {
|
||||||
/**
|
/**
|
||||||
* 用户ID
|
* 用户ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "用户ID")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
/**
|
||||||
* 技能ID
|
* 技能ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "技能ID")
|
||||||
private Integer skillId;
|
private Integer skillId;
|
||||||
/**
|
/**
|
||||||
* 价格,默认50彩币
|
* 价格,默认50彩币
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "价格")
|
||||||
private Long price;
|
private Long price;
|
||||||
/**
|
/**
|
||||||
* 是否隐藏接单次数 1隐藏 2不隐藏
|
* 是否隐藏接单次数 1隐藏 2不隐藏
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "是否隐藏接单次数")
|
||||||
private Integer orderSwitch;
|
private Integer orderSwitch;
|
||||||
/**
|
/**
|
||||||
* 开启视频接听 0 未开启 1 已开启
|
* 开启视频接听 0 未开启 1 已开启
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "是否开启视频接听")
|
||||||
private Integer openVideoStatus;
|
private Integer openVideoStatus;
|
||||||
/**
|
/**
|
||||||
* 用户评分
|
* 用户评分
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "用户评分")
|
||||||
private BigDecimal giveScore;
|
private BigDecimal giveScore;
|
||||||
/**
|
/**
|
||||||
* 服务总次数
|
* 服务总次数
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "服务总次数")
|
||||||
private Long serviceCount;
|
private Long serviceCount;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,73 +1,92 @@
|
|||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "当前用户模型")
|
||||||
public class CurrentUserInfoVo {
|
public class CurrentUserInfoVo {
|
||||||
|
|
||||||
|
@Schema(description = "用户ID")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户号/ID号
|
* 用户号/ID号
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "蜜瓜号")
|
||||||
private String usercode;
|
private String usercode;
|
||||||
/**
|
/**
|
||||||
* 昵称
|
* 昵称
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "昵称")
|
||||||
private String nickname;
|
private String nickname;
|
||||||
/**
|
/**
|
||||||
* 手机号
|
* 手机号
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "手机号")
|
||||||
private String mobile;
|
private String mobile;
|
||||||
/**
|
/**
|
||||||
* 头像
|
* 头像
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "头像")
|
||||||
private String avatar;
|
private String avatar;
|
||||||
/**
|
/**
|
||||||
* 头像状态,0 系统默认头像,1 用户自定义头像
|
* 头像状态,0 系统默认头像,1 用户自定义头像
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "头像状态 0-默认 1-自定义")
|
||||||
private Integer avatarState;
|
private Integer avatarState;
|
||||||
/**
|
/**
|
||||||
* 性别 0 未知 1 女 2 男
|
* 性别 0 未知 1 女 2 男
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "性别 0-未知 1-女 2-男")
|
||||||
private Integer gender;
|
private Integer gender;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private LocalDateTime birthday;
|
@Schema(description = "生日")
|
||||||
|
private LocalDate birthday;
|
||||||
/**
|
/**
|
||||||
* 城市
|
* 城市
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "城市")
|
||||||
private Long city;
|
private Long city;
|
||||||
/**
|
/**
|
||||||
* 是否是播主 0 否 1 是
|
* 是否是播主 0 否 1 是
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "主播 0-否 1-是")
|
||||||
private Integer isAnchor;
|
private Integer isAnchor;
|
||||||
/**
|
/**
|
||||||
* 开启视频接听 0 未开启 1 已开启
|
* 开启视频接听 0 未开启 1 已开启
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "开启视频接听 0-否 1-是")
|
||||||
private Integer openVideoStatus;
|
private Integer openVideoStatus;
|
||||||
/**
|
/**
|
||||||
* 状态 0 可用 1 不可用
|
* 状态 0 可用 1 不可用
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "可用状态 0-可用 1-封禁")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 相册
|
* 相册
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "相册")
|
||||||
private List<UserAlbumDTO> userAlbumList;
|
private List<UserAlbumDTO> userAlbumList;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户账户
|
* 用户账户
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "用户账户")
|
||||||
private UserAccountVo userAccount;
|
private UserAccountVo userAccount;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户统计
|
* 用户统计
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "用户统计")
|
||||||
private UserCountVo userCount;
|
private UserCountVo userCount;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
@@ -11,6 +12,7 @@ public class DynamicImageVo {
|
|||||||
/**
|
/**
|
||||||
* 用户ID
|
* 用户ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "用户ID")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
/**
|
||||||
* 动态ID
|
* 动态ID
|
||||||
@@ -19,22 +21,27 @@ public class DynamicImageVo {
|
|||||||
/**
|
/**
|
||||||
* 物理路径
|
* 物理路径
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "URL")
|
||||||
private String url;
|
private String url;
|
||||||
/**
|
/**
|
||||||
* 宽度
|
* 宽度
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "宽度")
|
||||||
private Long width;
|
private Long width;
|
||||||
/**
|
/**
|
||||||
* 高度
|
* 高度
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "高度")
|
||||||
private Long height;
|
private Long height;
|
||||||
/**
|
/**
|
||||||
* 图片大小
|
* 图片大小
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "图片大小")
|
||||||
private Long size;
|
private Long size;
|
||||||
/**
|
/**
|
||||||
* 类型
|
* 类型
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "类型")
|
||||||
private String exts;
|
private String exts;
|
||||||
|
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
@@ -10,33 +11,42 @@ public class DynamicVo {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "动态ID")
|
||||||
private Long id;
|
private Long id;
|
||||||
/**
|
/**
|
||||||
* 用户ID
|
* 用户ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "用户ID")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
/**
|
||||||
* 内容
|
* 内容
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "内容")
|
||||||
private String content;
|
private String content;
|
||||||
/**
|
/**
|
||||||
* 城市ID
|
* 城市ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "城市")
|
||||||
private Integer cityId;
|
private Integer cityId;
|
||||||
/**
|
/**
|
||||||
* 是否有附件 0 没有 1 有
|
* 是否有附件 0 没有 1 有
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "是否有附件 0 没有 1 有")
|
||||||
private Integer isAttach;
|
private Integer isAttach;
|
||||||
/**
|
/**
|
||||||
* 状态 0 审核中 1可用 2 不可用
|
* 状态 0 审核中 1可用 2 不可用
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "状态 0 审核中 1可用 2 不可用")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
/**
|
/**
|
||||||
* 排序字段
|
* 排序字段
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "排序字段")
|
||||||
private Long sort;
|
private Long sort;
|
||||||
|
|
||||||
|
@Schema(description = "创建时间")
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
@Schema(description = "图片")
|
||||||
private List<DynamicImageVo> imageList;
|
private List<DynamicImageVo> imageList;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@@ -9,16 +10,20 @@ public class GuardTotalVo implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 被守护人的user_id(大咖)
|
* 被守护人的user_id(大咖)
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "被守护人的user_id(大咖)")
|
||||||
private Long fromUserId;
|
private Long fromUserId;
|
||||||
/**
|
/**
|
||||||
* 守护人的user_id
|
* 守护人的user_id
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "守护人的user_id")
|
||||||
private Long toUserId;
|
private Long toUserId;
|
||||||
|
|
||||||
|
@Schema(description = "用户头像")
|
||||||
private String userAvatar;
|
private String userAvatar;
|
||||||
/**
|
/**
|
||||||
* 累计守护符个数
|
* 累计守护符个数
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "守护个数")
|
||||||
private Long guardNum;
|
private Long guardNum;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +1,27 @@
|
|||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "用户账户信息")
|
||||||
public class UserAccountVo {
|
public class UserAccountVo {
|
||||||
/**
|
/**
|
||||||
* 用户ID
|
* 用户ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "用户ID")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
/**
|
||||||
* 当前彩币数量
|
* 当前彩币数量
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "当前紫贝数量")
|
||||||
private Long coin;
|
private Long coin;
|
||||||
/**
|
/**
|
||||||
* 收益的彩币数量
|
* 收益的彩币数量
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "收益的紫贝")
|
||||||
private Long incomeCoin;
|
private Long incomeCoin;
|
||||||
|
|
||||||
|
@Schema(description = "总数量")
|
||||||
private Long totalCoin;
|
private Long totalCoin;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,37 +1,45 @@
|
|||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "用户相册模型")
|
||||||
public class UserAlbumDTO {
|
public class UserAlbumDTO {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@TableId(value = "id")
|
@Schema(description = "ID")
|
||||||
private Long id;
|
private Long id;
|
||||||
/**
|
/**
|
||||||
* 用户ID
|
* 用户ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "用户ID")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "相册URL")
|
||||||
private String url;
|
private String url;
|
||||||
/**
|
/**
|
||||||
* 状态 0 未审核 1 审核通过 2 审核未通过
|
* 状态 0 未审核 1 审核通过 2 审核未通过
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "状态 0-未审核 1-审核通过 2-审核未通过")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
/**
|
/**
|
||||||
* 审核时间
|
* 审核时间
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "审核时间")
|
||||||
private LocalDateTime auditTime;
|
private LocalDateTime auditTime;
|
||||||
/**
|
/**
|
||||||
* 审核备注
|
* 审核备注
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "审核备注")
|
||||||
private String auditRemark;
|
private String auditRemark;
|
||||||
|
|
||||||
|
@Schema(description = "排序")
|
||||||
private Integer orderBy;
|
private Integer orderBy;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
@@ -11,24 +12,30 @@ public class UserBaseVo {
|
|||||||
/**
|
/**
|
||||||
* 头像
|
* 头像
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "头像")
|
||||||
private String avatar;
|
private String avatar;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 性别 0 未知 1 女 2 男
|
* 性别 0 未知 1 女 2 男
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "性别 0 未知 1 女 2 男")
|
||||||
private Integer gender;
|
private Integer gender;
|
||||||
/**
|
/**
|
||||||
* 城市
|
* 城市
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "城市")
|
||||||
private Long city;
|
private Long city;
|
||||||
/**
|
/**
|
||||||
* 昵称
|
* 昵称
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "昵称")
|
||||||
private String nickname;
|
private String nickname;
|
||||||
/**
|
/**
|
||||||
* 用户号/ID号
|
* 用户号/ID号
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "蜜瓜号")
|
||||||
private String usercode;
|
private String usercode;
|
||||||
|
|
||||||
|
@Schema(description = "年龄")
|
||||||
private Integer age;
|
private Integer age;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,24 +1,30 @@
|
|||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "用户统计相关")
|
||||||
public class UserCountVo {
|
public class UserCountVo {
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
/**
|
||||||
* 粉丝总数
|
* 粉丝总数
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "粉丝总数")
|
||||||
private Long fansCount;
|
private Long fansCount;
|
||||||
/**
|
/**
|
||||||
* 关注数
|
* 关注数
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "关注数")
|
||||||
private Long followCount;
|
private Long followCount;
|
||||||
/**
|
/**
|
||||||
* 足迹数
|
* 足迹数
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "足迹数")
|
||||||
private Long footCount;
|
private Long footCount;
|
||||||
/**
|
/**
|
||||||
* 访客数
|
* 访客数
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "访客数")
|
||||||
private Long visitorCount;
|
private Long visitorCount;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@@ -12,10 +13,12 @@ public class UserGiftVo {
|
|||||||
/**
|
/**
|
||||||
* 礼物ID
|
* 礼物ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "礼物ID")
|
||||||
private Long giftId;
|
private Long giftId;
|
||||||
/**
|
/**
|
||||||
* 礼物数量
|
* 礼物数量
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "礼物数量")
|
||||||
private Long giftCount;
|
private Long giftCount;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@@ -8,36 +9,51 @@ import java.util.List;
|
|||||||
@Data
|
@Data
|
||||||
public class UserInfoVo {
|
public class UserInfoVo {
|
||||||
|
|
||||||
|
@Schema(description = "用户ID")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
/**
|
/**
|
||||||
* 是否是播主 0 否 1 是
|
* 是否是播主 0 否 1 是
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "是否是播主 0 否 1 是")
|
||||||
private Integer isAnchor;
|
private Integer isAnchor;
|
||||||
|
@Schema(description = "蜜瓜号")
|
||||||
private String usercode;
|
private String usercode;
|
||||||
|
@Schema(description = "昵称")
|
||||||
private String nickname;
|
private String nickname;
|
||||||
|
@Schema(description = "头像")
|
||||||
private String avatar;
|
private String avatar;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 价格,默认50彩币
|
* 价格,默认50彩币
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "价格")
|
||||||
private Long price;
|
private Long price;
|
||||||
/**
|
/**
|
||||||
* 接单次数
|
* 接单次数
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "接单次数")
|
||||||
private Long serviceCount;
|
private Long serviceCount;
|
||||||
|
|
||||||
|
@Schema(description = "粉丝数")
|
||||||
private Long fansNum;
|
private Long fansNum;
|
||||||
|
|
||||||
|
@Schema(description = "是否关注")
|
||||||
private Boolean star;
|
private Boolean star;
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
@Schema(description = "用户状态")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
|
@Schema(description = "相册集合")
|
||||||
private List<String> albumList = Collections.emptyList();
|
private List<String> albumList = Collections.emptyList();
|
||||||
|
|
||||||
|
@Schema(description = "守护列表")
|
||||||
private List<GuardTotalVo> guardTotalList = Collections.emptyList();
|
private List<GuardTotalVo> guardTotalList = Collections.emptyList();
|
||||||
|
|
||||||
|
@Schema(description = "动态列表")
|
||||||
private List<DynamicVo> dynamicList = Collections.emptyList();
|
private List<DynamicVo> dynamicList = Collections.emptyList();
|
||||||
|
|
||||||
|
@Schema(description = "礼物列表")
|
||||||
private List<UserGiftVo> giftList = Collections.emptyList();
|
private List<UserGiftVo> giftList = Collections.emptyList();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,18 @@
|
|||||||
|
|
||||||
package com.ruoyi.cai.dto.app.vo;
|
package com.ruoyi.cai.dto.app.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "用户列表返回")
|
||||||
public class UserListVo extends UserBaseVo {
|
public class UserListVo extends UserBaseVo {
|
||||||
/**
|
/**
|
||||||
* 最后在线时间
|
* 最后在线时间
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "最后在线时间")
|
||||||
private LocalDateTime lastLiveTime;
|
private LocalDateTime lastLiveTime;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ package com.ruoyi.cai.service.impl;
|
|||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.cai.domain.CaiUser;
|
||||||
|
import com.ruoyi.cai.domain.CaiUserCount;
|
||||||
import com.ruoyi.cai.domain.CaiUserFollow;
|
import com.ruoyi.cai.domain.CaiUserFollow;
|
||||||
import com.ruoyi.cai.dto.app.query.StarQuery;
|
import com.ruoyi.cai.dto.app.query.StarQuery;
|
||||||
import com.ruoyi.cai.dto.app.query.StarOrVisitorRes;
|
import com.ruoyi.cai.dto.app.query.StarOrVisitorRes;
|
||||||
@@ -29,10 +31,11 @@ public class CaiUserFollowServiceImpl extends ServiceImpl<CaiUserFollowMapper,Ca
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private CaiUserCountService userCountService;
|
private CaiUserCountService userCountService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Long getFansNumByUserId(Long userId){
|
public Long getFansNumByUserId(Long userId){
|
||||||
return this.count(Wrappers.lambdaQuery(CaiUserFollow.class)
|
CaiUserCount count = userCountService.getByUserId(userId);
|
||||||
.eq(CaiUserFollow::getFollowUser,userId));
|
return count.getFansCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user