Documentation ¶
Index ¶
- func InjectServiceApiList(s *ServiceApiList)
- func InjectServiceApiListEntity(s *ServiceApiListEntity)
- func LoadServiceApiList() baseiface.ISingleton
- func LoadServiceApiListEntity() baseiface.ISingleton
- type ServiceApiList
- func (entity *ServiceApiList) AutoMigrate(db *gorm.DB) error
- func (entity *ServiceApiList) PkeyName() string
- func (entity *ServiceApiList) PkeyValue() int64
- func (entity *ServiceApiList) SetCreatedAt(CreatedAt time.Time) *ServiceApiList
- func (entity *ServiceApiList) SetCreatedBy(CreatedBy int64) *ServiceApiList
- func (entity *ServiceApiList) SetDeletedAt(DeletedAt *time.Time) *ServiceApiList
- func (entity *ServiceApiList) SetDeletedBy(DeletedBy int64) *ServiceApiList
- func (entity *ServiceApiList) SetHttpMethod(HttpMethod string) *ServiceApiList
- func (entity *ServiceApiList) SetId(Id int64) *ServiceApiList
- func (entity *ServiceApiList) SetName(Name string) *ServiceApiList
- func (entity *ServiceApiList) SetPath(Path string) *ServiceApiList
- func (entity *ServiceApiList) SetPermissionId(PermissionId int64) *ServiceApiList
- func (entity *ServiceApiList) SetRes(Res string) *ServiceApiList
- func (entity *ServiceApiList) SetServiceName(ServiceName string) *ServiceApiList
- func (entity *ServiceApiList) SetUpdatedAt(UpdatedAt time.Time) *ServiceApiList
- func (entity *ServiceApiList) SetUpdatedBy(UpdatedBy int64) *ServiceApiList
- func (entity *ServiceApiList) TableName() string
- type ServiceApiListEntity
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:"-"` *basemodel.BaseModel /* 主键 */ Id int64 `gorm:"column:id;type:INT8;PRIMARY_KEY;default:unique_rowid()" json:"id"` /* */ Name string `gorm:"column:name;type:STRING" json:"name"` /* */ PermissionId int64 `gorm:"column:permission_id;type:INT8" json:"permission_id"` /* 服务名称 */ ServiceName string `gorm:"column:service_name;type:STRING" json:"service_name"` /* HTTP方法 */ HttpMethod string `gorm:"column:http_method;type:STRING" json:"http_method"` /* 路由PATH */ Path string `gorm:"column:path;type:STRING" json:"path"` /* 资源 */ Res string `gorm:"column:res;type:STRING" json:"res"` }
WEB接口清单
func NewServiceApiList ¶
func NewServiceApiList() *ServiceApiList
func (*ServiceApiList) AutoMigrate ¶
func (entity *ServiceApiList) AutoMigrate(db *gorm.DB) error
迁移
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) *ServiceApiList
func (*ServiceApiList) SetCreatedBy ¶
func (entity *ServiceApiList) SetCreatedBy(CreatedBy int64) *ServiceApiList
func (*ServiceApiList) SetDeletedAt ¶
func (entity *ServiceApiList) SetDeletedAt(DeletedAt *time.Time) *ServiceApiList
func (*ServiceApiList) SetDeletedBy ¶
func (entity *ServiceApiList) SetDeletedBy(DeletedBy int64) *ServiceApiList
func (*ServiceApiList) SetHttpMethod ¶
func (entity *ServiceApiList) SetHttpMethod(HttpMethod string) *ServiceApiList
func (*ServiceApiList) SetId ¶
func (entity *ServiceApiList) SetId(Id int64) *ServiceApiList
func (*ServiceApiList) SetName ¶
func (entity *ServiceApiList) SetName(Name string) *ServiceApiList
func (*ServiceApiList) SetPath ¶
func (entity *ServiceApiList) SetPath(Path string) *ServiceApiList
func (*ServiceApiList) SetPermissionId ¶
func (entity *ServiceApiList) SetPermissionId(PermissionId int64) *ServiceApiList
func (*ServiceApiList) SetRes ¶
func (entity *ServiceApiList) SetRes(Res string) *ServiceApiList
func (*ServiceApiList) SetServiceName ¶
func (entity *ServiceApiList) SetServiceName(ServiceName string) *ServiceApiList
func (*ServiceApiList) SetUpdatedAt ¶
func (entity *ServiceApiList) SetUpdatedAt(UpdatedAt time.Time) *ServiceApiList
func (*ServiceApiList) SetUpdatedBy ¶
func (entity *ServiceApiList) SetUpdatedBy(UpdatedBy int64) *ServiceApiList
func (*ServiceApiList) TableName ¶
func (entity *ServiceApiList) TableName() string
gorm默认生成的表名是结构名+'s',所以必须以结构方法指定!
type ServiceApiListEntity ¶
type ServiceApiListEntity struct { basedto.BaseEntity `gorm:"-"` /* 主键 */ Id int64 `gorm:"column:id;type:INT8;PRIMARY_KEY;default:unique_rowid()" json:"id"` /* */ Name string `gorm:"column:name;type:STRING" json:"name"` /* */ PermissionId int64 `gorm:"column:permission_id;type:INT8" json:"permission_id"` /* 服务名称 */ ServiceName string `gorm:"column:service_name;type:STRING" json:"service_name"` /* HTTP方法 */ HttpMethod string `gorm:"column:http_method;type:STRING" json:"http_method"` /* 路由PATH */ Path string `gorm:"column:path;type:STRING" json:"path"` /* 资源 */ Res string `gorm:"column:res;type:STRING" json:"res"` /* 创建时间 */ CreatedAt int64 `gorm:"column:created_at;type:TIMESTAMPTZ" json:"created_at"` /* 修改时间 */ UpdatedAt int64 `gorm:"column:updated_at;type:TIMESTAMPTZ" json:"updated_at"` /* 创建人 */ CreatedBy int64 `gorm:"column:created_by;type:INT8" json:"created_by"` /* 修改人 */ UpdatedBy int64 `gorm:"column:updated_by;type:INT8" json:"updated_by"` /* 删除时间 */ DeletedAt *int64 `gorm:"column:deleted_at;type:TIMESTAMPTZ" json:"deleted_at"` /* 删除者 */ DeletedBy int64 `gorm:"column:deleted_by;type:INT8" json:"deleted_by"` }
func FindBeanServiceApiListEntity ¶
func FindBeanServiceApiListEntity() *ServiceApiListEntity
FindBeanServiceApiListEntity
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',所以必须以结构方法指定!
Click to show internal directories.
Click to hide internal directories.