approve

package
v1.3.0-rc.0...-0a48220 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

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 userpb.UserServiceServer) Option

WithUCClient 配置 uc client

Jump to

Keyboard shortcuts

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