authorized

package
v0.0.0-...-22ca28f Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IsUsedYES = 1  // 启用
	IsUsedNo  = -1 // 禁用
)

Variables

This section is empty.

Functions

func NewQueryBuilder

func NewQueryBuilder() *authorizedQueryBuilder

Types

type Authorized

type Authorized struct {
	Id                int32     // 主键
	BusinessKey       string    // 调用方key
	BusinessSecret    string    // 调用方secret
	BusinessDeveloper string    // 调用方对接人
	Remark            string    // 备注
	IsUsed            int32     // 是否启用 1:是  -1:否
	IsDeleted         int32     // 是否删除 1:是  -1:否
	CreatedAt         time.Time `gorm:"time"` // 创建时间
	CreatedUser       string    // 创建人
	UpdatedAt         time.Time `gorm:"time"` // 更新时间
	UpdatedUser       string    // 更新人
}

Authorized 已授权的调用方表

func NewModel

func NewModel() *Authorized

func (*Authorized) Create

func (t *Authorized) Create(db *gorm.DB) (id int32, err error)

Jump to

Keyboard shortcuts

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