> For the complete documentation index, see [llms.txt](https://easeava.gitbook.io/easebaidu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://easeava.gitbook.io/easebaidu/zhi-neng-xiao-cheng-xu-tp/package.md).

# 包管理

## 小程序包管理

为授权的小程序帐号上传小程序代码:

```
$smart->upload(int $template_id, int $ext_json, string $user_version, string $user_desc);
```

为授权的小程序提交审核:

```
$smart->submitAudit(string $content, string $package_id, string $remark);
```

发布已通过审核的小程序:

```
$smart->release(string $package_id);
```

小程序版本回退:

```
$smart->rollback(string $package_id);
```

小程序审核撤回:

```
$smart->withdraw(string $package_id);
```

获取授权小程序预览包详情:

```
$smart->getTrial();
```

获取小程序包列表:

```
$smart->list();
```

获取授权小程序包详情:

```
$smart->getDetail(int $type = null, int $package_id = null);
```
