navigation

package
v0.0.0-...-5d74809 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type OamNavigationBody

type OamNavigationBody struct {
	Id         int64  `db:"id"`
	TopId      int64  `db:"top_id"`      // 标题ID
	LinkAddr   string `db:"link_addr"`   // 链接地址
	LinkName   string `db:"link_name"`   // 链接名称
	LinkDesc   string `db:"link_desc"`   // 链接描述
	Status     int64  `db:"status"`      // 状态
	LinkIcon   string `db:"link_icon"`   // 链接icon
	CreateTime int64  `db:"create_time"` // 创建时间
	CreateBy   string `db:"create_by"`   // 创建人
}

type OamNavigationBodyModel

type OamNavigationBodyModel interface {
	RowBuilder() squirrel.SelectBuilder
	CountBuilder(field string) squirrel.SelectBuilder
	DeleteStatus(ctx context.Context, id int64) error
	FindOneByQuery(ctx context.Context, rowBuilder squirrel.SelectBuilder) (*OamNavigationBody, error)
	FindCount(ctx context.Context, countBuilder squirrel.SelectBuilder) (int64, error)
	FindPageListByPage(ctx context.Context, rowBuilder squirrel.SelectBuilder, page, pageSize int64, orderBy string) ([]OamNavigationBody, error)
	// contains filtered or unexported methods
}

OamNavigationBodyModel is an interface to be customized, add more methods here, and implement the added methods in customOamNavigationBodyModel.

func NewOamNavigationBodyModel

func NewOamNavigationBodyModel(conn sqlx.SqlConn) OamNavigationBodyModel

NewOamNavigationBodyModel returns a model for the database table.

type OamNavigationTop

type OamNavigationTop struct {
	Id         int64  `db:"id"`          // id
	Name       string `db:"name"`        // 名称
	CreateTime int64  `db:"create_time"` // 创建时间
	CreateBy   string `db:"create_by"`   // 创建人
	Status     int64  `db:"status"`      // 状态  1:启用,0:禁用
}

type OamNavigationTopModel

type OamNavigationTopModel interface {
	RowBuilder() squirrel.SelectBuilder
	CountBuilder(field string) squirrel.SelectBuilder
	DeleteStatus(ctx context.Context, id int64) error
	FindOneByQuery(ctx context.Context, rowBuilder squirrel.SelectBuilder) (*OamNavigationTop, error)
	FindCount(ctx context.Context, countBuilder squirrel.SelectBuilder) (int64, error)
	FindPageListByPage(ctx context.Context, rowBuilder squirrel.SelectBuilder) ([]OamNavigationTop, error)
	// contains filtered or unexported methods
}

OamNavigationTopModel is an interface to be customized, add more methods here, and implement the added methods in customOamNavigationTopModel.

func NewOamNavigationTopModel

func NewOamNavigationTopModel(conn sqlx.SqlConn) OamNavigationTopModel

NewOamNavigationTopModel returns a model for the database table.

Jump to

Keyboard shortcuts

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