repositoryadapter

package
v1.5.2 Latest Latest
Warning

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

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

Documentation

Overview

Package repositoryadapter provides an adapter for working with computility repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputilityAccountAdapter

func ComputilityAccountAdapter() *computilityAccountAdapter

ComputilityAccountAdapter returns the instance of the computilityAccountAdapter.

func ComputilityAccountRecordAdapter

func ComputilityAccountRecordAdapter() *computilityAccountRecordAdapter

ComputilityAccountRecordAdapter returns the instance of the computilityAccountRecordAdapter.

func ComputilityDetailAdapter

func ComputilityDetailAdapter() *computilityDetailAdapter

ComputilityDetailAdapter returns the instance of the computilityDetailAdapter.

func ComputilityOrgAdapter

func ComputilityOrgAdapter() *computilityOrgAdapter

ComputilityOrgAdapter returns the instance of the computilityOrgAdapter.

func Init

func Init(db *gorm.DB, tables *Tables) error

Init initializes the database and sets up the necessary adapters.

Types

type Tables

type Tables struct {
	ComputilityOrg           string `json:"computility_org"            required:"true"`
	ComputilityDetail        string `json:"computility_detail"         required:"true"`
	ComputilityAccount       string `json:"computility_account"        required:"true"`
	ComputilityAccountRecord string `json:"computility_account_record" required:"true"`
}

Tables is a struct that represents tables of computility.

Jump to

Keyboard shortcuts

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