import { Pageable } from '../'; import { ApiClientFactory } from '../core/api.client.factory'; import { PromotionalList, PageList, ListDelete, Listput, Transcoding, Pagepost } from '../model/promotionalconfig.model'; export class PromotionalService { constructor(private factory: ApiClientFactory) { } /** * @function getData 宣传视频列表 * @param projectId 项目ID */ async getData(projectId: string): Promise { const result = await this.factory.surveillance.get( `/static/video/list?projectId=${projectId}` ); return result; } /** * @function getDataput 宣传视频添加接口 */ async getDataput(params:any): Promise { const result = await this.factory.surveillance.post( `/static/video`,params ); return result; } /** * @function getDatatranscoding 宣传视频转码接口 */ async getDatatranscoding(id:string): Promise { const result = await this.factory.surveillance.put( `/static/video/convert?id=${id}` ); return result; } /** * @function getDataDelete 宣传视频删除 * @param id 项目ID */ async getDataDelete(id: string): Promise { const result = await this.factory.surveillance.delete( `/static/video/${id}` ); return result; } /** * @function Pages 页面列表 * @param projectId 项目ID */ async Pages(projectId: string): Promise { const result = await this.factory.surveillance.get( `static/page/list?projectId=${projectId}` ); return result; } /** * @function Pagepost 宣传富文本添加 */ async Pagepost(params:any): Promise { const result = await this.factory.surveillance.post( `/static/page`,params ); return result; } /** * @function PagesDelete 页面列表删除 * @param id 项目ID */ async PagesDelete(id: string): Promise { const result = await this.factory.surveillance.delete( `/static/page/${id}` ); return result; } }