ERPBudget

package
v5.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldsBudget

type FieldsBudget struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//审批状态
	// 0: 未审批; 1: 审批中; 2: 审批通过; 3: 审批拒绝
	Status int `db:"status" json:"status"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"50"`
	//描述
	Desc string `db:"desc" json:"desc" check:"des" min:"1" max:"300" empty:"true"`
	//预算总金额
	Total float64 `db:"total" json:"total" check:"float64Than0"`
	//已使用金额
	Used float64 `db:"used" json:"used" check:"float64Than0"`
	//占用金额
	// 正在使用中,但尚未归档
	Occupied float64 `db:"occupied" json:"occupied" check:"float64Than0"`
}

FieldsBudget 预算池

type FieldsBudgetFlow

type FieldsBudgetFlow struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//生效的预算ID
	BudgetID int64 `db:"budget_id" json:"budgetID" check:"id"`
	//备注
	Remark string `db:"remark" json:"remark" check:"des" min:"1" max:"300" empty:"true"`
	//提交人ID
	Submitter int64 `db:"submitter" json:"submitter" check:"id"`
	//审批人ID
	Approver int64 `db:"approver" json:"approver" check:"id"`
}

FieldsBudgetFlow 预算审批流

Jump to

Keyboard shortcuts

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