one-widgets
v0.1.9
Published
a back-end widget library
Downloads
8
Readme
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
dataContract
dataContract(schema, to) dataContract(schema, to, funcName)
expressExt
handleError
handleError(res, err) handleError(res, err, data)
utils
weixinHelper
getAccessToken
getAccessToken(appId, secret, code, callback)
getUserInfo
getUserInfo(accessToken, openId, callback)
getUserInfoByCode
getUserInfoByCode(appId, secret, code, callback)