49 changed files with 976 additions and 343 deletions
@ -1,8 +1,62 @@ |
|||||
package com.yxt.portal.apiadmin; |
package com.yxt.portal.apiadmin; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.portal.biz.sysauthorizegroup.*; |
||||
|
import com.yxt.portal.utils.OrgPathQuery; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
/** |
/** |
||||
* @author wangpengfei |
* @author wangpengfei |
||||
* @date 2024/7/26 17:26 |
* @date 2024/7/26 17:26 |
||||
*/ |
*/ |
||||
|
@Api(tags = "权限组") |
||||
|
@RestController |
||||
|
@RequestMapping("apiadmin/sysauthorizegroup") |
||||
public class SysAuthorizeGroupRest { |
public class SysAuthorizeGroupRest { |
||||
|
@Autowired |
||||
|
SysAuthorizeGroupService sysAuthorizeGroupService; |
||||
|
|
||||
|
@ApiOperation("分页列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<SysAuthorizeGroupVo>> listPage(@RequestBody PagerQuery<SysAuthorizeGroupQuery> pq) { |
||||
|
return sysAuthorizeGroupService.listPage(pq); |
||||
|
} |
||||
|
@ApiOperation("查询所有的类别") |
||||
|
@GetMapping("/listAll") |
||||
|
public ResultBean<List<SysAuthorizeGroup>> listAll() { |
||||
|
return sysAuthorizeGroupService.listAll(); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("保存修改") |
||||
|
@PostMapping("/saveOrUpdate") |
||||
|
public ResultBean<String> saveOrUpdate(@RequestBody SysAuthorizeGroupDto dto) { |
||||
|
return sysAuthorizeGroupService.saveOrUpdate(dto); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("初始化") |
||||
|
@GetMapping("/initialization/{sid}") |
||||
|
public ResultBean<SysAuthorizeGroupVo> initialization(@PathVariable("sid") String sid) { |
||||
|
return sysAuthorizeGroupService.initialization(sid); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("删除") |
||||
|
@DeleteMapping("/delete/{sid}") |
||||
|
public ResultBean delete(@PathVariable("sid") String sid) { |
||||
|
return sysAuthorizeGroupService.delete(sid); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
sysAuthorizeGroupService.delAll(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
} |
} |
||||
|
@ -1,8 +1,32 @@ |
|||||
package com.yxt.portal.apiadmin; |
package com.yxt.portal.apiadmin; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.portal.biz.sysorgauthorize.SysOrgAuthorizeDto; |
||||
|
import com.yxt.portal.biz.sysorgregister.SysOrgRegisterDto; |
||||
|
import com.yxt.portal.biz.sysorgregister.SysOrgRegisterService; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
/** |
/** |
||||
* @author wangpengfei |
* @author wangpengfei |
||||
* @date 2024/7/26 17:26 |
* @date 2024/7/26 17:26 |
||||
*/ |
*/ |
||||
|
@Api(tags = "组织授权表") |
||||
|
@RestController |
||||
|
@RequestMapping("apiadmin/sysorgregister") |
||||
public class SysOrgRegisterRest { |
public class SysOrgRegisterRest { |
||||
|
@Autowired |
||||
|
SysOrgRegisterService sysOrgRegisterService; |
||||
|
@ApiOperation("保存") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean<String> saveOrUpdate(@RequestBody List<SysOrgRegisterDto> dtos) { |
||||
|
return sysOrgRegisterService.saveOrUpdate(dtos); |
||||
|
} |
||||
} |
} |
||||
|
@ -0,0 +1,18 @@ |
|||||
|
package com.yxt.portal.biz.sysorgauthorize; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/10/15 15:36 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SysOrgAuthorizeVo2 { |
||||
|
private String sourceName; |
||||
|
private String sourceSid; |
||||
|
private String createTime; |
||||
|
private String expireDate; |
||||
|
private Integer regType; |
||||
|
private String orgSid; |
||||
|
|
||||
|
} |
Loading…
Reference in new issue