Class ThirdPartyAppHttpEndpoint
java.lang.Object
io.github.xezzon.zeroweb.third_party_app.internal.ThirdPartyAppHttpEndpoint
@RestController
@RequestMapping("/third-party-app")
public class ThirdPartyAppHttpEndpoint
extends Object
第三方应用管理
- Author:
- xezzon
-
Constructor Summary
ConstructorsConstructorDescriptionThirdPartyAppHttpEndpoint(ThirdPartyAppService thirdPartyAppService, ThirdPartyAppPermissionManager thirdPartyAppPermissionManager) -
Method Summary
Modifier and TypeMethodDescriptionadd(AddThirdPartyAppReq req) 添加第三方应用org.springframework.data.domain.Page<ThirdPartyApp>获取当前用户的所有第三方应用列表org.springframework.data.domain.Page<ThirdPartyApp>listThirdPartyApp(io.github.xezzon.zeroweb.core.odata.ODataRequestParam odata) 查询所有第三方应用列表rollAccessSecret(String appId) 更新第三方应用的密钥
-
Constructor Details
-
ThirdPartyAppHttpEndpoint
public ThirdPartyAppHttpEndpoint(ThirdPartyAppService thirdPartyAppService, ThirdPartyAppPermissionManager thirdPartyAppPermissionManager)
-
-
Method Details
-
add
添加第三方应用- Parameters:
req- 请求体,包含要添加的第三方应用信息- Returns:
- 添加成功后返回的第三方应用ID
-
listMyThirdPartyApp
@GetMapping("/mine") public org.springframework.data.domain.Page<ThirdPartyApp> listMyThirdPartyApp()获取当前用户的所有第三方应用列表- Returns:
- 当前用户的所有第三方应用列表
-
listThirdPartyApp
@GetMapping public org.springframework.data.domain.Page<ThirdPartyApp> listThirdPartyApp(io.github.xezzon.zeroweb.core.odata.ODataRequestParam odata) 查询所有第三方应用列表- Parameters:
odata- 查询参数- Returns:
- 所有第三方应用列表
-
rollAccessSecret
更新第三方应用的密钥- Parameters:
appId- 第三方应用ID- Returns:
- 更新后的第三方应用的凭据与密钥
-