repo

package
v0.999.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DingDept

type DingDept struct {
	// 部门id
	ID int64 `json:"id"`
	// 上级部门id
	Pid pgtype.Int8 `json:"pid"`
	// 部门名称
	Title pgtype.Text `json:"title"`
}

钉钉部门

type DingDeptCreateParams

type DingDeptCreateParams struct {
	ID    int64       `json:"id"`
	Pid   pgtype.Int8 `json:"pid"`
	Title pgtype.Text `json:"title"`
}

type DingDeptDBTX

type DingDeptDBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type DingDeptQueries

type DingDeptQueries struct {
	// contains filtered or unexported fields
}

func NewDingDept

func NewDingDept(db DingDeptDBTX) *DingDeptQueries

func (*DingDeptQueries) DingDeptCountById

func (q *DingDeptQueries) DingDeptCountById(ctx context.Context, id int64) (int64, error)

func (*DingDeptQueries) DingDeptCreate

func (q *DingDeptQueries) DingDeptCreate(ctx context.Context, arg DingDeptCreateParams) error

func (*DingDeptQueries) DingDeptListByPid

func (q *DingDeptQueries) DingDeptListByPid(ctx context.Context, pid pgtype.Int8) ([]DingDept, error)

func (*DingDeptQueries) WithTx

func (q *DingDeptQueries) WithTx(tx pgx.Tx) *DingDeptQueries

type Domain

type Domain struct {
	// 领域标签
	Tag string `json:"tag"`
	// 领域领导
	Leaders []string `json:"leaders"`
	// 领域配置
	Configs json.RawMessage `json:"configs"`
}

领域

type DomainDBTX

type DomainDBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type DomainQueries

type DomainQueries struct {
	// contains filtered or unexported fields
}

func NewDomain

func NewDomain(db DomainDBTX) *DomainQueries

func (*DomainQueries) DomainGetByNo

func (q *DomainQueries) DomainGetByNo(ctx context.Context, tag string) (Domain, error)

func (*DomainQueries) WithTx

func (q *DomainQueries) WithTx(tx pgx.Tx) *DomainQueries

Jump to

Keyboard shortcuts

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