approvals

package
v0.0.0-...-c99d6ee Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApprovalItem

type ApprovalItem struct {
	ApprovalID          string `dynamodbav:"approval_id"`
	SignatureID         string `dynamodbav:"signature_id"`
	DateAdded           string `dynamodbav:"date_added"`
	DateRemoved         string `dynamodbav:"date_removed"`
	DateCreated         string `dynamodbav:"date_created"`
	DateModified        string `dynamodbav:"date_modified"`
	ApprovalName        string `dynamodbav:"approval_name"`
	ApprovalCriteria    string `dynamodbav:"approval_criteria"`
	CompanyID           string `dynamodbav:"company_id"`
	ProjectID           string `dynamodbav:"project_id"`
	ApprovalCompanyName string `dynamodbav:"approval_company_name"`
	Note                string `dynamodbav:"note"`
	Active              bool   `dynamodbav:"active"`
}

type IRepository

type IRepository interface {
	GetApprovalList(approvalID string) (*ApprovalItem, error)
	DeleteAll() error
	GetApprovalListBySignature(signatureID string) ([]ApprovalItem, error)
	AddApprovalList(approvalItem ApprovalItem) error
	UpdateApprovalItem(approvalItem ApprovalItem) error
	DeleteApprovalList(approvalID string) error
	SearchApprovalList(criteria, approvalListName, claGroupID, companyID, signatureID string) ([]ApprovalItem, error)
	BatchAddApprovalList(approvalItems []ApprovalItem) error
	BatchDeleteApprovalList() error
}

func NewRepository

func NewRepository(stage string, awsSession *session.Session, tableName string) IRepository

Jump to

Keyboard shortcuts

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