开发容器分页查询:

* 用户设置-> 开发容器列表
* GET /api/devcontainer/user?page=1&page_size=10
This commit is contained in:
DAI Mingchen
2024-08-29 12:53:07 +08:00
repo.diff.parent 475e742e53
repo.diff.commit 2f5dfd3196
repo.diff.stats_desc%!(EXTRA int=15, int=306, int=94)

repo.diff.view_file

@@ -4,7 +4,7 @@ import (
"code.gitea.io/gitea/models/db"
)
// DevstarDevcontainer devContainer 代码仓库一对一关联表
// DevstarDevcontainer devContainer 关联 代码仓库 和 用户
//
// 遵循gonic规则映射数据库表 `devstar_devcontainer`,各字段注解见 https://xorm.io/docs/chapter-02/4.columns/
type DevstarDevcontainer struct {
@@ -15,7 +15,8 @@ type DevstarDevcontainer struct {
DevcontainerUsername string `xorm:"VARCHAR(32) charset=utf8mb4 collate=utf8mb4_bin NOT NULL 'devcontainer_username' comment('SSH Username')"`
DevcontainerPassword string `xorm:"VARCHAR(32) charset=utf8mb4 collate=utf8mb4_bin NOT NULL 'devcontainer_password' comment('SSH Password')"`
DevcontainerWorkDir string `xorm:"VARCHAR(256) charset=utf8mb4 collate=utf8mb4_bin NOT NULL 'devcontainer_work_dir' comment('SSH 工作路径,典型值 ~/${project_name}256字节以内')"`
RepoId int64 `xorm:"BIGINT UNIQUE NOT NULL 'repo_id' comment('repository表主键')"`
RepoId int64 `xorm:"BIGINT NOT NULL 'repo_id' comment('repository表主键')"`
UserId int64 `xorm:"BIGINT NOT NULL 'user_id' comment('user表主键')"`
}
func init() {