Documentation ¶
Overview ¶
Package pkg comments for pkg account account 管理后台相关功能
Index ¶
- Constants
- func AdminNodeTypes() (*types.ResultNodeTypes, error)
- func CreateAdminNodeType(opt *adminNodeTypeOption) error
- func LoginAuth(username, password string) smtp.Auth
- func SendToMail(user, password, host, to, subject, body, mailtype, replyToAddress string) error
- func UpdateAccountProfile(id int64, opt *Option) error
- type Account
- type App
- type Option
Constants ¶
View Source
const ( EmailHostEnv = "EmailHost" EmailUserEnv = "EmailUser" EmailPasswordEnv = "EmailPassword" )
Variables ¶
This section is empty.
Functions ¶
func AdminNodeTypes ¶
func AdminNodeTypes() (*types.ResultNodeTypes, error)
func CreateAdminNodeType ¶
func CreateAdminNodeType(opt *adminNodeTypeOption) error
func SendToMail ¶
func UpdateAccountProfile ¶ added in v0.0.4
Types ¶
type Account ¶
type Account struct { ID int64 `json:"id"` Mail string `json:"mail"` // mail Name string `json:"name"` // name Avatar string `json:"avatar"` // avatar Description string `json:"description"` // description Status int `json:"status"` // status CreatedAt time.Time `json:"created_at"` // created_at Password string `json:"-"` }
func CreateAccount ¶
func RetrieveAccountByID ¶
func RetrieveAccountByMail ¶
Click to show internal directories.
Click to hide internal directories.