one-widgets

0.1.9 • Public • Published

one-widgets

a back-end widget library

OperationError

OperationError(innerErr, message)
OperationError(innerErr, message, errCode)

OperationResult

OperationResult(err)
OperationResult(err, descript)
OperationResult(err, data)
OperationResult(err, descript, data)
OperationResult(err, descript, data, msgType)

extends

  • mongooseExt

    1. dataContract

    dataContract(schema, to)
    dataContract(schema, to, funcName)
    
  • expressExt

    1. handleError

    handleError(res, err)
    handleError(res, err, data)
    

utils

  • weixinHelper

    1. getAccessToken

    getAccessToken(appId, secret, code, callback)
    
    1. getUserInfo

    getUserInfo(accessToken, openId, callback)
    
    1. getUserInfoByCode

    getUserInfoByCode(appId, secret, code, callback)
    

Package Sidebar

Install

npm i one-widgets

Weekly Downloads

4

Version

0.1.9

License

BSD

Last publish

Collaborators

  • 51b