订单
This commit is contained in:
@@ -18,7 +18,7 @@ import javax.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* 陪玩资源Controller
|
||||
* 陪聊资源Controller
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-03-24
|
||||
@@ -34,7 +34,7 @@ public class PlayResourcesInfoController {
|
||||
|
||||
|
||||
/**
|
||||
* 查询陪玩资源列表
|
||||
* 查询陪聊资源列表
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:list')")
|
||||
@GetMapping("/list")
|
||||
@@ -45,7 +45,7 @@ public class PlayResourcesInfoController {
|
||||
|
||||
|
||||
/**
|
||||
* 获取陪玩资源详细信息
|
||||
* 获取陪聊资源详细信息
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@@ -54,10 +54,10 @@ public class PlayResourcesInfoController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 陪玩上传资源(图片/签名/视频/录音小样等)
|
||||
* 陪聊上传资源(图片/签名/视频/录音小样等)
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:create')")
|
||||
@Log(title = "陪玩资源", businessType = BusinessType.INSERT)
|
||||
@Log(title = "陪聊资源", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/create")
|
||||
public R create(@RequestBody PlayResourcesInfoAddVo vo, @RequestParam("file") MultipartFile file) throws IOException {
|
||||
// 校验文件类型是否正常
|
||||
@@ -65,7 +65,7 @@ public class PlayResourcesInfoController {
|
||||
// 上传文件到OSS
|
||||
String fileAddress = ossFileService.upload(file.getInputStream(), "", file.getOriginalFilename());
|
||||
|
||||
// 保持陪玩资源
|
||||
// 保持陪聊资源
|
||||
PlayResourcesInfoEntity entity = ConvertUtil.entityToVo(vo, PlayResourcesInfoEntity.class);
|
||||
entity.setAddress(fileAddress);
|
||||
boolean success = playResourcesInfoService.create(entity);
|
||||
@@ -80,10 +80,10 @@ public class PlayResourcesInfoController {
|
||||
|
||||
|
||||
/**
|
||||
* 陪玩资料审核
|
||||
* 陪聊资料审核
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:edit')")
|
||||
@Log(title = "陪玩资源审核", businessType = BusinessType.UPDATE)
|
||||
@Log(title = "陪聊资源审核", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/examine")
|
||||
public R examinePlayResourcesInfo(@RequestBody PlayResourcesInfoReviewVo vo) {
|
||||
// 验证权限,判断当前接口调用人是否有权限操作该接口
|
||||
@@ -95,10 +95,10 @@ public class PlayResourcesInfoController {
|
||||
|
||||
|
||||
/**
|
||||
* 删除陪玩资源
|
||||
* 删除陪聊资源
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:remove')")
|
||||
@Log(title = "陪玩资源", businessType = BusinessType.DELETE)
|
||||
@Log(title = "陪聊资源", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R remove(@PathVariable String[] ids) {
|
||||
return R.ok(playResourcesInfoService.deletePlayResourcesInfoByIds(ids));
|
||||
|
||||
@@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.starry.admin.modules.play.module.entity.PlayResourcesInfoEntity;
|
||||
|
||||
/**
|
||||
* 陪玩资源Mapper接口
|
||||
* 陪聊资源Mapper接口
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-03-23
|
||||
|
||||
@@ -8,7 +8,7 @@ import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 陪玩资源对象 play_resources_info
|
||||
* 陪聊资源对象 play_resources_info
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-03-23
|
||||
@@ -30,12 +30,12 @@ public class PlayResourcesInfoEntity extends BaseEntity<PlayResourcesInfoEntity>
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 陪玩用户ID
|
||||
* 陪聊用户ID
|
||||
*/
|
||||
private String playUserId;
|
||||
|
||||
/**
|
||||
* 陪玩展示资源类型[0;1;2;3;4]
|
||||
* 陪聊展示资源类型[0;1;2;3;4]
|
||||
* 0:签名
|
||||
* 1:录音小样
|
||||
* 2:视频小样
|
||||
|
||||
@@ -7,7 +7,7 @@ import lombok.EqualsAndHashCode;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 新增陪玩资料对象
|
||||
* 新增陪聊资料对象
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-03-23
|
||||
@@ -25,7 +25,7 @@ public class PlayResourcesInfoAddVo extends BaseEntity<PlayResourcesInfoAddVo> {
|
||||
|
||||
|
||||
/**
|
||||
* 陪玩展示资源类型[0;1;2;3;4]
|
||||
* 陪聊展示资源类型[0;1;2;3;4]
|
||||
* 0:签名
|
||||
* 1:录音小样
|
||||
* 2:视频小样
|
||||
|
||||
@@ -6,7 +6,7 @@ import lombok.EqualsAndHashCode;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 陪玩资料审核
|
||||
* 陪聊资料审核
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-03-23
|
||||
|
||||
@@ -26,7 +26,7 @@ public class PlayUserInfoAddVo {
|
||||
private String verificationCode;
|
||||
|
||||
/**
|
||||
* 陪玩用户ID
|
||||
* 陪聊用户ID
|
||||
*/
|
||||
@NotBlank(message = "绑定用户不能为空")
|
||||
private String playUserId;
|
||||
|
||||
@@ -11,7 +11,7 @@ public class PlayUserInfoUpEditVo {
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 陪玩用户ID
|
||||
* 陪聊用户ID
|
||||
*/
|
||||
@NotBlank(message = "绑定用户不能为空")
|
||||
private String playUserId;
|
||||
|
||||
@@ -14,7 +14,7 @@ public class PlayUserInfoUpdateVo {
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 陪玩用户ID
|
||||
* 陪聊用户ID
|
||||
*/
|
||||
@NotBlank(message = "绑定用户不能为空")
|
||||
private String playUserId;
|
||||
|
||||
@@ -5,39 +5,39 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.starry.admin.modules.play.module.entity.PlayResourcesInfoEntity;
|
||||
|
||||
/**
|
||||
* 陪玩资源Service接口
|
||||
* 陪聊资源Service接口
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-03-24
|
||||
*/
|
||||
public interface IPlayResourcesInfoService extends IService<PlayResourcesInfoEntity> {
|
||||
/**
|
||||
* 查询陪玩资源
|
||||
* 查询陪聊资源
|
||||
*
|
||||
* @param id 陪玩资源主键
|
||||
* @return 陪玩资源
|
||||
* @param id 陪聊资源主键
|
||||
* @return 陪聊资源
|
||||
*/
|
||||
PlayResourcesInfoEntity selectPlayResourcesInfoById(String id);
|
||||
|
||||
/**
|
||||
* 查询陪玩资源列表
|
||||
* 查询陪聊资源列表
|
||||
*
|
||||
* @param playResourcesInfo 陪玩资源
|
||||
* @return 陪玩资源集合
|
||||
* @param playResourcesInfo 陪聊资源
|
||||
* @return 陪聊资源集合
|
||||
*/
|
||||
IPage<PlayResourcesInfoEntity> selectPlayResourcesInfoByPage(PlayResourcesInfoEntity playResourcesInfo);
|
||||
|
||||
/**
|
||||
* 新增陪玩资源
|
||||
* 新增陪聊资源
|
||||
*
|
||||
* @param playResourcesInfo 陪玩资源
|
||||
* @param playResourcesInfo 陪聊资源
|
||||
* @return 结果
|
||||
*/
|
||||
boolean create(PlayResourcesInfoEntity playResourcesInfo);
|
||||
|
||||
|
||||
/**
|
||||
* 审核陪玩资源信息
|
||||
* 审核陪聊资源信息
|
||||
*
|
||||
* @param id 资源ID
|
||||
* @param success 是否通过
|
||||
@@ -47,25 +47,25 @@ public interface IPlayResourcesInfoService extends IService<PlayResourcesInfoEnt
|
||||
boolean examinePlayResourcesInfo(String id, boolean success, String remark);
|
||||
|
||||
/**
|
||||
* 修改陪玩资源
|
||||
* 修改陪聊资源
|
||||
*
|
||||
* @param playResourcesInfo 陪玩资源
|
||||
* @param playResourcesInfo 陪聊资源
|
||||
* @return 结果
|
||||
*/
|
||||
boolean update(PlayResourcesInfoEntity playResourcesInfo);
|
||||
|
||||
/**
|
||||
* 批量删除陪玩资源
|
||||
* 批量删除陪聊资源
|
||||
*
|
||||
* @param ids 需要删除的陪玩资源主键集合
|
||||
* @param ids 需要删除的陪聊资源主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayResourcesInfoByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除陪玩资源信息
|
||||
* 删除陪聊资源信息
|
||||
*
|
||||
* @param id 陪玩资源主键
|
||||
* @param id 陪聊资源主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayResourcesInfoById(String id);
|
||||
|
||||
@@ -18,7 +18,7 @@ import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 陪玩资源Service业务层处理
|
||||
* 陪聊资源Service业务层处理
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-03-24
|
||||
@@ -29,10 +29,10 @@ public class PlayResourcesInfoServiceImpl extends ServiceImpl<PlayResourcesInfoM
|
||||
private PlayResourcesInfoMapper playResourcesInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询陪玩资源
|
||||
* 查询陪聊资源
|
||||
*
|
||||
* @param id 陪玩资源主键
|
||||
* @return 陪玩资源
|
||||
* @param id 陪聊资源主键
|
||||
* @return 陪聊资源
|
||||
*/
|
||||
@Override
|
||||
public PlayResourcesInfoEntity selectPlayResourcesInfoById(String id) {
|
||||
@@ -40,10 +40,10 @@ public class PlayResourcesInfoServiceImpl extends ServiceImpl<PlayResourcesInfoM
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询陪玩资源列表
|
||||
* 查询陪聊资源列表
|
||||
*
|
||||
* @param playResourcesInfo 陪玩资源
|
||||
* @return 陪玩资源
|
||||
* @param playResourcesInfo 陪聊资源
|
||||
* @return 陪聊资源
|
||||
*/
|
||||
@Override
|
||||
public IPage<PlayResourcesInfoEntity> selectPlayResourcesInfoByPage(PlayResourcesInfoEntity playResourcesInfo) {
|
||||
@@ -52,9 +52,9 @@ public class PlayResourcesInfoServiceImpl extends ServiceImpl<PlayResourcesInfoM
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增陪玩资源
|
||||
* 新增陪聊资源
|
||||
*
|
||||
* @param playResourcesInfo 陪玩资源
|
||||
* @param playResourcesInfo 陪聊资源
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@@ -96,9 +96,9 @@ public class PlayResourcesInfoServiceImpl extends ServiceImpl<PlayResourcesInfoM
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改陪玩资源
|
||||
* 修改陪聊资源
|
||||
*
|
||||
* @param playResourcesInfo 陪玩资源
|
||||
* @param playResourcesInfo 陪聊资源
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@@ -107,9 +107,9 @@ public class PlayResourcesInfoServiceImpl extends ServiceImpl<PlayResourcesInfoM
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除陪玩资源
|
||||
* 批量删除陪聊资源
|
||||
*
|
||||
* @param ids 需要删除的陪玩资源主键
|
||||
* @param ids 需要删除的陪聊资源主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@@ -118,9 +118,9 @@ public class PlayResourcesInfoServiceImpl extends ServiceImpl<PlayResourcesInfoM
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除陪玩资源信息
|
||||
* 删除陪聊资源信息
|
||||
*
|
||||
* @param id 陪玩资源主键
|
||||
* @param id 陪聊资源主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user