1.去除主播更新数据校验条件
This commit is contained in:
@@ -48,7 +48,7 @@ public class EmployeeBigBrotherController {
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新大哥数据员工业务")
|
||||
@PreAuthorize("@ss.hasPermission('server:employee-big-brother:update')")
|
||||
public CommonResult<Boolean> updateEmployeeBigBrother(@Valid @RequestBody EmployeeBigBrotherSaveReqVO updateReqVO) {
|
||||
public CommonResult<Boolean> updateEmployeeBigBrother(@RequestBody EmployeeBigBrotherSaveReqVO updateReqVO) {
|
||||
employeeBigBrotherService.updateEmployeeBigBrother(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@ package cn.iocoder.yudao.module.tkdata.controller.admin.employeebigbrother.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 大哥数据员工业务新增/修改 Request VO")
|
||||
@Data
|
||||
|
||||
@@ -48,7 +48,7 @@ public class EmployeeHostsController {
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新员工分配主播")
|
||||
@PreAuthorize("@ss.hasPermission('server:employee-hosts:update')")
|
||||
public CommonResult<Boolean> updateEmployeeHosts(@Valid @RequestBody EmployeeHostsSaveReqVO updateReqVO) {
|
||||
public CommonResult<Boolean> updateEmployeeHosts( @RequestBody EmployeeHostsSaveReqVO updateReqVO) {
|
||||
employeeHostsService.updateEmployeeHosts(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@@ -12,8 +12,7 @@ public class EmployeeHostsSaveReqVO {
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "14489")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "主播id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26407")
|
||||
@NotEmpty(message = "主播id不能为空")
|
||||
@Schema(description = "主播id", example = "26407")
|
||||
private String hostsId;
|
||||
|
||||
@Schema(description = "用户 Id", example = "22763")
|
||||
|
||||
@@ -28,7 +28,7 @@ public interface EmployeeBigBrotherService {
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateEmployeeBigBrother(@Valid EmployeeBigBrotherSaveReqVO updateReqVO);
|
||||
void updateEmployeeBigBrother( EmployeeBigBrotherSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除大哥数据员工业务
|
||||
|
||||
@@ -27,7 +27,7 @@ public interface EmployeeHostsService {
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateEmployeeHosts(@Valid EmployeeHostsSaveReqVO updateReqVO);
|
||||
void updateEmployeeHosts( EmployeeHostsSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除员工分配主播表,结构和主播表相同,多了user_id 字段来区分所属员工
|
||||
|
||||
Reference in New Issue
Block a user