1.0.11 • Published 3 years ago

@south-to-north-platform/helper-api v1.0.11

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

@south-to-north-platform/helper-api 请求路由 模块

使用的逻辑, 数据库 model 如果发生变动, 需要更新本库。

前端与小程序端 拉取,然后在本地 build -> 将 build 结果 嵌入自己项目中。


build 结果 应该是

  1. 一个类
  2. 里面静态方法 名称 对应 Action 名
  3. 里面静态方法 参数 会做 类型检查
  4. 里面静态方法 返回值 应该是 axios -> options 的子集 (method heads 应该是会自动填充好的) 备注 这个类并不会真正发送请求

优点: 前端与小程序 不用再单独维护 请求路由