dao

package
v0.0.0-...-8dc6894 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2020 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Org

type Org struct {
	ID   string
	Name string
}

func (Org) CreateSQL

func (self Org) CreateSQL() []string

func (*Org) Insert

func (self *Org) Insert(db *genji.DB) error

func (Org) TableName

func (self Org) TableName() string

func (*Org) Update

func (self *Org) Update(db *genji.DB) error

type Permission

type Permission struct {
	ID      string
	User    string
	Org     string
	Project string
	Role    string
}

func (Permission) CreateSQL

func (self Permission) CreateSQL() []string

func (*Permission) Insert

func (self *Permission) Insert(db *genji.DB) error

func (Permission) TableName

func (self Permission) TableName() string

func (*Permission) Update

func (self *Permission) Update(db *genji.DB) error

type Project

type Project struct {
	ID    string
	Name  string
	OrgID string
}

func (Project) CreateSQL

func (self Project) CreateSQL() []string

func (*Project) Insert

func (self *Project) Insert(db *genji.DB) error

func (Project) TableName

func (self Project) TableName() string

func (*Project) Update

func (self *Project) Update(db *genji.DB) error

type RoleTypeEnum

type RoleTypeEnum string
var (
	RoleAdmin      RoleTypeEnum = "Admin"
	RoleUser       RoleTypeEnum = "User"
	RoleSuperAdmin RoleTypeEnum = "SuperAdmin"
)

type Roles

type Roles struct {
	ID   string
	Role string
}

func (Roles) CreateSQL

func (self Roles) CreateSQL() []string

func (*Roles) Insert

func (self *Roles) Insert(db *genji.DB) error

func (Roles) TableName

func (self Roles) TableName() string

func (*Roles) Update

func (self *Roles) Update(db *genji.DB) error

type User

type User struct {
	ID    string
	Name  string
	Email string
}

func (User) CreateSQL

func (self User) CreateSQL() []string

func (*User) Insert

func (self *User) Insert(db *genji.DB) error

func (User) TableName

func (self User) TableName() string

func (*User) Update

func (self *User) Update(db *genji.DB) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL