nut

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: MIT Imports: 59 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RoleAdmin admin role
	RoleAdmin = "admin"
	// RoleRoot root role
	RoleRoot = "root"
	// UserTypeEmail email user
	UserTypeEmail = "email"

	// DefaultResourceType default resource type
	DefaultResourceType = "-"
	// DefaultResourceID default resourc id
	DefaultResourceID = 0
)
View Source
const (
	// DateFormat date format
	DateFormat = "2006-01-02"
)
View Source
const (
	// TITLE page title's key
	TITLE = "title"
)

Variables

This section is empty.

Functions

func AddLog

func AddLog(o orm.Ormer, user *User, ip, message string) error

AddLog add log

func Allow

func Allow(o orm.Ormer, user *User, role *Role, years, months, days int) error

Allow allow permission

func Authority

func Authority(o orm.Ormer, user uint, rty string, rid uint) ([]string, error)

Authority get roles

func Cache

func Cache() cache.Cache

Cache get cache manager

func Can

func Can(o orm.Ormer, user uint, name string, rty string, rid uint) bool

Can can?

func CreateCertificate

func CreateCertificate(ca bool, subject pkix.Name, years int) ([]byte, []byte, error)

CreateCertificate create certs

func Deny

func Deny(o orm.Ormer, role uint, user uint) error

Deny deny permission

func Get

func Get(k string, v interface{}) error

Get by key

func GetLocale

func GetLocale(lang, code string) (string, error)

GetLocale get locale message

func HTTPMethodFilter

func HTTPMethodFilter(ctx *context.Context)

HTTPMethodFilter parse _method for put and delete

func Is

func Is(o orm.Ormer, user uint, names ...string) bool

Is is role ?

func ListResourcesIds

func ListResourcesIds(o orm.Ormer, user uint, role, rty string) ([]uint, error)

ListResourcesIds list resource ids by user and role

func ListUserByResource

func ListUserByResource(o orm.Ormer, role, rty string, rid uint) ([]uint, error)

ListUserByResource list users by resource

func LoadLocales

func LoadLocales() error

LoadLocales load locales

func Main

func Main(args ...string) error

Main entry

func Open

func Open() error

Open open

func RegisterSitemap

func RegisterSitemap(args ...SitemapHandler)

RegisterSitemap registe sitemap handler

func Set

func Set(o orm.Ormer, k string, v interface{}, e bool) error

Set set k-v

func SetLocale

func SetLocale(o orm.Ormer, lang, code, message string) error

SetLocale set locale info in database

func Te

func Te(lang, code string, args ...interface{}) error

Te translate content to target language. (error)

func Th

func Th(lang, code string, obj interface{}) (string, error)

Th translate content to target language.(html)

func Tr

func Tr(lang, code string, args ...interface{}) string

Tr translate content to target language.

func WritePemFile

func WritePemFile(file, _type string, buf []byte, mode os.FileMode) error

WritePemFile wirte to a pem format file

Types

type Aes

type Aes struct {
	// contains filtered or unexported fields
}

Aes aes

func AES

func AES() *Aes

AES aes

func (*Aes) Decrypt

func (p *Aes) Decrypt(buf []byte) ([]byte, error)

Decrypt aes decrypt

func (*Aes) Encrypt

func (p *Aes) Encrypt(buf []byte) ([]byte, error)

Encrypt aes encrypt

type Attachment

type Attachment struct {
	ID           uint      `orm:"column(id)" json:"id"`
	Title        string    `json:"title"`
	URL          string    `orm:"column(url)" json:"url"`
	Length       int64     `json:"length"`
	MediaType    string    `json:"mediaType"`
	ResourceID   uint      `orm:"column(resource_id)" json:"resourceId"`
	ResourceType string    `json:"resourceType"`
	UpdatedAt    time.Time `orm:"auto_now" json:"updatedAt"`
	CreatedAt    time.Time `orm:"auto_now_add" json:"createdAt"`

	User *User `orm:"rel(fk)" json:"-"`
}

Attachment attachment

func (*Attachment) IsPicture

func (p *Attachment) IsPicture() bool

IsPicture is picture?

func (*Attachment) TableName

func (*Attachment) TableName() string

TableName table name

type Card

type Card struct {
	ID        uint      `orm:"column(id)" json:"id"`
	Loc       string    `json:"loc"`
	Title     string    `json:"title"`
	Summary   string    `json:"summary"`
	Type      string    `json:"type"`
	Href      string    `json:"href"`
	SortOrder int       `json:"sortOrder"`
	Action    string    `json:"action"`
	UpdatedAt time.Time `orm:"auto_now" json:"updatedAt"`
	CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`
}

Card card

func (*Card) TableName

func (*Card) TableName() string

TableName table name

type Controller

type Controller struct {
	beego.Controller
	// contains filtered or unexported fields
}

Controller base controller

func (*Controller) Abort

func (p *Controller) Abort(s int, e error)

Abort http abort

func (*Controller) AddDashboardMenu

func (p *Controller) AddDashboardMenu(label string, links ...Link)

AddDashboardMenu add dashboard menu

func (*Controller) CurrentUser

func (p *Controller) CurrentUser() *User

CurrentUser get current user

func (*Controller) Flash

func (p *Controller) Flash(fn func() string, er error) bool

Flash write flash message

func (*Controller) HomeURL

func (p *Controller) HomeURL() string

HomeURL home url

func (*Controller) IsAdmin

func (p *Controller) IsAdmin() bool

IsAdmin current user is admin?

func (*Controller) LayoutApplication

func (p *Controller) LayoutApplication()

LayoutApplication use application layout

func (*Controller) LayoutDashboard

func (p *Controller) LayoutDashboard()

LayoutDashboard use dashboard layout

func (*Controller) Locale

func (p *Controller) Locale() string

Locale get current locale

func (*Controller) MustAdmin

func (p *Controller) MustAdmin()

MustAdmin must has admin role

func (*Controller) MustSignIn

func (p *Controller) MustSignIn()

MustSignIn must-sign-in

func (*Controller) ParseForm

func (p *Controller) ParseForm(fm interface{}) error

ParseForm parse form

func (*Controller) Prepare

func (p *Controller) Prepare()

Prepare prepare

func (*Controller) Redirect

func (p *Controller) Redirect(name string, args ...interface{})

Redirect http 302 redirect

func (*Controller) SetSortOrders

func (p *Controller) SetSortOrders()

SetSortOrders sort order for template

func (*Controller) UploadFile

func (p *Controller) UploadFile(name string) (*Attachment, error)

UploadFile upload file

type ErrorController

type ErrorController struct {
	Controller
}

ErrorController handle error

func (*ErrorController) Error404

func (p *ErrorController) Error404()

Error404 http 404

func (*ErrorController) Error500

func (p *ErrorController) Error500()

Error500 http 500

type FriendLink struct {
	ID        uint      `orm:"column(id)" json:"id"`
	Title     string    `json:"title"`
	Home      string    `json:"home"`
	SortOrder int       `json:"sortOrder"`
	UpdatedAt time.Time `orm:"auto_now" json:"updatedAt"`
	CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`
}

FriendLink friend_links

func (*FriendLink) TableName

func (*FriendLink) TableName() string

TableName table name

type H

type H map[string]interface{}

H hash

type Hmac

type Hmac struct {
	// contains filtered or unexported fields
}

Hmac hmac

func HMAC

func HMAC() *Hmac

HMAC hmac

func (*Hmac) Chk

func (p *Hmac) Chk(plain, code []byte) bool

Chk chk hmac

func (*Hmac) Sum

func (p *Hmac) Sum(plain []byte) []byte

Sum sum hmac

type JobHandler

type JobHandler func(body []byte) error

JobHandler job handler

type Jobber

type Jobber struct {
	// contains filtered or unexported fields
}

Jobber jobber

func JOBBER

func JOBBER() *Jobber

JOBBER get a jobber

func (*Jobber) Receive

func (p *Jobber) Receive(consumer string) error

Receive receive jobs

func (*Jobber) Register

func (p *Jobber) Register(n string, h JobHandler)

Register registe job handler

func (*Jobber) Send

func (p *Jobber) Send(pri uint8, typ string, body []byte) error

Send send job

type Jwt

type Jwt struct {
	// contains filtered or unexported fields
}

Jwt jwt token helper

func JWT

func JWT() *Jwt

JWT get a jwt

func (*Jwt) Generate

func (p *Jwt) Generate(cm jws.Claims, exp time.Duration) ([]byte, error)

Generate generate jwt token

func (*Jwt) Parse

func (p *Jwt) Parse(buf []byte) (jwt.Claims, error)

Parse parse jwt token

func (*Jwt) ParseFromRequest

func (p *Jwt) ParseFromRequest(r *http.Request) (jwt.Claims, error)

ParseFromRequest parse token from http request

type LeaveWord

type LeaveWord struct {
	ID        uint      `orm:"column(id)" json:"id"`
	Body      string    `json:"body"`
	Type      string    `json:"type"`
	CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`
}

LeaveWord leave-word

func (*LeaveWord) TableName

func (*LeaveWord) TableName() string

TableName table name

type Link struct {
	ID        uint      `orm:"column(id)" json:"id"`
	Loc       string    `json:"loc"`
	Href      string    `json:"href"`
	Label     string    `json:"label"`
	SortOrder int       `json:"sortOrder"`
	UpdatedAt time.Time `orm:"auto_now" json:"updatedAt"`
	CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`
}

Link link

func (*Link) TableName

func (*Link) TableName() string

TableName table name

type Locale

type Locale struct {
	ID        uint      `orm:"column(id)" json:"id"`
	Lang      string    `json:"lang"`
	Code      string    `json:"code"`
	Message   string    `json:"message"`
	CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`
	UpdatedAt time.Time `orm:"auto_now" json:"updatedAt"`
}

Locale locale

func (*Locale) TableName

func (*Locale) TableName() string

TableName table name

type Log

type Log struct {
	ID        uint      `orm:"column(id)" json:"id"`
	Message   string    `json:"message"`
	IP        string    `orm:"column(ip)" json:"ip"`
	CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`

	User *User `orm:"rel(fk)" json:"-"`
}

Log log

func (Log) String

func (p Log) String() string

func (*Log) TableName

func (*Log) TableName() string

TableName table name

type Plugin

type Plugin struct {
	Controller
}

Plugin controller

func (*Plugin) CreateAdminCard

func (p *Plugin) CreateAdminCard()

CreateAdminCard create @router /admin/cards [post]

func (p *Plugin) CreateAdminFriendLink()

CreateAdminFriendLink create @router /admin/friend-links [post]

func (p *Plugin) CreateAdminLink()

CreateAdminLink create @router /admin/links [post]

func (*Plugin) CreateAdminLocale

func (p *Plugin) CreateAdminLocale()

CreateAdminLocale save a locale @router /admin/locales [post]

func (*Plugin) CreateLeaveWord

func (p *Plugin) CreateLeaveWord()

CreateLeaveWord create leave-word @router /leave-words [post]

func (*Plugin) DeleteUsersSignOut

func (p *Plugin) DeleteUsersSignOut()

DeleteUsersSignOut user sign out @router /users/sign-out [delete]

func (*Plugin) DestroyAdminCard

func (p *Plugin) DestroyAdminCard()

DestroyAdminCard remove @router /admin/cards/:id [delete]

func (p *Plugin) DestroyAdminFriendLink()

DestroyAdminFriendLink remove @router /admin/friend-links/:id [delete]

func (p *Plugin) DestroyAdminLink()

DestroyAdminLink remove @router /admin/links/:id [delete]

func (*Plugin) DestroyAdminLocale

func (p *Plugin) DestroyAdminLocale()

DestroyAdminLocale remove a locale @router /admin/locales/:code [delete]

func (*Plugin) DestroyAttachment

func (p *Plugin) DestroyAttachment()

DestroyAttachment remove @router /attachments/:id [delete]

func (*Plugin) DestroyLeaveWord

func (p *Plugin) DestroyLeaveWord()

DestroyLeaveWord remove @router /leave-words/:id [delete]

func (*Plugin) EditAdminCard

func (p *Plugin) EditAdminCard()

EditAdminCard edit @router /admin/cards/edit/:id [get]

func (p *Plugin) EditAdminFriendLink()

EditAdminFriendLink edit @router /admin/friend-links/edit/:id [get]

func (p *Plugin) EditAdminLink()

EditAdminLink edit @router /admin/links/edit/:id [get]

func (*Plugin) GetAdminSiteAuthor

func (p *Plugin) GetAdminSiteAuthor()

GetAdminSiteAuthor edit site author @router /admin/site/author [get]

func (*Plugin) GetAdminSiteInfo

func (p *Plugin) GetAdminSiteInfo()

GetAdminSiteInfo edit site info @router /admin/site/info [get]

func (*Plugin) GetAdminSiteSMTP

func (p *Plugin) GetAdminSiteSMTP()

GetAdminSiteSMTP edit site smtp @router /admin/site/smtp [get]

func (*Plugin) GetAdminSiteSeo

func (p *Plugin) GetAdminSiteSeo()

GetAdminSiteSeo edit site seo @router /admin/site/seo [get]

func (*Plugin) GetAdminSiteStatus

func (p *Plugin) GetAdminSiteStatus()

GetAdminSiteStatus site status @router /admin/status [get]

func (*Plugin) GetBaiduVerify

func (p *Plugin) GetBaiduVerify()

GetBaiduVerify baidu verify file @router /baidu_verify_:code([\w]+).html”* [get]

func (*Plugin) GetDashboard

func (p *Plugin) GetDashboard()

GetDashboard dashboard panel @router /dashboard [get]

func (*Plugin) GetGoogleVerify

func (p *Plugin) GetGoogleVerify()

GetGoogleVerify google verify file @router /google:code([\w]+).html [get]

func (*Plugin) GetHome

func (p *Plugin) GetHome()

GetHome home @router / [get]

func (*Plugin) GetInstall

func (p *Plugin) GetInstall()

GetInstall init database @router /install [get]

func (*Plugin) GetSitemap

func (p *Plugin) GetSitemap()

GetSitemap sitemap @router /sitemap.xml [get]

func (*Plugin) GetUsersChangePassword

func (p *Plugin) GetUsersChangePassword()

GetUsersChangePassword change user password @router /users/change-password [get]

func (*Plugin) GetUsersConfirm

func (p *Plugin) GetUsersConfirm()

GetUsersConfirm user confirm @router /users/confirm [get]

func (*Plugin) GetUsersConfirmToken

func (p *Plugin) GetUsersConfirmToken()

GetUsersConfirmToken confirm user @router /users/confirm/:token [get]

func (*Plugin) GetUsersForgotPassword

func (p *Plugin) GetUsersForgotPassword()

GetUsersForgotPassword user forgot password @router /users/forgot-password [get]

func (*Plugin) GetUsersLogs

func (p *Plugin) GetUsersLogs()

GetUsersLogs user logs @router /users/logs [get]

func (*Plugin) GetUsersProfile

func (p *Plugin) GetUsersProfile()

GetUsersProfile users'profile @router /users/profile [get]

func (*Plugin) GetUsersResetPassword

func (p *Plugin) GetUsersResetPassword()

GetUsersResetPassword user reset password @router /users/reset-password/:token [get]

func (*Plugin) GetUsersSignIn

func (p *Plugin) GetUsersSignIn()

GetUsersSignIn user sign in @router /users/sign-in [get]

func (*Plugin) GetUsersSignUp

func (p *Plugin) GetUsersSignUp()

GetUsersSignUp user sign up @router /users/sign-up [get]

func (*Plugin) GetUsersUnlock

func (p *Plugin) GetUsersUnlock()

GetUsersUnlock user unlock @router /users/unlock [get]

func (*Plugin) GetUsersUnlockToken

func (p *Plugin) GetUsersUnlockToken()

GetUsersUnlockToken unlock user @router /users/unlock/:token [get]

func (*Plugin) IndexAdminCards

func (p *Plugin) IndexAdminCards()

IndexAdminCards list all cards @router /admin/cards [get]

func (p *Plugin) IndexAdminFriendLinks()

IndexAdminFriendLinks list all friend-links @router /admin/friend-links [get]

func (p *Plugin) IndexAdminLinks()

IndexAdminLinks list all links @router /admin/links [get]

func (*Plugin) IndexAdminLocales

func (p *Plugin) IndexAdminLocales()

IndexAdminLocales list all i18n items @router /admin/locales [get]

func (*Plugin) IndexAdminUsers

func (p *Plugin) IndexAdminUsers()

IndexAdminUsers list all users @router /admin/users [get]

func (*Plugin) IndexAttachments

func (p *Plugin) IndexAttachments()

IndexAttachments list @router /attachments [get]

func (*Plugin) IndexLeaveWords

func (p *Plugin) IndexLeaveWords()

IndexLeaveWords index leave-words @router /leave-words [get]

func (*Plugin) NewAdminCard

func (p *Plugin) NewAdminCard()

NewAdminCard new card @router /admin/cards/new [get]

func (p *Plugin) NewAdminFriendLink()

NewAdminFriendLink new friend-link @router /admin/friend-links/new [get]

func (p *Plugin) NewAdminLink()

NewAdminLink new link @router /admin/links/new [get]

func (*Plugin) NewAdminLocale

func (p *Plugin) NewAdminLocale()

NewAdminLocale create a locale item @router /admin/locales/new [get]

func (*Plugin) NewLeaveWord

func (p *Plugin) NewLeaveWord()

NewLeaveWord new leave word @router /leave-words/new [get]

func (*Plugin) PostAdminSiteAuthor

func (p *Plugin) PostAdminSiteAuthor()

PostAdminSiteAuthor update author info @router /admin/site/author [post]

func (*Plugin) PostAdminSiteFavicon

func (p *Plugin) PostAdminSiteFavicon()

PostAdminSiteFavicon save favicon.ico @router /admin/site/favicon [post]

func (*Plugin) PostAdminSiteInfo

func (p *Plugin) PostAdminSiteInfo()

PostAdminSiteInfo update site info @router /admin/site/info [post]

func (*Plugin) PostAdminSiteSMTP

func (p *Plugin) PostAdminSiteSMTP()

PostAdminSiteSMTP update author smtp @router /admin/site/smtp [post]

func (*Plugin) PostAdminSiteSeo

func (p *Plugin) PostAdminSiteSeo()

PostAdminSiteSeo update author seo @router /admin/site/seo [post]

func (*Plugin) PostAttachmentsUeditor

func (p *Plugin) PostAttachmentsUeditor()

PostAttachmentsUeditor ueditor @router /attachments/ueditor [get,post]

func (*Plugin) PostInstall

func (p *Plugin) PostInstall()

PostInstall init database @router /install [post]

func (*Plugin) PostUsersChangePassword

func (p *Plugin) PostUsersChangePassword()

PostUsersChangePassword change user's password @router /users/change-password [post]

func (*Plugin) PostUsersConfirm

func (p *Plugin) PostUsersConfirm()

PostUsersConfirm user confirm @router /users/confirm [post]

func (*Plugin) PostUsersForgotPassword

func (p *Plugin) PostUsersForgotPassword()

PostUsersForgotPassword forgot password @router /users/forgot-password [post]

func (*Plugin) PostUsersProfile

func (p *Plugin) PostUsersProfile()

PostUsersProfile users'profile @router /users/profile [post]

func (*Plugin) PostUsersResetPassword

func (p *Plugin) PostUsersResetPassword()

PostUsersResetPassword reset user password @router /users/reset-password/:token [post]

func (*Plugin) PostUsersSignIn

func (p *Plugin) PostUsersSignIn()

PostUsersSignIn user sign in @router /users/sign-in [post]

func (*Plugin) PostUsersSignUp

func (p *Plugin) PostUsersSignUp()

PostUsersSignUp user sign up @router /users/sign-up [post]

func (*Plugin) PostUsersUnlock

func (p *Plugin) PostUsersUnlock()

PostUsersUnlock user unlock @router /users/unlock [post]

func (*Plugin) UpdateAdminCard

func (p *Plugin) UpdateAdminCard()

UpdateAdminCard update @router /admin/cards/:id [post]

func (p *Plugin) UpdateAdminFriendLink()

UpdateAdminFriendLink update @router /admin/friend-links/:id [post]

func (p *Plugin) UpdateAdminLink()

UpdateAdminLink update @router /admin/links/:id [post]

type Policy

type Policy struct {
	ID        uint `orm:"column(id)" json:"id"`
	StartUp   time.Time
	ShutDown  time.Time
	UpdatedAt time.Time `orm:"auto_now" json:"updatedAt"`
	CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`

	User *User `orm:"rel(fk)"`
	Role *Role `orm:"rel(fk)"`
}

Policy policy

func (*Policy) Enable

func (p *Policy) Enable() bool

Enable is enable?

func (*Policy) TableName

func (*Policy) TableName() string

TableName table name

type Role

type Role struct {
	ID           uint `orm:"column(id)" json:"id"`
	Name         string
	ResourceID   uint `orm:"column(resource_id)"`
	ResourceType string
	UpdatedAt    time.Time `orm:"auto_now" json:"updatedAt"`
	CreatedAt    time.Time `orm:"auto_now_add" json:"createdAt"`
}

Role role

func GetRole

func GetRole(o orm.Ormer, name string, rty string, rid uint) (*Role, error)

GetRole create role if not exist

func (Role) String

func (p Role) String() string

func (*Role) TableName

func (*Role) TableName() string

TableName table name

type SMTP

type SMTP struct {
	Host     string
	Port     int
	Sender   string
	Password string
}

SMTP smtp

type Setting

type Setting struct {
	ID        uint      `orm:"column(id)" json:"id"`
	Key       string    `json:"key"`
	Val       string    `json:"val"`
	Encode    bool      `json:"encode"`
	CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`
	UpdatedAt time.Time `orm:"auto_now" json:"updatedAt"`
}

Setting k-v

func (*Setting) TableName

func (*Setting) TableName() string

TableName table name

type SitemapHandler

type SitemapHandler func() ([]string, error)

SitemapHandler sitemap handler

type User

type User struct {
	ID              uint       `orm:"column(id)" json:"id"`
	Name            string     `json:"name"`
	Email           string     `json:"email"`
	UID             string     `orm:"column(uid)" json:"uid"`
	Password        string     `json:"-"`
	ProviderID      string     `orm:"column(provider_id)" json:"-"`
	ProviderType    string     `json:"providerType"`
	SignInCount     uint       `json:"signInCount"`
	LastSignInAt    *time.Time `json:"lastSignInAt"`
	LastSignInIP    string     `orm:"column(last_sign_in_ip)" json:"lastSignInIp"`
	CurrentSignInAt *time.Time `json:"currentSignInAt"`
	CurrentSignInIP string     `orm:"column(current_sign_in_ip)" json:"currentSignInIp"`
	ConfirmedAt     *time.Time `json:"confirmedAt"`
	LockedAt        *time.Time `json:"lockedAt"`
	UpdatedAt       time.Time  `orm:"auto_now" json:"updatedAt"`
	CreatedAt       time.Time  `orm:"auto_now_add" json:"createdAt"`
}

User user

func AddEmailUser

func AddEmailUser(o orm.Ormer, lang, ip, name, email, password string) (*User, error)

AddEmailUser add email user

func GetUserByEmail

func GetUserByEmail(email string) (*User, error)

GetUserByEmail get user by email

func GetUserByUID

func GetUserByUID(uid string) (*User, error)

GetUserByUID get user by uid

func SignIn

func SignIn(o orm.Ormer, lang, ip, email, password string) (*User, error)

SignIn set sign-in info

func (*User) IsConfirm

func (p *User) IsConfirm() bool

IsConfirm is confirm?

func (*User) IsLock

func (p *User) IsLock() bool

IsLock is lock?

func (p *User) SetGravatarLogo()

SetGravatarLogo set logo by gravatar

func (*User) SetUID

func (p *User) SetUID()

SetUID generate uid

func (User) String

func (p User) String() string

func (*User) TableName

func (*User) TableName() string

TableName table name

type Vote

type Vote struct {
	ID           uint `orm:"column(id)" json:"id"`
	Point        int
	ResourceID   uint `orm:"column(resource_id)"`
	ResourceType string
	UpdatedAt    time.Time `orm:"auto_now" json:"updatedAt"`
	CreatedAt    time.Time `orm:"auto_now_add" json:"createdAt"`
}

Vote vote

func (*Vote) TableName

func (*Vote) TableName() string

TableName table name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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