UNPKG

@25sprout/react-starter

Version:

25sprout web starter with React

61 lines (59 loc) 1.7 kB
/* eslint-disable */ /* tslint:disable */ /* * --------------------------------------------------------------- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## * ## ## * ## AUTHOR: acacode ## * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## * --------------------------------------------------------------- */ export class Api { http; constructor(http) { this.http = http; } /** * @description 取得 Banner 列表。若 Banner 類型為圖像,則 youtube_link, auto_play 為空;若 Banner 類型為 YouTube 影片,則 link, image, image_mobile 為空。無設定手機版 Banner 圖像,則 image_mobile 為空。 * * @tags feature_website_banner * @name BsxfeatureV1BannerList * @request GET:/api/bsxfeature/v1/banner */ bsxfeatureV1BannerList = (params = {}) => this.http.request({ path: `/api/bsxfeature/v1/banner`, method: 'GET', format: 'json', ...params, }); /** * @description 取得單一 Banner 資訊。 * * @tags feature_website_banner * @name BsxfeatureV1BannerDetail * @request GET:/api/bsxfeature/v1/banner/{id} */ bsxfeatureV1BannerDetail = (id, params = {}) => this.http.request({ path: `/api/bsxfeature/v1/banner/${id}`, method: 'GET', format: 'json', ...params, }); /** * No description * * @tags feature_website_locations * @name V1LocationsList * @request GET:/api/v1/locations */ v1LocationsList = (query, params = {}) => this.http.request({ path: `/api/v1/locations`, method: 'GET', query: query, format: 'json', ...params, }); }