feat: 支持小程序上传配置加密存储
This commit is contained in:
1 parent
526a9db789
commit
3d0252d187
10 files changed
+257
-12
No files matched your search
@@ -6,6 +6,7 @@ import type {
|
||||
BrandProfile,
|
||||
BrandReleaseSummary,
|
||||
MiniAppReleaseTask,
|
||||
MiniAppReleaseSettings,
|
||||
BrandUpdate,
|
||||
} from "../types/brand.js";
|
||||
|
||||
@@ -74,6 +75,12 @@ export interface BrandMethods {
|
||||
weappUploadId?: string;
|
||||
},
|
||||
): Promise<MiniAppReleaseTask>;
|
||||
getAdminMiniAppSettings(): Promise<MiniAppReleaseSettings>;
|
||||
updateAdminMiniAppSettings(body: {
|
||||
appId?: string;
|
||||
artifactPath?: string;
|
||||
privateKey?: string;
|
||||
}): Promise<MiniAppReleaseSettings>;
|
||||
}
|
||||
|
||||
export function brandMethods({ request }: { request: RequestFn }): BrandMethods {
|
||||
@@ -125,5 +132,8 @@ export function brandMethods({ request }: { request: RequestFn }): BrandMethods
|
||||
method: "PATCH",
|
||||
body,
|
||||
}),
|
||||
getAdminMiniAppSettings: () => request("/admin/miniapp-releases/settings"),
|
||||
updateAdminMiniAppSettings: (body) =>
|
||||
request("/admin/miniapp-releases/settings", { method: "PATCH", body }),
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user