Documentation ¶
Index ¶
- func AstPrint()
- func OpenAstFile(path string) (*ast.File, string)
- func PrintAst(path string)
- func SwitchImportFilePath(f *ast.File, expr *ast.SelectorExpr) string
- func TraversalAstDir(typeName, path, traversalFile string) string
- func TraversalAstFile(path string) []*ast.Field
- type A
- type Account
- func (Account) AutoFieldKeys() map[string]bool
- func (Account) FieldCreatedTimeKey() string
- func (Account) FieldDeepKey() string
- func (Account) FieldDeleteTimeKey() string
- func (Account) FieldIdKey() string
- func (Account) FieldKeys() []string
- func (Account) FieldNameKey() string
- func (Account) FieldNickNameKey() string
- func (Account) FieldPasswordKey() string
- func (Account) FieldUpdatedTimeKey() string
- func (Account) FieldUserIDKey() string
- func (Account) IndexNameKey() string
- func (Account) IndexNameValue() string
- func (Account) Migrate(db *sqlx.DB) sql.Result
- func (Account) PrimaryKeys() []string
- func (Account) Schema() string
- func (Account) TableName() string
- func (Account) UniqueIndexUserIDKey() string
- func (Account) UniqueIndexUserIDNameKey() string
- func (Account) UniqueIndexUserIDNameValue() string
- func (Account) UniqueIndexUserIDValue() string
- type AccountID
- type TimestampAt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SwitchImportFilePath ¶
func SwitchImportFilePath(f *ast.File, expr *ast.SelectorExpr) string
func TraversalAstDir ¶
func TraversalAstFile ¶
Types ¶
type Account ¶
type Account struct { tmp.TimestampDeep TimestampAt AccountID Name string `db:"f_name,size=50,default=''" json:"name"` Password string `db:"f_password"` UserID uint64 `db:"f_userID"` Nickname string `db:"f_nick_name,size=90,default=''"` }
Account 账户 @def primary f_id @def unique_index i_userID f_userID @def index i_name f_name @def unique_index i_userID_name f_userID f_name
func (Account) AutoFieldKeys ¶
func (Account) FieldCreatedTimeKey ¶
func (Account) FieldDeepKey ¶
func (Account) FieldDeleteTimeKey ¶
func (Account) FieldIdKey ¶
func (Account) FieldNameKey ¶
func (Account) FieldNickNameKey ¶
func (Account) FieldPasswordKey ¶
func (Account) FieldUpdatedTimeKey ¶
func (Account) FieldUserIDKey ¶
func (Account) IndexNameKey ¶
func (Account) IndexNameValue ¶
func (Account) PrimaryKeys ¶
func (Account) UniqueIndexUserIDKey ¶
func (Account) UniqueIndexUserIDNameKey ¶
func (Account) UniqueIndexUserIDNameValue ¶
func (Account) UniqueIndexUserIDValue ¶
type TimestampAt ¶
Click to show internal directories.
Click to hide internal directories.