impl

package
v0.0.0-...-c2c008b Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: LGPL-2.1 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteResource

func DeleteResource(ctx context.Context, tx *sql.Tx, id string) error

func QueryTag

func QueryTag(ctx context.Context, db *sql.DB, resourceIds []string) (
	tags []*resource.Tag, err error)

标准的查询逻辑 传递一个*sql.DB sql链接过来,直接做一个tag的查询 相当于写了一个 select * from resource_tag where resource_id in (?,?,?); 通过resource_id 把所有的tag找出来

func SaveResource

func SaveResource(ctx context.Context, tx *sql.Tx, base *resource.Base, info *resource.Information) error

func UpdateResource

func UpdateResource(ctx context.Context, tx *sql.Tx, base *resource.Base, info *resource.Information) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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