feat(app): update

This commit is contained in:
Yangtao
2025-11-19 14:24:13 +08:00
parent 1eac66d7fd
commit 0c34585649
329 changed files with 10760 additions and 281 deletions

View File

@ -3,8 +3,9 @@ package utils
import (
"database/sql/driver"
"fmt"
"github.com/anxpp/common-utils/str"
"time"
"github.com/anxpp/common-utils/str"
)
type Time struct {
@ -19,7 +20,7 @@ func (t *Time) UnmarshalJSON(data []byte) (e error) {
func (t Time) MarshalJSON() ([]byte, error) {
return ([]byte)(fmt.Sprintf("\"%s\"", t.Time.Format(str.TimeLayout))), nil
}
func (t *Time) Scan(value interface{}) error {
func (t *Time) Scan(value any) error {
bytes, _ := value.([]byte)
tt, _ := time.ParseInLocation(str.TimeLayout, string(bytes), time.Local)
*t = Time{