entity

package module
v0.0.0-...-633281b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserAndRightBase_tableName = ""
View Source
var UserAndRight_tableName = ""

Functions

This section is empty.

Types

type SimpleRight

type SimpleRight struct {
	GsRightId        string `json:"sRightId" gorm:"column:sRightId; type:varchar"`               //用户编号
	GsEnglish        string `json:"sEnglish" gorm:"column:sEnglish; type:varchar"`               //权限标识名称
	GsControllerPath string `json:"sControllerPath" gorm:"column:sControllerPath; type:varchar"` //URL路径值
}

简化的权限信息实体

type UserAndRight

type UserAndRight struct {
	UserAndRightBase
}

*

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

func (UserAndRight) Info

func (o UserAndRight) Info() *TableInfo

*

  • 结构体映射表简化信息

func (UserAndRight) New

func (UserAndRight) New() UserAndRight

*

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

func (*UserAndRight) SetDefault

func (o *UserAndRight) SetDefault()

*

  • 设置默认值

func (UserAndRight) TableName

func (o UserAndRight) TableName() string

*

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

type UserAndRightBase

type UserAndRightBase struct {
	GiId int64 `` //记录编号
	/* 410-byte string literal not displayed */
	GsUserId string `` //用户编号
	/* 396-byte string literal not displayed */
	GsRightId string `` //权限编号
	/* 400-byte string literal not displayed */
	GiType int `` //权限类型
	/* 383-byte string literal not displayed */
	GsMemo string `` //备注
	/* 375-byte string literal not displayed */
	GsCreator string `` //创建者
	/* 424-byte string literal not displayed */
	GdCreateDate time.Time `` //创建时间
	/* 411-byte string literal not displayed */
	GsModifieder string `` //修改人
	/* 433-byte string literal not displayed */
	GdModifiedDate time.Time `` //修改时间
	/* 417-byte string literal not displayed */
	GiState int `` //状态
	/* 391-byte string literal not displayed */
	GiIndex int `` //序号
	/* 392-byte string literal not displayed */
	GiVersion int `` //版本号
	/* 401-byte string literal not displayed */
}

*

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

func (UserAndRightBase) BaseColumnNames

func (UserAndRightBase) BaseColumnNames() []string

*

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

func (UserAndRightBase) Info

*

  • 结构体映射表简化信息

func (UserAndRightBase) New

*

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

func (*UserAndRightBase) SetDefault

func (o *UserAndRightBase) SetDefault()

*

  • 设置默认值

func (UserAndRightBase) TableName

func (userAndRightBase UserAndRightBase) TableName() string

*

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳