model

package
v1.0.2-dev-10 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectServiceApiList

func InjectServiceApiList(s *ServiceApiList)

func InjectServiceApiListEntity

func InjectServiceApiListEntity(s *ServiceApiListEntity)

func LoadServiceApiList

func LoadServiceApiList() baseiface.ISingleton

func LoadServiceApiListEntity

func LoadServiceApiListEntity() baseiface.ISingleton

Types

type ServiceApiList

type ServiceApiList struct {
	basedto.BaseEntity `gorm:"-"`

	/*    */
	Id int64 `gorm:"column:id;type:bigint(20) unsigned;PRIMARY_KEY;comment:''" json:"id,string"`
	/*    */
	CreatedAt time.Time `gorm:"column:created_at;type:date;comment:''" json:"created_at"`
	/*    */
	UpdatedAt time.Time `gorm:"column:updated_at;type:date;comment:''" json:"updated_at"`
	/*    */
	DeletedAt *time.Time `gorm:"column:deleted_at;type:date;comment:''" json:"deleted_at"`
	/*    */
	CreatedBy int64 `gorm:"column:created_by;type:bigint(20);comment:''" json:"created_by,string"`
	/*    */
	UpdatedBy int64 `gorm:"column:updated_by;type:bigint(20);comment:''" json:"updated_by,string"`
	/*    */
	DeletedBy int64 `gorm:"column:deleted_by;type:bigint(20);comment:''" json:"deleted_by,string"`
	/*    */
	ServiceName string `gorm:"column:service_name;type:varchar(128);comment:''" json:"service_name"`
	Name        string `gorm:"column:service_name;type:varchar(128);comment:''" json:"name"`
	/*    */
	HttpMethod string `gorm:"column:http_method;type:varchar(128);comment:''" json:"http_method"`
	/*    */
	Path string `gorm:"column:path;type:varchar(128);comment:''" json:"path"`
	/*    */
	Res      string `gorm:"column:res;type:varchar(128);comment:''" json:"res"`
	HasRight int8   `gorm:"column:has_right;type:tinyint(1);comment:''" json:"has_right"`
}

func FindBeanServiceApiList

func FindBeanServiceApiList() *ServiceApiList

func NewServiceApiList

func NewServiceApiList() *ServiceApiList

func (*ServiceApiList) AutoMigrate

func (entity *ServiceApiList) AutoMigrate(db *gorm.DB) error

迁移

func (*ServiceApiList) FullPath

func (entity *ServiceApiList) FullPath() string

func (*ServiceApiList) PkeyName

func (entity *ServiceApiList) PkeyName() string

func (*ServiceApiList) PkeyValue

func (entity *ServiceApiList) PkeyValue() int64

func (*ServiceApiList) SetCreatedAt

func (entity *ServiceApiList) SetCreatedAt(CreatedAt time.Time)

func (*ServiceApiList) SetCreatedBy

func (entity *ServiceApiList) SetCreatedBy(CreatedBy int64)

func (*ServiceApiList) SetDeletedAt

func (entity *ServiceApiList) SetDeletedAt(DeletedAt time.Time)

func (*ServiceApiList) SetDeletedBy

func (entity *ServiceApiList) SetDeletedBy(DeletedBy int64)

func (*ServiceApiList) SetHttpMethod

func (entity *ServiceApiList) SetHttpMethod(HttpMethod string)

func (*ServiceApiList) SetId

func (entity *ServiceApiList) SetId(Id int64)

func (*ServiceApiList) SetPath

func (entity *ServiceApiList) SetPath(Path string)

func (*ServiceApiList) SetRes

func (entity *ServiceApiList) SetRes(Res string)

func (*ServiceApiList) SetServiceName

func (entity *ServiceApiList) SetServiceName(ServiceName string)

func (*ServiceApiList) SetUpdatedAt

func (entity *ServiceApiList) SetUpdatedAt(UpdatedAt time.Time)

func (*ServiceApiList) SetUpdatedBy

func (entity *ServiceApiList) SetUpdatedBy(UpdatedBy int64)

func (*ServiceApiList) TableName

func (entity *ServiceApiList) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

type ServiceApiListEntity

type ServiceApiListEntity struct {
	basedto.BaseEntity `gorm:"-"`

	/*    */
	Id int64 `gorm:"column:id;type:bigint(20) unsigned;PRIMARY_KEY;comment:''" json:"id,string"`
	/*    */
	CreatedAt int64 `gorm:"column:created_at;type:date;comment:''" json:"created_at,string"`
	/*    */
	UpdatedAt int64 `gorm:"column:updated_at;type:date;comment:''" json:"updated_at,string"`
	/*    */
	DeletedAt int64 `gorm:"column:deleted_at;type:date;comment:''" json:"deleted_at,string"`
	/*    */
	CreatedBy int64 `gorm:"column:created_by;type:bigint(20);comment:''" json:"created_by,string"`
	/*    */
	UpdatedBy int64 `gorm:"column:updated_by;type:bigint(20);comment:''" json:"updated_by,string"`
	/*    */
	DeletedBy int64 `gorm:"column:deleted_by;type:bigint(20);comment:''" json:"deleted_by,string"`
	/*    */
	ServiceName string `gorm:"column:service_name;type:varchar(128);comment:''" json:"service_name"`
	/*    */
	HttpMethod string `gorm:"column:http_method;type:varchar(128);comment:''" json:"http_method"`
	/*    */
	Path string `gorm:"column:path;type:varchar(128);comment:''" json:"path"`
	/*    */
	Res string `gorm:"column:res;type:varchar(128);comment:''" json:"res"`
}

func FindBeanServiceApiListEntity

func FindBeanServiceApiListEntity() *ServiceApiListEntity

func NewServiceApiListEntity

func NewServiceApiListEntity() *ServiceApiListEntity

func (*ServiceApiListEntity) AutoMigrate

func (entity *ServiceApiListEntity) AutoMigrate(db *gorm.DB) error

迁移

func (*ServiceApiListEntity) PkeyName

func (entity *ServiceApiListEntity) PkeyName() string

func (*ServiceApiListEntity) PkeyValue

func (entity *ServiceApiListEntity) PkeyValue() int64

func (*ServiceApiListEntity) TableName

func (entity *ServiceApiListEntity) TableName() string

gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!

Jump to

Keyboard shortcuts

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