a back-end widget library
OperationError(innerErr, message)
OperationError(innerErr, message, errCode)
OperationResult(err)
OperationResult(err, descript)
OperationResult(err, data)
OperationResult(err, descript, data)
OperationResult(err, descript, data, msgType)
-
dataContract(schema, to) dataContract(schema, to, funcName)
-
handleError(res, err) handleError(res, err, data)
-
getAccessToken(appId, secret, code, callback)
getUserInfo(accessToken, openId, callback)
getUserInfoByCode(appId, secret, code, callback)