|
|
@@ -14,6 +14,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import com.dk.mdm.service.mst.RoleService;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
import static net.sf.jsqlparser.util.validation.metadata.NamedObject.role;
|
|
|
|
|
|
|
|
|
@@ -115,4 +117,26 @@ public class RoleController{
|
|
|
public ResponseResultVO<?> updateWeb(@RequestBody RoleVo roleVO) {
|
|
|
return roleService.update(roleVO);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 批量启用
|
|
|
+ * @author : 周兴
|
|
|
+ * @date : 2023/3/7 10:34
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "批量启用", notes = "批量启用")
|
|
|
+ @PostMapping("enable_batch")
|
|
|
+ public ResponseResultVO<Boolean> enableBatch(@RequestBody List<String> ids) {
|
|
|
+ return this.getService().enableBatch(ids);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 批量停用
|
|
|
+ * @author : 周兴
|
|
|
+ * @date : 2023/3/7 10:34
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "批量停用", notes = "批量停用")
|
|
|
+ @PostMapping("disable_batch")
|
|
|
+ public ResponseResultVO<Boolean> disableBatch(@RequestBody List<String> ids) {
|
|
|
+ return this.getService().disableBatch(ids);
|
|
|
+ }
|
|
|
}
|