Commit 32ebdbd7 authored by wmvm's avatar wmvm

update

parent 57a93f92
......@@ -11,7 +11,7 @@
"dependencies": {
"@madex/ex-js-common": "git+ssh://git@bitbucket.org:biiigle/ex-js-common.git#master",
"@madex/ex-js-public": "git+ssh://git@bitbucket.org:biiigle/ex-js-public.git#master",
"@madex/ex-ts-dao": "0.0.2",
"@madex/ex-ts-dao": "0.0.6",
"@types/errorhandler": "^1.5.3",
"@types/express": "^4.17.21",
"@types/morgan": "^1.9.9",
......@@ -1079,9 +1079,9 @@
}
},
"node_modules/@madex/ex-ts-dao": {
"version": "0.0.2",
"resolved": "https://packages.aliyun.com/646341b481b284e28f47a25b/npm/npm-registry/@madex/ex-ts-dao/-/@madex/ex-ts-dao-0.0.2.tgz",
"integrity": "sha512-RwBPUBDPCJBgyont/LdH8kFw0y3RCRbeoecNkYKpuOx0+ptdUKZplzfVDcgXogr7gaGOE8PD+ug5p9HXEAc0XQ==",
"version": "0.0.6",
"resolved": "https://packages.aliyun.com/646341b481b284e28f47a25b/npm/npm-registry/@madex/ex-ts-dao/-/@madex/ex-ts-dao-0.0.6.tgz",
"integrity": "sha512-7yfnpwyA5UcIoQWiFWwlJ3R+KjOiiz1FMIDGakPt8Qy1Ja+TTeW3a3+rvNwdGfj6xIbRapbu+buRX0Gd3woIdQ==",
"dependencies": {
"@madex/ex-js-public": "git+ssh://git@bitbucket.org/biiigle/ex-js-public.git#master",
"bignumber.js": "^4.1.0",
......
......@@ -39,7 +39,7 @@
"dependencies": {
"@madex/ex-js-common": "git+ssh://git@bitbucket.org:biiigle/ex-js-common.git#master",
"@madex/ex-js-public": "git+ssh://git@bitbucket.org:biiigle/ex-js-public.git#master",
"@madex/ex-ts-dao": "0.0.2",
"@madex/ex-ts-dao": "0.0.6",
"@types/errorhandler": "^1.5.3",
"@types/express": "^4.17.21",
"@types/morgan": "^1.9.9",
......
/**
* 测试 js 项目引用 ts 的 dao
*/
const { user } = require("@broker/nodejs_dao_next");
const { userInfo } = require("@madex/ex-ts-dao");
async function main() {
const dbUser = await user.prototype.findOne({
const dbUser = await userInfo.prototype.findOne({
where: {
id: 1
user_id: 20788126
},
raw: true
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment