Procházet zdrojové kódy

change org_type.go to visible_type.go and fix the notes (#22752)

It seems `VisibleType` is only designed for org at first. But it is also
used by user's visibility now.
So I think `org_type.go` can be changed to `visible_type.go`.
tags/v1.19.0-rc0
yp05327 před 1 rokem
rodič
revize
7ae10cb7f1
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      modules/structs/visible_type.go

modules/structs/org_type.go → modules/structs/visible_type.go Zobrazit soubor

@@ -3,7 +3,7 @@

package structs

// VisibleType defines the visibility (Organization only)
// VisibleType defines the visibility of user and org
type VisibleType int

const (
@@ -13,11 +13,11 @@ const (
// VisibleTypeLimited Visible for every connected user
VisibleTypeLimited

// VisibleTypePrivate Visible only for organization's members
// VisibleTypePrivate Visible only for self or admin user
VisibleTypePrivate
)

// VisibilityModes is a map of org Visibility types
// VisibilityModes is a map of Visibility types
var VisibilityModes = map[string]VisibleType{
"public": VisibleTypePublic,
"limited": VisibleTypeLimited,

Načítá se…
Zrušit
Uložit