refactor: consolidate maintenance mode endpoints and enhance site status handling

This commit is contained in:
Jacky 2025-04-08 02:53:21 +00:00
parent a2d5f005b0
commit df304b41bc
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
29 changed files with 2102 additions and 1816 deletions

View file

@ -3,8 +3,9 @@ package site
import "github.com/uozi-tech/cosy"
var (
e = cosy.NewErrorScope("site")
ErrSiteNotFound = e.New(40401, "site not found")
ErrDstFileExists = e.New(50001, "destination file already exists")
ErrSiteIsEnabled = e.New(50002, "site is enabled")
e = cosy.NewErrorScope("site")
ErrSiteNotFound = e.New(40401, "site not found")
ErrDstFileExists = e.New(50001, "destination file already exists")
ErrSiteIsEnabled = e.New(50002, "site is enabled")
ErrSiteIsInMaintenance = e.New(50003, "site is in maintenance mode")
)