model

package
v0.0.0-...-19574b5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GqaPluginGhAsset

type GqaPluginGhAsset struct {
	UpdatedByUser *system.SysUser `json:"updatedByUser" gorm:"foreignKey:UpdatedBy;references:Username"`
	CreatedByUser *system.SysUser `json:"createdByUser" gorm:"foreignKey:CreatedBy;references:Username"`
	global.GqaModel
	AssetCode       string  `json:"assetCode" gorm:"comment:资产编号;not null;index"`
	AssetName       string  `json:"assetName" gorm:"comment:资产名称;not null;index;"`
	AssetCatalog1   string  `json:"assetCatalog1" gorm:"comment:资产类别1;not null;"`
	AssetCatalog2   string  `json:"assetCatalog2" gorm:"comment:资产类别2;not null;"`
	AssetCatalog3   string  `json:"assetCatalog3" gorm:"comment:资产类别3;"`
	AssetCatalog4   string  `json:"assetCatalog4" gorm:"comment:资产类别4;"`
	EntryDate       string  `json:"entryDate" gorm:"comment:入账日期;not null;"`
	Number          int     `json:"number" gorm:"comment:数量;not null;"`
	OriginalValue   float64 `json:"originalValue" gorm:"comment:资产原值;not null;"`
	Depreciation    float64 `json:"depreciation" gorm:"comment:折旧(元月);not null;"`
	UsefulLife      int     `json:"usefulLife" gorm:"comment:使用年限;not null;"`
	UserDept        string  `json:"userDept" gorm:"comment:使用部门;not null;"`
	StorageLocation string  `json:"storageLocation" gorm:"comment:存放地点;not null;"`
	Custodian       string  `json:"custodian" gorm:"comment:保管人;not null;"`
	UseStatus       string  `json:"useStatus" gorm:"comment:使用状态;not null;default:ghAsset_on_use;index"`
}

type GqaPluginGhAssetSettlement

type GqaPluginGhAssetSettlement struct {
	SetYearMonth      string  `json:"setYearMonth" gorm:"comment:'执行年月';not null;index"`
	AssetCatalog1     string  `json:"assetCatalog1" gorm:"comment:'资产类别1';not null;index"`
	OriginalValue     float64 `json:"originalValue" gorm:"comment:'原值';not null"`
	MonthDepreciation float64 `json:"monthDepreciation" gorm:"comment:'月折旧';not null"`
	TotalDepreciation float64 `json:"totalDepreciation" gorm:"comment:'累计折旧';not null"`
	NetWorth          float64 `json:"netWorth" gorm:"comment:'净值';not null"`
}

type RequestAddAsset

type RequestAddAsset struct {
	Status          string  `json:"status"`
	Sort            uint    `json:"sort"`
	Remark          string  `json:"remark"`
	AssetCode       string  `json:"assetCode"`
	AssetName       string  `json:"assetName"`
	AssetCatalog1   string  `json:"assetCatalog1"`
	AssetCatalog2   string  `json:"assetCatalog2"`
	AssetCatalog3   string  `json:"assetCatalog3"`
	AssetCatalog4   string  `json:"assetCatalog4"`
	EntryDate       string  `json:"entryDate"`
	Number          int     `json:"number"`
	OriginalValue   float64 `json:"originalValue"`
	UsefulLife      int     `json:"usefulLife"`
	UserDept        string  `json:"userDept"`
	StorageLocation string  `json:"storageLocation"`
	Custodian       string  `json:"custodian"`
	UseStatus       string  `json:"useStatus"`
}

type RequestAssetList

type RequestAssetList struct {
	global.RequestPageAndSort
	//可扩充的模糊搜索项,参考上面 RequestAddAsset 中的字段
	AssetCode     string `json:"assetCode"`
	AssetName     string `json:"assetName"`
	AssetCatalog1 string `json:"assetCatalog1"`
	AssetCatalog2 string `json:"assetCatalog2"`
	AssetCatalog3 string `json:"assetCatalog3"`
	AssetCatalog4 string `json:"assetCatalog4"`
	UseStatus     string `json:"useStatus"`
}

type RequestAssetSettlementList

type RequestAssetSettlementList struct {
	SetYearMonth string `json:"setYearMonth"`
}

Jump to

Keyboard shortcuts

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