Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Star List #33278

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions models/repo/star_list.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright 2025 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package repo

import (
"code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/modules/timeutil"
)

// StarList ...
type StarList struct {
ID int64 `xorm:"pk autoincr"`
UID int64 `xorm:INDEX uid`

Check failure on line 14 in models/repo/star_list.go

View workflow job for this annotation

GitHub Actions / lint-backend

structtag: struct field tag `xorm:INDEX uid` not compatible with reflect.StructTag.Get: bad syntax for struct tag value (govet)

Check failure on line 14 in models/repo/star_list.go

View workflow job for this annotation

GitHub Actions / lint-go-gogit

structtag: struct field tag `xorm:INDEX uid` not compatible with reflect.StructTag.Get: bad syntax for struct tag value (govet)

Check failure on line 14 in models/repo/star_list.go

View workflow job for this annotation

GitHub Actions / lint-go-windows

structtag: struct field tag `xorm:INDEX uid` not compatible with reflect.StructTag.Get: bad syntax for struct tag value (govet)
SID int64 `xorm:INDEX sid`

Check failure on line 15 in models/repo/star_list.go

View workflow job for this annotation

GitHub Actions / lint-backend

structtag: struct field tag `xorm:INDEX sid` not compatible with reflect.StructTag.Get: bad syntax for struct tag value (govet)

Check failure on line 15 in models/repo/star_list.go

View workflow job for this annotation

GitHub Actions / lint-go-gogit

structtag: struct field tag `xorm:INDEX sid` not compatible with reflect.StructTag.Get: bad syntax for struct tag value (govet)

Check failure on line 15 in models/repo/star_list.go

View workflow job for this annotation

GitHub Actions / lint-go-windows

structtag: struct field tag `xorm:INDEX sid` not compatible with reflect.StructTag.Get: bad syntax for struct tag value (govet)
Name string
Desc string

CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
}

func init() {
db.RegisterModel(new(StarList))
}
Loading