Skip to content

Commit

Permalink
feat: 增加类型声明
Browse files Browse the repository at this point in the history
  • Loading branch information
binggg committed Jul 10, 2024
1 parent e77956e commit d342e33
Show file tree
Hide file tree
Showing 9 changed files with 5,884 additions and 3 deletions.
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,57 @@
| -- 名称 | name | 文本 \| 单行文本 |||


```ts
interface IModalItinerary {
/**
* 目的地
*
*/
destination?: string;
/**
* 行程
*
*/
days?: {
/**
* 活动
*
*/
activities?: {
/**
* 名称
*
*/
name?: string;
/**
* 描述
*
*/
description?: string;
/**
* 地点
*
*/
location?: string;
/**
* 时间
*
*/
time?: string;
}[];
/**
* 第几天
*
*/
day?: number;
}[];
/**
* 出发日期
*
*/
start_date?: number;
}
```

### AI智能体配置

Expand Down
4 changes: 4 additions & 0 deletions cloudbaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version": "2.0",
"envId": "tcb-advanced-a656fc"
}
4 changes: 2 additions & 2 deletions miniprogram/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const { init } = require('@cloudbase/wx-cloud-client-sdk')


App({
onLaunch: function () {
if (!wx.cloud) {
Expand All @@ -16,9 +15,10 @@ App({
env: 'tcb-advanced-a656fc',
traceUser: true,
});
const client = init(wx.cloud)
init(wx.cloud)
}

this.globalData = {};
}
});

Loading

0 comments on commit d342e33

Please sign in to comment.