Init: lab4 done

This commit is contained in:
2025-11-07 05:26:09 +08:00
commit b55f254d82
23 changed files with 1140 additions and 0 deletions

13
models/state.go Normal file
View 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"`
}