How to make the API response helper function or Global API reponse function in Sails.js (NODE). And how to call it?

前端 未结 0 649
谎友^
谎友^ 2020-11-29 18:52
module.exports.commonResponse = function (res, success, statusCode, result, message, extendedMessage) {

  res.status(statusCode);
  return res.json({
      success:         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题