去掉不必要的参数

This commit is contained in:
Wang Kejun 2023-10-13 11:47:57 +08:00
parent 2a67be5926
commit 1aa00bab55
6 changed files with 0 additions and 6 deletions

View File

@ -103,7 +103,6 @@ export default OakComponent({
const { applicationId } = this.props;
const { type } = this.props;
const result = await this.features.wechatMenu.createMaterial({
appType: 'wechatPublic',
applicationId: applicationId,
type: type,
file: media,

View File

@ -45,7 +45,6 @@ export declare class WechatMenu<ED extends EntityDict, Cxt extends BackendRuntim
articleId: string;
}): Promise<ReturnType<(AD & CommonAspectDict<ED, Cxt>)["getArticle"]>>;
createMaterial(params: {
appType: string;
applicationId: string;
type: MediaType;
file: File;

View File

@ -105,7 +105,6 @@ exports.default = OakComponent({
const { applicationId } = this.props;
const { type } = this.props;
const result = await this.features.wechatMenu.createMaterial({
appType: 'wechatPublic',
applicationId: applicationId,
type: type,
file: media,

View File

@ -45,7 +45,6 @@ export declare class WechatMenu<ED extends EntityDict, Cxt extends BackendRuntim
articleId: string;
}): Promise<ReturnType<(AD & CommonAspectDict<ED, Cxt>)["getArticle"]>>;
createMaterial(params: {
appType: string;
applicationId: string;
type: MediaType;
file: File;

View File

@ -121,7 +121,6 @@ export default OakComponent({
const { applicationId } = this.props;
const { type } = this.props;
const result = await this.features.wechatMenu.createMaterial({
appType: 'wechatPublic',
applicationId: applicationId!,
type: type as 'image' | 'voice' | 'video',
file: media,

View File

@ -91,7 +91,6 @@ export class WechatMenu<
}
async createMaterial(params: {
appType: string;
applicationId: string;
type: MediaType;
file: File;