You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
517 B
22 lines
517 B
import axios from 'axios';
|
|
|
|
export interface BaseInfoModel {
|
|
activityName: string;
|
|
channelType: string;
|
|
promotionTime: string[];
|
|
promoteLink: string;
|
|
}
|
|
export interface ChannelInfoModel {
|
|
advertisingSource: string;
|
|
advertisingMedia: string;
|
|
keyword: string[];
|
|
pushNotify: boolean;
|
|
advertisingContent: string;
|
|
}
|
|
|
|
export type UnitChannelModel = BaseInfoModel & ChannelInfoModel;
|
|
|
|
export function submitChannelForm(data: UnitChannelModel) {
|
|
return axios.post('/api/channel-form/submit', { data });
|
|
}
|