文件操作 - types.ts
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/give/src/Campaigns/resources/admin/components/types.ts
编辑文件内容
import {GoalType} from '@givewp/campaigns/types'; export type Campaign = { id?: number; pageId?: number; pagePermalink?: string & Location; type: string; title: string; shortDescription: string; longDescription: string; logo: string; image: string; primaryColor: string; secondaryColor: string; goalType: GoalType; goal: number; goalStats: { actual: number; percentage: number; goal: number; }; status: string; createdAt: string; startDate: string; endDate: string; defaultFormId: number; defaultFormTitle: string; }; export type CampaignEntity = { record: Campaign; hasResolved: boolean; edit: (data: Campaign) => void save: () => any } /*export interface Campaign { id: number; title: string; type: string; status: string; shortDescription: string; longDescription: string; logo: string; image: string; goal: number; }*/
修改文件时间
将文件时间修改为当前时间的前一年
删除文件