constants

package
v0.0.0-...-939b1f7 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// It refers to the prepayment order, and the buyer can pledge the future cargo right.
	ADVANCE = "advance"

	// It refers to account receivable order, and the supplier can pledge the documents
	// of accounts receivable orders.
	ACCOUNT_RECEIVABLE = "account-receivable-order"

	// It refers to financing warehouse order, and the supplier can pledge the inventory.
	FINACING_WAREHOUSE = "financing-warehouse-order"

	NORMAL = "normal"
)
View Source
const (
	SUCCESS = 1
	ERROR   = 0
)
View Source
const (
	DISTRIBUTOR_SERVICE = "distributor"

	SUPPLIER_SERVICE = "supplier"

	BANK_SERVICE = "bank"

	LOGISTICS_SERVICE = "logistics"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Capital

type Capital struct {
	BankName string `json:"bank_name"`
	Num      int    `json:"num"`
}

type DigitalObject

type DigitalObject interface {
	Run() error
	Interact(ctx context.Context, p *agent.Packet) (*agent.Packet, error)
	GetAddress() string
	GetFuncs() map[string]interface{}
}

type Form

type Form struct {
	// The type indicates which method you will use to get the loan.
	Type            string
	SupplierName    string `json:"supplier_name"`
	DistributorName string `json:"distributor_name"`
	LogisticsName   string `json:"logistics_name"`
	Num             int    `json:"num"`
}

Someone who wants to get loan must write this form. The bank will according to this form to consider whether you can get loan.

type Order

type Order struct {
	OrderType string `json:"order_type"`

	OrderPrice int `json:"order_price"`

	OrderCount int `json:"order_count"`

	DistributorName string `json:"distributor_name"`
}

There are three different order types, which represent different financing modes, so as to match different linkage paths.

type PaymentPromise

type PaymentPromise struct {
	DistributorName string `json:"distributor_name"`
	SupplierName    string `json:"supplier_name"`
	Signatured      bool   `json:"signatured"`
}

type Products

type Products struct {
	SupplierName string `json:"supplier_name"`
	OrderState   int    `json:"order_state"`
	Message      string `json:"message"`
}

type Receipt

type Receipt struct {
	Type string `json:"name"`
	Info string `json:"info"`
}

Jump to

Keyboard shortcuts

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