_const

package
v0.0.0-...-2946602 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONTINUE                          = 100
	OK                                = 200
	UNAUTHORIZED_ERROR                = 401
	FORBIDDEN_ERROR                   = 403
	PAGE_NOT_FOUND_ERROR              = 404
	MethodNotAllowedError             = 405
	TIME_OUT_ERROR                    = 408
	CONFLICT_ERROR                    = 409
	REQUEST_PARM_ERROR                = 411
	REQUEST_RANGE_NOT_SATISFIED_ERROR = 416
	EXPECTATION_FAILED_ERROR          = 417
	UPGRADE_REQUIRED_ERROR            = 426
	TOO_MANY_REQUEST_ERROR            = 429
	INTERNAL_ERROR                    = 500
	NETWORK_CONNECT_TIMEOUT_ERROR     = 599
)
View Source
const PRIMARY_KEY_NAME = "rec_id"

Variables

View Source
var (
	PURCHASE_INVOICE    = InvoiceType("purchases")
	TRANSACTION_INVOICE = InvoiceType("transactions")
	RETURN_INVOICE      = InvoiceType("returns")
	PAYABLE_INVOICE     = InvoiceType("payables")
	RECIVEABLE_INVOICE  = InvoiceType("reciveables")
	ASSEMBLE_INVOICE    = InvoiceType("assembles")
	CREDENTIAL_INVIOCE  = InvoiceType("credential")
)
View Source
var InvoiceTypeList = []map[string]interface{}{
	{
		"invoice_type": PURCHASE_INVOICE,
		"label":        PURCHASE_INVOICE.Display(),
	}, {
		"invoice_type": TRANSACTION_INVOICE,
		"label":        TRANSACTION_INVOICE.Display(),
	}, {
		"invoice_type": RETURN_INVOICE,
		"label":        RETURN_INVOICE.Display(),
	}, {
		"invoice_type": PAYABLE_INVOICE,
		"label":        PAYABLE_INVOICE.Display(),
	}, {
		"invoice_type": RECIVEABLE_INVOICE,
		"label":        RECIVEABLE_INVOICE.Display(),
	}, {
		"invoice_type": ASSEMBLE_INVOICE,
		"label":        ASSEMBLE_INVOICE.Display(),
	},
	{
		"invoice_type": CREDENTIAL_INVIOCE,
		"label":        CREDENTIAL_INVIOCE.Display(),
	},
}
View Source
var StockInTypeList = []map[string]interface{}{
	{
		"stock_in_type": INVENTORY_SURPLUS.Display(),
	}, {
		"stock_in_type": DISMANTLE.Display(),
	}, {
		"stock_in_type": PURCHASE.Display(),
	}, {
		"stock_in_type": DISPATCH.Display(),
	}, {
		"stock_in_type": "未知",
	},
}
View Source
var StockOutTypeList = []map[string]interface{}{
	{
		"stock_out_type": LOSS.Display(),
	}, {
		"stock_out_type": TRANSACTION.Display(),
	}, {
		"stock_out_type": ASSEMBLE.Display(),
	}, {
		"stock_out_type": "未知",
	},
}

Functions

This section is empty.

Types

type CredentialStatus

type CredentialStatus string
const (
	DEPRECATED CredentialStatus = "1"
	NORMAL     CredentialStatus = "2"
)

func (CredentialStatus) Display

func (receiver CredentialStatus) Display() string

type CredentialType

type CredentialType int

func (*CredentialType) Display

func (c *CredentialType) Display() string

type ExcelStatus

type ExcelStatus int
const (
	EXPORTING ExcelStatus = iota + 1
	DONE
	EXPIRED
)

type GinErrorCode

type GinErrorCode int

func (GinErrorCode) Display

func (ge GinErrorCode) Display() string

type InvoiceType

type InvoiceType string

func TransToInvoiceType

func TransToInvoiceType(tableName string) InvoiceType

func (InvoiceType) Display

func (i InvoiceType) Display() string

type PayableStatus

type PayableStatus int
const (
	UnPaid
	PartialPaid
)

func (PayableStatus) Display

func (r PayableStatus) Display() string

type ReceivableStatus

type ReceivableStatus int
const (
	Finished ReceivableStatus = iota + 56001
	Unfinished
	Partial
)

func (ReceivableStatus) Display

func (r ReceivableStatus) Display() string

type StockContentType

type StockContentType int

StockContentType 出入库内容类型

const (
	MATERIAL StockContentType = iota + 780001
	COMMODITY
)

func (StockContentType) Display

func (s StockContentType) Display() string

type StockInType

type StockInType int

StockInType 入库类型

const (
	INVENTORY_SURPLUS StockInType = iota + 760001
	DISMANTLE
	PURCHASE
	DISPATCH
)

func (StockInType) Display

func (s StockInType) Display() string

type StockOutType

type StockOutType int
const (
	LOSS StockOutType = iota + 770001
	TRANSACTION
	ASSEMBLE
)

func (StockOutType) Display

func (s StockOutType) Display() string

type Tag

type Tag string
const (
	CN Tag = "cn"
)

func (Tag) Display

func (t Tag) Display() string

Jump to

Keyboard shortcuts

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