Init: lab4 done
This commit is contained in:
13
models/state.go
Normal file
13
models/state.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
type UrlState struct {
|
||||
bun.BaseModel `bun:"table:url_state" json:"-"`
|
||||
|
||||
Url string `bun:"url,pk" json:"url"`
|
||||
IsSuccess bool `bun:"is_success" json:"isSuccess"`
|
||||
Latency uint `bun:"latency" json:"latency"`
|
||||
}
|
||||
Reference in New Issue
Block a user