approve

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 16 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

Overview

Package approve 封装Approve资源相关操作

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Approve

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

Approve 资源对象操作封装

func New

func New(options ...Option) *Approve

New 新建 Approve 实例,通过 Approve 实例操作企业资源

func (*Approve) Create

func (a *Approve) Create(userID string, createReq *apistructs.ApproveCreateRequest) (*apistructs.ApproveDTO, error)

Create 创建Approve

func (*Approve) Get

func (c *Approve) Get(approveID int64) (*apistructs.ApproveDTO, error)

Get 获取Approve

func (*Approve) ListAllApproves

func (c *Approve) ListAllApproves(params *apistructs.ApproveListRequest) (
	*apistructs.PagingApproveDTO, error)

ListAllApproves 企业管理员可查看当前企业下所有Approve,包括未加入的Approve

func (*Approve) Update

func (a *Approve) Update(approveID int64, updateReq *apistructs.ApproveUpdateRequest) error

Update 更新Approve

type Option

type Option func(*Approve)

Option 定义 Approve 对象的配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

func WithMember

func WithMember(m *member.Member) Option

WithMember 配置 member

func WithUCClient

func WithUCClient(uc *ucauth.UCClient) Option

WithUCClient 配置 uc client

Jump to

Keyboard shortcuts

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