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
Click to show internal directories.
Click to hide internal directories.