Skip to content

lujiwen/noteshub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

user ( // User represents the object of individual and member of team. type User struct { ID int64 LowerName string xorm:"UNIQUE NOT NULL" Name string xorm:"UNIQUE NOT NULL" FullName string // Email is the primary email address (to be used for communication) Email string xorm:"NOT NULL" Passwd string xorm:"NOT NULL" LoginType LoginType LoginSource int64 xorm:"NOT NULL DEFAULT 0" LoginName string Type UserType OwnedOrgs []*User xorm:"-" json:"-" Orgs []*User xorm:"-" json:"-" Repos []*Repository xorm:"-" json:"-" Location string Website string Rands string xorm:"VARCHAR(10)" Salt string xorm:"VARCHAR(10)" Created time.Time xorm:"-" json:"-" CreatedUnix int64 Updated time.Time xorm:"-" json:"-" UpdatedUnix int64

// Remember visibility choice for convenience, true for private
LastRepoVisibility bool
// Maximum repository creation limit, -1 means use gloabl default
MaxRepoCreation int `xorm:"NOT NULL DEFAULT -1"`

// Permissions
IsActive         bool // Activate primary email
IsAdmin          bool
AllowGitHook     bool
AllowImportLocal bool // Allow migrate repository by local path
ProhibitLogin    bool

// Avatar
Avatar          string `xorm:"VARCHAR(2048) NOT NULL"`
AvatarEmail     string `xorm:"NOT NULL"`
UseCustomAvatar bool

// Counters
NumFollowers int
NumFollowing int `xorm:"NOT NULL DEFAULT 0"`
NumStars     int
NumRepos     int

// For organization
Description string
NumTeams    int
NumMembers  int
Teams       []*Team `xorm:"-" json:"-"`
Members     []*User `xorm:"-" json:"-"`

} ) sheet( create_date name author cover original tune beat )

note( owner )

how to solve the problem of cross-Domain requests

execute the command below : open -a "Google Chrome" --args --disable-web-security --user-data-dir

import functions from other module :

use modulename.functionname complete

import the module where the function belongs automatically

defer will stack the following operation to cope with error returning but leave the resource opened

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published