feat: add list profile

This commit is contained in:
Rogee
2024-12-09 20:33:35 +08:00
parent af8a8e9469
commit 0c9cb498d5
12 changed files with 125 additions and 40 deletions

View File

@@ -1,7 +1,7 @@
package db
type Pagination struct {
Offset string `json:"offset"`
Offset string `json:"offset,omitempty"`
OffsetID int64 `json:"-"`
Action int `json:"action"` // action: 0 :加载更多 1:刷新
}

View File

@@ -18,7 +18,7 @@ type MediaType string
type MediaResources []MediaType
func (x MediaResources) Scan(value interface{}) (err error) {
func (x *MediaResources) Scan(value interface{}) (err error) {
switch v := value.(type) {
case string:
return json.Unmarshal([]byte(v), &x)