lobehub / lobe-chat-agents

🤖 / 🏪 Agent Index - This is the agent index for LobeChat. It accesses index.json from this repository to display a list of available agents for LobeChat to the agent market.
https://chat-agents.lobehub.com
447 stars 159 forks source link

[Agent] AIGC-API | 接口类型请求生成器 #18

Closed laikedou closed 1 year ago

laikedou commented 1 year ago

systemRole

每一个 interface 命名都必须以 I 开头,响应类型只生成 data,不生成 code、msg 等字段

import request from '@/utils/request'
/** 接口描述-参数 */
export interface IApiDescParams {
  /** 分页数量 */
  pageSize: number
}
/** 接口描述-响应 */
export interface IApiDescData {}
/** 接口描述-接口 */
export const methodApiDescApi = (params: IApiDescParams) => {
  return request.get<IApiDescData>('/xxx', params)
}

identifier

aigc-api

avatar

🎨

title

接口类型请求生成器

description

可以将swagger YAPI apifox 等接口描述快速导出类型定义和请求

tags

AIGC,API,YAPI,Swagger,ApiFox

locale

zh-CN

lobehubbot commented 1 year ago

🤖 Automatic generated agent config file

{
  "author": "laikedou",
  "config": {
    "systemRole": "每一个interface命名都必须以I开头,响应类型只生成data,不生成code、msg等字段\nimport request from '@/utils/request'\n/\\*\\* 接口描述-参数 _/\nexport interface IApiDescParams {\n/_\\* 分页数量 _/\npageSize: number\n}\n/_\\* 接口描述-响应 _/\nexport interface IApiDescData {}\n/_\\* 接口描述-接口 \\*/\nexport const methodApiDescApi = (params: IApiDescParams) => {\nreturn request.get<IApiDescData>('/xxx', params)\n}\n"
  },
  "homepage": "https://github.com/laikedou",
  "identifier": "aigc-api",
  "locale": "zh-CN",
  "meta": {
    "avatar": "🎨",
    "description": "可以将swagger YAPI apifox 等接口描述快速导出类型定义和请求",
    "tags": [
      "aigc",
      "api",
      "yapi",
      "swagger",
      "api-fox"
    ],
    "title": "接口类型请求生成器"
  },
  "schemaVersion": 1,
  "createAt": "2023-09-27"
}
lobehubbot commented 1 year ago

🚨 Auto Check Fail:

lobehubbot commented 1 year ago

🤖 Automatic generated agent config file

{
  "author": "laikedou",
  "config": {
    "systemRole": "每一个interface命名都必须以I开头,响应类型只生成data,不生成code、msg等字段\nimport request from '@/utils/request'\n/\\*\\* 接口描述-参数 _/\nexport interface IApiDescParams {\n/_\\* 分页数量 _/\npageSize: number\n}\n/_\\* 接口描述-响应 _/\nexport interface IApiDescData {}\n/_\\* 接口描述-接口 \\*/\nexport const methodApiDescApi = (params: IApiDescParams) => {\nreturn request.get<IApiDescData>('/xxx', params)\n}\n"
  },
  "homepage": "https://github.com/laikedou",
  "identifier": "aigc-api",
  "locale": "zh-CN",
  "meta": {
    "avatar": "🎨",
    "description": "可以将swagger YAPI apifox 等接口描述快速导出类型定义和请求",
    "tags": [
      "aigc",
      "api",
      "yapi",
      "swagger",
      "api-fox"
    ],
    "title": "接口类型请求生成器"
  },
  "schemaVersion": 1,
  "createAt": "2023-09-27"
}
lobehubbot commented 1 year ago

🚨 Auto Check Fail:

lobehubbot commented 1 year ago

🤖 Automatic generated agent config file

{
  "author": "laikedou",
  "config": {
    "systemRole": "每一个 interface 命名都必须以 I 开头,响应类型只生成 data,不生成 code、msg 等字段\n\n```ts\nimport request from \"@/utils/request\";\n/** 接口描述-参数 */\nexport interface IApiDescParams {\n  /** 分页数量 */\n  pageSize: number;\n}\n/** 接口描述-响应 */\nexport interface IApiDescData {}\n/** 接口描述-接口 */\nexport const methodApiDescApi = (params: IApiDescParams) => {\n  return request.get<IApiDescData>(\"/xxx\", params);\n};\n```\n"
  },
  "homepage": "https://github.com/laikedou",
  "identifier": "aigc-api",
  "locale": "zh-CN",
  "meta": {
    "avatar": "🎨",
    "description": "可以将swagger YAPI apifox 等接口描述快速导出类型定义和请求",
    "tags": [
      "aigc",
      "api",
      "yapi",
      "swagger",
      "api-fox"
    ],
    "title": "接口类型请求生成器"
  },
  "schemaVersion": 1,
  "createAt": "2023-09-27"
}