Code Monkey home page Code Monkey logo

Comments (1)

FrankCheungDev avatar FrankCheungDev commented on June 6, 2024

我的做法是,要做两个处理:

  1. 自定义数据获取方法
// pont-config.json

"fetchMethodPath": "./request"

// request.ts
import axios from 'axios';

export default async function (url: string): Promise<string> {
  return axios.get(url).then((res) => {
    const { tags, ...ext } = res.data; // 关键步骤,去掉tags,交给pont内部处理
    return JSON.stringify(ext);
  });
}

  1. nestjs的接口声明的tag,修改为或者增加一个英文tag
...
@ApiTags('登录模块', 'Login')
@Controller()
export class LoginController {
  constructor(private loginService: LoginService, private utils: UtilService) {}
...

from pont.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.