This commit is contained in:
admin
2024-05-08 21:21:29 +08:00
parent 2919029b81
commit 5838b2df35
138 changed files with 2861 additions and 1179 deletions

View File

@@ -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));

View File

@@ -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

View File

@@ -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视频小样

View File

@@ -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视频小样

View File

@@ -6,7 +6,7 @@ import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotNull;
/**
* 陪资料审核
* 陪资料审核
*
* @author admin
* @since 2024-03-23

View File

@@ -26,7 +26,7 @@ public class PlayUserInfoAddVo {
private String verificationCode;
/**
* 陪用户ID
* 陪用户ID
*/
@NotBlank(message = "绑定用户不能为空")
private String playUserId;

View File

@@ -11,7 +11,7 @@ public class PlayUserInfoUpEditVo {
private String id;
/**
* 陪用户ID
* 陪用户ID
*/
@NotBlank(message = "绑定用户不能为空")
private String playUserId;

View File

@@ -14,7 +14,7 @@ public class PlayUserInfoUpdateVo {
private String id;
/**
* 陪用户ID
* 陪用户ID
*/
@NotBlank(message = "绑定用户不能为空")
private String playUserId;

View File

@@ -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);

View File

@@ -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