去掉不必要的参数
This commit is contained in:
parent
2a67be5926
commit
1aa00bab55
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -91,7 +91,6 @@ export class WechatMenu<
|
|||
}
|
||||
|
||||
async createMaterial(params: {
|
||||
appType: string;
|
||||
applicationId: string;
|
||||
type: MediaType;
|
||||
file: File;
|
||||
|
|
|
|||
Loading…
Reference in New Issue