entity

package module
v0.0.0-...-25d0e55 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoginUserBase_tableName = ""

Functions

This section is empty.

Types

type LoginUser

type LoginUser struct {
	LoginUserBase
	GsStateText string `json:"sStateText" gorm:"<-:false;column:sStateText"` //状态(枚举,1:启用;2:禁用)
}

*

  • 用户表'LoginUser'表结构体
  • 警告:非数据库字段禁止在此添加,应该创建扩展结构体中添加
  • @author HuangXinBian

func (LoginUser) Info

func (lu LoginUser) Info() *dbinfo.TableInfo

*

  • 结构体映射表简化信息

func (LoginUser) New

func (LoginUser) New() LoginUser

*

  • 创建结构实体,并赋予默认值

func (LoginUser) SetDefault

func (lu LoginUser) SetDefault()

*

  • 设置默认值

func (LoginUser) TableName

func (lu LoginUser) TableName() string

*

  • 结构体映射表名,处理结构体名称与表名不一致的情况

type LoginUserBase

type LoginUserBase struct {
	GsId string `` //记录编号
	/* 392-byte string literal not displayed */
	GsName string `` //名称
	/* 381-byte string literal not displayed */
	GsNo string `` //标识(组合唯一)
	/* 389-byte string literal not displayed */
	GsPass string `` //密码
	/* 381-byte string literal not displayed */
	GsType string `` //类型
	/* 411-byte string literal not displayed */
	GsOwner string `` //来源
	/* 426-byte string literal not displayed */
	GsMemo string `` //备注
	/* 371-byte string literal not displayed */
	GsCreator string `` //创建人员
	/* 423-byte string literal not displayed */
	GdCreateDate time.Time `` //创建时间
	/* 407-byte string literal not displayed */
	GsModifieder string `` //修改人员
	/* 432-byte string literal not displayed */
	GdModifiedDate time.Time `` //修改时间
	/* 414-byte string literal not displayed */
	GiState int `` //状态(枚举,1:启用;2:禁用)
	/* 418-byte string literal not displayed */
	GiIndex int `` //序号
	/* 392-byte string literal not displayed */
	GiVersion int `` //版本号
	/* 401-byte string literal not displayed */
}

*

  • 用户表'LoginUser'表结构体
  • 警告:非数据库字段禁止在此添加,应该创建扩展结构体中添加
  • @author HuangXinBian

func (LoginUserBase) BaseColumnNames

func (LoginUserBase) BaseColumnNames() []string

*

  • 结构体映射表的字段名集合

func (LoginUserBase) Info

func (LoginUserBase) Info() *dbinfo.TableInfo

*

  • 结构体映射表简化信息

func (LoginUserBase) New

*

  • 创建结构实体,并赋予默认值

func (*LoginUserBase) SetDefault

func (lu *LoginUserBase) SetDefault()

*

  • 设置默认值

func (LoginUserBase) TableName

func (LoginUserBase) TableName() string

*

  • 结构体映射表名,处理结构体名称与表名不一致的情况

Jump to

Keyboard shortcuts

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