升级核心依赖

This commit is contained in:
cool 2024-03-22 18:01:53 +08:00
parent ce398e040e
commit 64c00cbf16
2 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,7 @@
"description": "一个项目用COOL就够了",
"private": true,
"dependencies": {
"@cool-midway/core": "^7.1.13",
"@cool-midway/core": "^7.1.14",
"@cool-midway/rpc": "^7.0.0",
"@cool-midway/task": "^7.0.0",
"@midwayjs/bootstrap": "^3.15.0",

View File

@ -17,13 +17,12 @@ export class DemoGoodsService extends BaseService {
*/
async sqlPage(query) {
await this.demoGoodsEntity.save({
id: 11,
id: 1,
title: '标题',
price: 99.0,
description: '商品描述',
mainImage: 'https://cool-js.com/logo.png',
});
await this.demoGoodsEntity.delete({ id: 11 });
return this.sqlRenderPage(
'select * from demo_goods ORDER BY id ASC',
query,