Git Product home page Git Product logo

framework's People

Contributors

chuifengji avatar heiemooa avatar heimanba avatar xsahxl avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

chuifengji

framework's Issues

使用 tablestoreInitialzerPlugin 时,无法正常通过 use() 函数使用中间件

问题栈:

  • 在 tablestore 项目中,在对应函数中使用中间件 如 handler.use(validator({ bodySchema: {"POST /list" : schema} })); 接口返回 500
  • 移除 core 包中默认装入的 formBodyParser(),并通过 use 使用,依然报 500
  • 调试获得具体报错信息:TypeError: Cannot read property 'listTable' of undefined
  • 继续调试发现是 internal 丢失
  • 原因是下图处没有执行,打印 type 为 undefiend,不是正常流程下的 INITIALIZER
    image

demo示例

示例1

对数据实体对象user 进行增删改查的操作
user表实体

name: string; // 姓名
age: number;  // 年龄
sex: string; // 性别
email: string; // 邮件
verifyCode: string; // 验证码
verified: boolean; // 是否验证通过
  1. 点击注册按钮, 对数据进行新增操作。/ register
  2. tablestore 触发器接收数据的新增操作, 发送邮件给用户进行确认, 用户确认之后, 修改checked字段 /verifyCode
  3. 通知用户注册成功

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.