Class OrganizationRestController
java.lang.Object
com.bytedesk.core.base.BaseRestController<OrganizationRequest,OrganizationRestService>
com.bytedesk.core.rbac.organization.OrganizationRestController
@RestController
@RequestMapping("/api/v1/org")
public class OrganizationRestController
extends BaseRestController<OrganizationRequest,OrganizationRestService>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
create
(OrganizationRequest request) 通用的create实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
createBySuper
(OrganizationRequest request) org.springframework.http.ResponseEntity<?>
delete
(OrganizationRequest request) 通用的delete实现 减少子类重复代码export
(OrganizationRequest request, jakarta.servlet.http.HttpServletResponse response) exportorg.springframework.http.ResponseEntity<?>
queryByOrg
(OrganizationRequest request) 通用的queryByOrg实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
queryByUid
(OrganizationRequest request) 通用的queryByUid实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
queryByUser
(OrganizationRequest request) 通用的queryByUser实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
update
(OrganizationRequest request) 通用的update实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
updateBySuper
(OrganizationRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestController
deleteByOrgUid, exportTemplate, getService
-
Field Details
-
organizationRestService
-
-
Constructor Details
-
OrganizationRestController
public OrganizationRestController()
-
-
Method Details
-
queryByOrg
@PreAuthorize("hasRole(\'SUPER\')") public org.springframework.http.ResponseEntity<?> queryByOrg(OrganizationRequest request) Description copied from class:BaseRestController
通用的queryByOrg实现 减少子类重复代码- Overrides:
queryByOrg
in classBaseRestController<OrganizationRequest,
OrganizationRestService>
-
queryByUser
Description copied from class:BaseRestController
通用的queryByUser实现 减少子类重复代码- Overrides:
queryByUser
in classBaseRestController<OrganizationRequest,
OrganizationRestService>
-
queryByUid
Description copied from class:BaseRestController
通用的queryByUid实现 减少子类重复代码- Overrides:
queryByUid
in classBaseRestController<OrganizationRequest,
OrganizationRestService>
-
create
@ActionAnnotation(title="\u7ec4\u7ec7", action="\u65b0\u5efa", description="organization create") public org.springframework.http.ResponseEntity<?> create(@RequestBody OrganizationRequest request) Description copied from class:BaseRestController
通用的create实现 减少子类重复代码- Overrides:
create
in classBaseRestController<OrganizationRequest,
OrganizationRestService>
-
createBySuper
@PreAuthorize("hasRole(\'SUPER\')") @ActionAnnotation(title="\u7ec4\u7ec7", action="\u65b0\u5efa", description="organization create by admin") @PostMapping("/create/by/super") public org.springframework.http.ResponseEntity<?> createBySuper(@RequestBody OrganizationRequest request) -
update
@ActionAnnotation(title="\u7ec4\u7ec7", action="\u66f4\u65b0", description="organization update") public org.springframework.http.ResponseEntity<?> update(@RequestBody OrganizationRequest request) Description copied from class:BaseRestController
通用的update实现 减少子类重复代码- Overrides:
update
in classBaseRestController<OrganizationRequest,
OrganizationRestService>
-
updateBySuper
@PreAuthorize("hasRole(\'SUPER\')") @ActionAnnotation(title="\u7ec4\u7ec7", action="\u66f4\u65b0", description="organization update by super") @PostMapping("/update/by/super") public org.springframework.http.ResponseEntity<?> updateBySuper(@RequestBody OrganizationRequest request) -
delete
@PreAuthorize("hasRole(\'SUPER\')") public org.springframework.http.ResponseEntity<?> delete(OrganizationRequest request) Description copied from class:BaseRestController
通用的delete实现 减少子类重复代码- Overrides:
delete
in classBaseRestController<OrganizationRequest,
OrganizationRestService>
-
export
@PreAuthorize("hasRole(\'SUPER\')") public Object export(OrganizationRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from class:BaseRestController
export- Overrides:
export
in classBaseRestController<OrganizationRequest,
OrganizationRestService> - Parameters:
request
- role- Returns:
- json
-