mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-04 21:06:20 +02:00
add IsPrivate and Visibility fields to Group struct
This commit is contained in:
parent
22118316ec
commit
b598db7608
@ -3,6 +3,7 @@ package group
|
||||
import (
|
||||
"code.gitea.io/gitea/models/db"
|
||||
user_model "code.gitea.io/gitea/models/user"
|
||||
"code.gitea.io/gitea/modules/structs"
|
||||
"code.gitea.io/gitea/modules/util"
|
||||
"context"
|
||||
"errors"
|
||||
@ -20,6 +21,8 @@ type Group struct {
|
||||
Name string `xorm:"INDEX NOT NULL"`
|
||||
FullName string `xorm:"TEXT"` // displayed in places like navigation menus
|
||||
Description string `xorm:"TEXT"`
|
||||
IsPrivate bool
|
||||
Visibility structs.VisibleType `xorm:"NOT NULL DEFAULT 0"`
|
||||
Avatar string `xorm:"VARCHAR(64)"`
|
||||
|
||||
ParentGroupID int64 `xorm:"INDEX DEFAULT NULL"`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user