model

package
v0.0.0-...-2a8ca26 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameAuthorizedAPI = "authorized_api"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizedAPI

type AuthorizedAPI struct {
	ID          int32     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`                      // 主键
	BusinessKey string    `gorm:"column:business_key;not null" json:"business_key"`                       // 调用方key
	Method      string    `gorm:"column:method;not null" json:"method"`                                   // 请求方式
	API         string    `gorm:"column:api;not null" json:"api"`                                         // 请求地址
	IsDeleted   bool      `gorm:"column:is_deleted;not null;default:-1" json:"is_deleted"`                // 是否删除 1:是  -1:否
	CreatedAt   time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` // 创建时间
	CreatedUser string    `gorm:"column:created_user;not null" json:"created_user"`                       // 创建人
	UpdatedAt   time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` // 更新时间
	UpdatedUser string    `gorm:"column:updated_user;not null" json:"updated_user"`                       // 更新人
}

AuthorizedAPI mapped from table <authorized_api>

func (*AuthorizedAPI) TableName

func (*AuthorizedAPI) TableName() string

TableName AuthorizedAPI's table name

Jump to

Keyboard shortcuts

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