Package com.bytedesk.team.member
Class MemberRestController
java.lang.Object
com.bytedesk.core.base.BaseRestController<MemberRequest>
com.bytedesk.team.member.MemberRestController
@RestController
@RequestMapping("/api/v1/member")
public class MemberRestController
extends BaseRestController<MemberRequest>
http://127.0.0.1:9003/swagger-ui/index.html
https://www.bezkoder.com/swagger-3-annotations/#Swagger_3_annotations
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
create
(MemberRequest request) createorg.springframework.http.ResponseEntity<?>
delete
(MemberRequest request) deleteexport
(MemberRequest request, jakarta.servlet.http.HttpServletResponse response) exportorg.springframework.http.ResponseEntity<?>
queryByOrg
(MemberRequest request) org.springframework.http.ResponseEntity<?>
queryByUid
(MemberRequest request) query by uidorg.springframework.http.ResponseEntity<?>
queryByUser
(MemberRequest request) query department usersorg.springframework.http.ResponseEntity<?>
queryByUserUid
(MemberRequest request) org.springframework.http.ResponseEntity<?>
update
(MemberRequest request) update
-
Field Details
-
memberService
-
-
Constructor Details
-
MemberRestController
public MemberRestController()
-
-
Method Details
-
queryByOrg
- Specified by:
queryByOrg
in classBaseRestController<MemberRequest>
- Returns:
-
queryByUser
Description copied from class:BaseRestController
query department users- Specified by:
queryByUser
in classBaseRestController<MemberRequest>
- Returns:
- json
-
queryByUserUid
@GetMapping("/query/userUid") public org.springframework.http.ResponseEntity<?> queryByUserUid(MemberRequest request) -
queryByUid
Description copied from class:BaseRestController
query by uid- Specified by:
queryByUid
in classBaseRestController<MemberRequest>
- Parameters:
request
- role- Returns:
- json
-
create
@PreAuthorize("hasAuthority(\'MEMBER_CREATE\')") @ActionAnnotation(title="member", action="create", description="create member") public org.springframework.http.ResponseEntity<?> create(@RequestBody MemberRequest request) Description copied from class:BaseRestController
create- Specified by:
create
in classBaseRestController<MemberRequest>
- Parameters:
request
- role- Returns:
- json
-
update
@PreAuthorize("hasAuthority(\'MEMBER_UPDATE\')") @ActionAnnotation(title="member", action="update", description="update member") public org.springframework.http.ResponseEntity<?> update(@RequestBody MemberRequest request) Description copied from class:BaseRestController
update- Specified by:
update
in classBaseRestController<MemberRequest>
- Parameters:
request
- role- Returns:
- json
-
delete
@PreAuthorize("hasAuthority(\'MEMBER_DELETE\')") @ActionAnnotation(title="member", action="delete", description="delete member") public org.springframework.http.ResponseEntity<?> delete(@RequestBody MemberRequest request) Description copied from class:BaseRestController
delete- Specified by:
delete
in classBaseRestController<MemberRequest>
- Parameters:
request
- role- Returns:
- json
-
export
@PreAuthorize("hasAuthority(\'MEMBER_EXPORT\')") @ActionAnnotation(title="member", action="export", description="export member") @GetMapping("/export") public Object export(MemberRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from class:BaseRestController
export- Specified by:
export
in classBaseRestController<MemberRequest>
- Parameters:
request
- role- Returns:
- json
-