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(@Valid AddThirdPartyAppReq req) 添加第三方应用org.springframework.data.domain.Page<@NonNull ThirdPartyApp> 获取当前用户的所有第三方应用列表org.springframework.data.domain.Page<@NonNull ThirdPartyApp> listThirdPartyApp(io.github.xezzon.zeroweb.core.odata.ODataRequestParam odata) 查询所有第三方应用列表rollAccessSecret(@NotBlank String appId) 更新第三方应用的密钥
-
Constructor Details
-
ThirdPartyAppHttpEndpoint
public ThirdPartyAppHttpEndpoint(ThirdPartyAppService thirdPartyAppService, ThirdPartyAppPermissionManager thirdPartyAppPermissionManager) 依赖注入- Parameters:
thirdPartyAppService- 第三方应用管理thirdPartyAppPermissionManager- 第三方应用权限管理
-
-
Method Details
-
add
添加第三方应用- Parameters:
req- 请求体,包含要添加的第三方应用信息- Returns:
- 添加成功后返回的第三方应用ID
-
listMyThirdPartyApp
@GetMapping("/mine") public org.springframework.data.domain.Page<@NonNull ThirdPartyApp> listMyThirdPartyApp()获取当前用户的所有第三方应用列表- Returns:
- 当前用户的所有第三方应用列表
-
listThirdPartyApp
@GetMapping public org.springframework.data.domain.Page<@NonNull ThirdPartyApp> listThirdPartyApp(io.github.xezzon.zeroweb.core.odata.ODataRequestParam odata) 查询所有第三方应用列表- Parameters:
odata- 查询参数- Returns:
- 所有第三方应用列表
-
rollAccessSecret
@PatchMapping("/{appId}/roll") public AccessSecret rollAccessSecret(@PathVariable @NotBlank @NotBlank String appId) 更新第三方应用的密钥- Parameters:
appId- 第三方应用ID- Returns:
- 更新后的第三方应用的凭据与密钥
-