Package com.bytedesk.social.line
Class LineRestController
java.lang.Object
com.bytedesk.core.base.BaseRestController<LineRequest,LineRestService>
com.bytedesk.social.line.LineRestController
@RestController
@RequestMapping("/api/v1/line")
public class LineRestController
extends BaseRestController<LineRequest,LineRestService>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>org.springframework.http.ResponseEntity<?>create(LineRequest request) 通用的create实现 减少子类重复代码org.springframework.http.ResponseEntity<?>delete(LineRequest request) 通用的delete实现 减少子类重复代码export(LineRequest request, jakarta.servlet.http.HttpServletResponse response) exportorg.springframework.http.ResponseEntity<?>queryByOrg(LineRequest request) 通用的queryByOrg实现 减少子类重复代码org.springframework.http.ResponseEntity<?>queryByUid(LineRequest request) 通用的queryByUid实现 减少子类重复代码org.springframework.http.ResponseEntity<?>queryByUser(LineRequest request) 通用的queryByUser实现 减少子类重复代码org.springframework.http.ResponseEntity<?>update(LineRequest request) 通用的update实现 减少子类重复代码org.springframework.http.ResponseEntity<?>updateAccessToken(LineRequest request) org.springframework.http.ResponseEntity<?>updateKid(LineRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestController
deleteByOrgUid, exportTemplate, getService
-
Field Details
-
lineRestService
-
-
Constructor Details
-
LineRestController
public LineRestController()
-
-
Method Details
-
queryByOrg
@ActionAnnotation(title="Line", action="\u7ec4\u7ec7\u67e5\u8be2", description="query line by org") public org.springframework.http.ResponseEntity<?> queryByOrg(LineRequest request) Description copied from class:BaseRestController通用的queryByOrg实现 减少子类重复代码- Overrides:
queryByOrgin classBaseRestController<LineRequest,LineRestService>
-
queryByUser
@ActionAnnotation(title="Line", action="\u7528\u6237\u67e5\u8be2", description="query line by user") public org.springframework.http.ResponseEntity<?> queryByUser(LineRequest request) Description copied from class:BaseRestController通用的queryByUser实现 减少子类重复代码- Overrides:
queryByUserin classBaseRestController<LineRequest,LineRestService>
-
queryByUid
@ActionAnnotation(title="Line", action="\u67e5\u8be2\u8be6\u60c5", description="query line by uid") public org.springframework.http.ResponseEntity<?> queryByUid(LineRequest request) Description copied from class:BaseRestController通用的queryByUid实现 减少子类重复代码- Overrides:
queryByUidin classBaseRestController<LineRequest,LineRestService>
-
create
@ActionAnnotation(title="Line", action="\u65b0\u5efa", description="create line") public org.springframework.http.ResponseEntity<?> create(LineRequest request) Description copied from class:BaseRestController通用的create实现 减少子类重复代码- Overrides:
createin classBaseRestController<LineRequest,LineRestService>
-
update
@ActionAnnotation(title="Line", action="\u66f4\u65b0", description="update line") public org.springframework.http.ResponseEntity<?> update(LineRequest request) Description copied from class:BaseRestController通用的update实现 减少子类重复代码- Overrides:
updatein classBaseRestController<LineRequest,LineRestService>
-
updateKid
@ActionAnnotation(title="Line", action="\u66f4\u65b0Key ID", description="update line kid") @PostMapping("/update/kid") public org.springframework.http.ResponseEntity<?> updateKid(@RequestBody LineRequest request) -
updateAccessToken
@ActionAnnotation(title="Line", action="\u66f4\u65b0Access Token", description="update line access token") @PostMapping("/update/accessToken") public org.springframework.http.ResponseEntity<?> updateAccessToken(@RequestBody LineRequest request) -
delete
@ActionAnnotation(title="Line", action="\u5220\u9664", description="delete line") public org.springframework.http.ResponseEntity<?> delete(LineRequest request) Description copied from class:BaseRestController通用的delete实现 减少子类重复代码- Overrides:
deletein classBaseRestController<LineRequest,LineRestService>
-
export
@ActionAnnotation(title="Line", action="\u5bfc\u51fa", description="export line") @GetMapping("/export") public Object export(LineRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from class:BaseRestControllerexport- Overrides:
exportin classBaseRestController<LineRequest,LineRestService> - Parameters:
request- role- Returns:
- json
-
checkServiceReachable
@GetMapping("/checkServiceReachable") public org.springframework.http.ResponseEntity<?> checkServiceReachable()
-