|
| 1 | +/* eslint-disable */ |
| 2 | +/* tslint:disable */ |
| 3 | +// @ts-nocheck |
| 4 | +/* |
| 5 | + * --------------------------------------------------------------- |
| 6 | + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## |
| 7 | + * ## ## |
| 8 | + * ## AUTHOR: acacode ## |
| 9 | + * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## |
| 10 | + * --------------------------------------------------------------- |
| 11 | + */ |
| 12 | + |
| 13 | +import request, { ContentType, RequestParams } from "./httpClient"; |
| 14 | +import { |
| 15 | + GithubComChaitinMonkeyCodeBackendProDomainLicenseResp, |
| 16 | + V1LicenseCreatePayload, |
| 17 | + WebResp, |
| 18 | +} from "./types"; |
| 19 | + |
| 20 | +/** |
| 21 | + * @description Get license |
| 22 | + * |
| 23 | + * @tags license |
| 24 | + * @name V1LicenseList |
| 25 | + * @summary Get license |
| 26 | + * @request GET:/api/v1/license |
| 27 | + * @response `200` `(WebResp & { |
| 28 | + data?: GithubComChaitinMonkeyCodeBackendProDomainLicenseResp, |
| 29 | +
|
| 30 | +})` OK |
| 31 | + */ |
| 32 | + |
| 33 | +export const v1LicenseList = (params: RequestParams = {}) => |
| 34 | + request< |
| 35 | + WebResp & { |
| 36 | + data?: GithubComChaitinMonkeyCodeBackendProDomainLicenseResp; |
| 37 | + } |
| 38 | + >({ |
| 39 | + path: `/api/v1/license`, |
| 40 | + method: "GET", |
| 41 | + type: ContentType.Json, |
| 42 | + format: "json", |
| 43 | + ...params, |
| 44 | + }); |
| 45 | + |
| 46 | +/** |
| 47 | + * @description Upload license |
| 48 | + * |
| 49 | + * @tags license |
| 50 | + * @name V1LicenseCreate |
| 51 | + * @summary Upload license |
| 52 | + * @request POST:/api/v1/license |
| 53 | + * @response `200` `(WebResp & { |
| 54 | + data?: GithubComChaitinMonkeyCodeBackendProDomainLicenseResp, |
| 55 | +
|
| 56 | +})` OK |
| 57 | + */ |
| 58 | + |
| 59 | +export const v1LicenseCreate = ( |
| 60 | + data: V1LicenseCreatePayload, |
| 61 | + params: RequestParams = {}, |
| 62 | +) => |
| 63 | + request< |
| 64 | + WebResp & { |
| 65 | + data?: GithubComChaitinMonkeyCodeBackendProDomainLicenseResp; |
| 66 | + } |
| 67 | + >({ |
| 68 | + path: `/api/v1/license`, |
| 69 | + method: "POST", |
| 70 | + body: data, |
| 71 | + type: ContentType.FormData, |
| 72 | + format: "json", |
| 73 | + ...params, |
| 74 | + }); |
0 commit comments