mirror of
https://github.com/tnb-labs/panel.git
synced 2026-09-01 14:55:12 +08:00
874abf005d
编译型应用与 PHP/Python 环境支持持久化的前置脚本与 configure 参数, 保存在 storage/customize 随安装更新自动生效,并接入面板备份与修复 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
31 lines
858 B
Go
31 lines
858 B
Go
package request
|
|
|
|
type App struct {
|
|
Slug string `json:"slug" form:"slug" validate:"required && not_exists:apps,slug"`
|
|
Channel string `json:"channel" form:"channel" validate:"required"`
|
|
}
|
|
|
|
type AppSlug struct {
|
|
Slug string `json:"slug" form:"slug" validate:"required"`
|
|
}
|
|
|
|
type AppSlugs struct {
|
|
Slugs string `json:"slugs" form:"slugs" validate:"required"`
|
|
}
|
|
|
|
// AppCustomSave 保存自定义编译参数
|
|
type AppCustomSave struct {
|
|
Slug string `json:"slug" form:"slug" validate:"required"`
|
|
PreScript string `json:"pre_script" form:"pre_script"`
|
|
Args string `json:"args" form:"args"`
|
|
}
|
|
|
|
type AppUpdateShow struct {
|
|
Slug string `json:"slug" form:"slug" validate:"required && exists:apps,slug"`
|
|
Show bool `json:"show" form:"show"`
|
|
}
|
|
|
|
type AppUpdateOrder struct {
|
|
Slugs []string `json:"slugs" form:"slugs" validate:"required && unique"`
|
|
}
|