Documentation
¶
Index ¶
- func DeleteResource(ctx context.Context, tx *sql.Tx, id string) error
- func QueryTag(ctx context.Context, db *sql.DB, resourceIds []string) (tags []*resource.Tag, err error)
- func SaveResource(ctx context.Context, tx *sql.Tx, base *resource.Base, ...) error
- func UpdateResource(ctx context.Context, tx *sql.Tx, base *resource.Base, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.