libreference

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LibReference

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

LibReference 库引用 service

func New

func New(options ...Option) *LibReference

New 初始化库引用 service

func (*LibReference) Convert

func (l *LibReference) Convert(libReference *dao.LibReference) *apistructs.LibReference

Convert 库引用数据结构转换

func (*LibReference) Create

Create 创建库引用

func (*LibReference) Delete

func (l *LibReference) Delete(identityInfo apistructs.IdentityInfo, libReferenceID uint64) error

Delete 删除库引用

func (*LibReference) List

List 库引用列表

func (*LibReference) UpdateApprovalStatus

func (l *LibReference) UpdateApprovalStatus(approvalID uint64, approvalStatus apistructs.ApprovalStatus) error

UpdateApprovalStatus 更新库引用审批状态

type Option

type Option func(*LibReference)

Option 库引用选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 设置 db client

Jump to

Keyboard shortcuts

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