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