model

package
v1.2.151 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 1 Imported by: ? modules, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccount

func NewAccount() Entity

NewAccount is a factory method to create a new instance

Types

type Account

type Account struct {
	BaseEntityEx
	Name          string  `json:"name"`          // Account name
	EnName        string  `json:"enName"`        // Account english name
	Type          int     `json:"type"`          // Account type:  STUDENT | PRIVATE | BUSINESS ...
	Description   string  `json:"description"`   // Account description
	Status        int     `json:"status"`        // Account status: UNDEFINED | ACTIVE | INACTIVE | BLOCKED | SUSPENDED
	Phone         string  `json:"phone"`         // Office / Landline phone
	Mobile        string  `json:"mobile"`        // Mobile phone
	Email         string  `json:"email"`         // Email address
	Address       Address `json:"address"`       // Address
	CampaignId    string  `json:"campaignId"`    // Campaign Id
	CurrentCredit float64 `json:"currentCredit"` // Current account credit
	BaseRate      float64 `json:"baseRate"`      // Base rate for billing
	Discount      int     `json:"discount"`      // Permanent discount (percentage)
	InvoiceId     string  `json:"invoiceId"`     // Green invoice Id
}

Account entity is a billing account in the system @Entity: account

func (*Account) NAME

func (a *Account) NAME() string

func (*Account) TABLE

func (a *Account) TABLE() string

type Address

type Address struct {
	Street  string `json:"street"`  // Street address
	City    string `json:"city"`    // City
	State   string `json:"state"`   // State (if applicable)
	ZipCode string `json:"zipCode"` // Local zip code (postal cod)
	Country string `json:"country"` // Country name
}

Address model represents an address @Data

Jump to

Keyboard shortcuts

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