修复环境变量状态零值未返回的问题
This commit is contained in:
parent
9ea167e676
commit
da659e0f9e
|
@ -6,13 +6,13 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Envs struct {
|
type Envs struct {
|
||||||
Id int `xorm:"pk autoincr INTEGER" json:"id,omitempty"`
|
Id int `xorm:"pk autoincr INTEGER" json:"id"`
|
||||||
Value string `xorm:"TEXT" json:"value,omitempty"`
|
Value string `xorm:"TEXT" json:"value"`
|
||||||
Timestamp string `xorm:"TEXT" json:"timestamp,omitempty"`
|
Timestamp string `xorm:"TEXT" json:"timestamp"`
|
||||||
Status int `xorm:"TINYINT(1)" json:"status,omitempty"`
|
Status int `xorm:"TINYINT(1)" json:"status"`
|
||||||
Position string `xorm:"TINYINT(1)" json:"position,omitempty"`
|
Position string `xorm:"TINYINT(1)" json:"position"`
|
||||||
Name string `xorm:"TEXT" json:"name,omitempty"`
|
Name string `xorm:"TEXT" json:"name"`
|
||||||
Remarks string `xorm:"TEXT" json:"remarks,omitempty"`
|
Remarks string `xorm:"TEXT" json:"remarks"`
|
||||||
Createdat time.Time `xorm:"not null DATETIME created" json:"createdAt"`
|
Createdat time.Time `xorm:"not null DATETIME created" json:"createdAt"`
|
||||||
Updatedat time.Time `xorm:"not null DATETIME updated" json:"updatedAt"`
|
Updatedat time.Time `xorm:"not null DATETIME updated" json:"updatedAt"`
|
||||||
SerialIndex int64 `xorm:"serial_index INTEGER" json:"serialIndex"`
|
SerialIndex int64 `xorm:"serial_index INTEGER" json:"serialIndex"`
|
||||||
|
|
|
@ -6,29 +6,29 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Subscriptions struct {
|
type Subscriptions struct {
|
||||||
Id int `xorm:"pk autoincr INTEGER" json:"id,omitempty"`
|
Id int `xorm:"pk autoincr INTEGER" json:"id"`
|
||||||
Name string `xorm:"TEXT" json:"name,omitempty"`
|
Name string `xorm:"TEXT" json:"name"`
|
||||||
Url string `xorm:"TEXT" json:"url,omitempty"`
|
Url string `xorm:"TEXT" json:"url"`
|
||||||
Schedule string `xorm:"TEXT" json:"schedule,omitempty"`
|
Schedule string `xorm:"TEXT" json:"schedule"`
|
||||||
IntervalSchedule map[string]any `xorm:"JSON" json:"interval_schedule,omitempty"`
|
IntervalSchedule map[string]any `xorm:"JSON" json:"interval_schedule"`
|
||||||
Type string `xorm:"TEXT" json:"type,omitempty"`
|
Type string `xorm:"TEXT" json:"type"`
|
||||||
Whitelist string `xorm:"TEXT" json:"whitelist,omitempty"`
|
Whitelist string `xorm:"TEXT" json:"whitelist"`
|
||||||
Blacklist string `xorm:"TEXT" json:"blacklist,omitempty"`
|
Blacklist string `xorm:"TEXT" json:"blacklist"`
|
||||||
Status int `xorm:"INTEGER default(1)" json:"status,omitempty"`
|
Status int `xorm:"INTEGER default(1)" json:"status"`
|
||||||
Dependences string `xorm:"TEXT" json:"dependences,omitempty"`
|
Dependences string `xorm:"TEXT" json:"dependences"`
|
||||||
Extensions string `xorm:"TEXT" json:"extensions,omitempty"`
|
Extensions string `xorm:"TEXT" json:"extensions"`
|
||||||
SubBefore string `xorm:"TEXT" json:"sub_before,omitempty"`
|
SubBefore string `xorm:"TEXT" json:"sub_before"`
|
||||||
SubAfter string `xorm:"TEXT" json:"sub_after,omitempty"`
|
SubAfter string `xorm:"TEXT" json:"sub_after"`
|
||||||
Branch string `xorm:"TEXT" json:"branch,omitempty"`
|
Branch string `xorm:"TEXT" json:"branch"`
|
||||||
PullType string `xorm:"TEXT" json:"pull_type,omitempty"`
|
PullType string `xorm:"TEXT" json:"pull_type"`
|
||||||
PullOption string `xorm:"JSON" json:"pull_option,omitempty"`
|
PullOption string `xorm:"JSON" json:"pull_option"`
|
||||||
Pid int `xorm:"INTEGER" json:"pid,omitempty"`
|
Pid int `xorm:"INTEGER" json:"pid"`
|
||||||
IsDisabled int `xorm:"INTEGER" json:"is_disabled,omitempty"`
|
IsDisabled int `xorm:"INTEGER" json:"is_disabled"`
|
||||||
LogPath string `xorm:"TEXT" json:"log_path,omitempty"`
|
LogPath string `xorm:"TEXT" json:"log_path"`
|
||||||
ScheduleType string `xorm:"TEXT" json:"schedule_type,omitempty"`
|
ScheduleType string `xorm:"TEXT" json:"schedule_type"`
|
||||||
Alias string `xorm:"TEXT unique" json:"alias,omitempty"`
|
Alias string `xorm:"TEXT unique" json:"alias"`
|
||||||
Createdat string `xorm:"not null DATETIME created" json:"createdat,omitempty"`
|
Createdat string `xorm:"not null DATETIME created" json:"createdat"`
|
||||||
Updatedat string `xorm:"not null DATETIME updated" json:"updatedat,omitempty"`
|
Updatedat string `xorm:"not null DATETIME updated" json:"updatedat"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func QuerySubscription(searchValue string) ([]*Subscriptions, error) {
|
func QuerySubscription(searchValue string) ([]*Subscriptions, error) {
|
||||||
|
|
Loading…
Reference in New Issue