Documentation
¶
Index ¶
- type Collection
- type InStoreRecord
- type MoveStoreRecord
- type OutShopRecord
- type OutStoreRecord
- type SmartContract
- func (s *SmartContract) CancelCollectionRecord(ctx contractapi.TransactionContextInterface, collectionIdList string) error
- func (s *SmartContract) CreateCollectionRecord(ctx contractapi.TransactionContextInterface, ...) error
- func (s *SmartContract) FreezeCollectionRecord(ctx contractapi.TransactionContextInterface, collectionIdList string) error
- func (s *SmartContract) InStoreApply(ctx contractapi.TransactionContextInterface, ...) error
- func (s *SmartContract) InStoreVerify(ctx contractapi.TransactionContextInterface, ...) error
- func (s *SmartContract) MoveStoreApply(ctx contractapi.TransactionContextInterface, ...) error
- func (s *SmartContract) OutShopVerify(ctx contractapi.TransactionContextInterface, ...) error
- func (s *SmartContract) OutStoreVerify(ctx contractapi.TransactionContextInterface, ...) error
- func (s *SmartContract) QueryCollectionRecord(ctx contractapi.TransactionContextInterface, collectionCode string) (*Collection, error)
- func (s *SmartContract) QueryInStoreRecord(ctx contractapi.TransactionContextInterface, args []string) (*InStoreRecord, error)
- func (s *SmartContract) QueryMoveStoreRecord(ctx contractapi.TransactionContextInterface, moveStoreRecordCode string) (*MoveStoreRecord, error)
- func (s *SmartContract) QueryOutStoreRecord(ctx contractapi.TransactionContextInterface, outStoreRecordCode string) (*OutStoreRecord, error)
- func (s *SmartContract) TestGet() string
- func (s *SmartContract) TestQuery(ctx contractapi.TransactionContextInterface) (string, error)
- func (s *SmartContract) TestSave(ctx contractapi.TransactionContextInterface, name string) error
- func (s *SmartContract) UnFreezeCollectionRecord(ctx contractapi.TransactionContextInterface, collectionIdList string) error
- func (s *SmartContract) VerifyCollectionRecord(ctx contractapi.TransactionContextInterface, collectionIdList string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
InStoreApplyCode string `json:"in_store_apply_code"` //入库申请编号
Code string `json:"code"` // 藏品编号
OriginName string `json:"origin_name"` // 原名
Age string `json:"age"` // 年代类型
AgeDescription string `json:"age_description"` // 具体年代
CulturalRelicType string `json:"cultural_relic_type"` // 文物类型
CollectionType string `json:"collection_type"` // 藏品类型
GeologyType string `json:"geology_type"` // 质地类型
Geology string `json:"geology"` // 质地
ActualQuantity string `json:"actual_quantity"` // 实际数量
ActualQuantityUnit string `json:"actual_quantity_unit"` // 实际数量单位
OverallSize string `json:"overall_size"` // 外形尺寸
SizeDescription string `json:"size_description"` // 具体尺寸
SizeUnit string `json:"size_unit"` // 尺寸单位
QualityRange string `json:"quality_range"` // 质量范围
Quality string `json:"quality"` // 具体质量
QualityUnit string `json:"quality_unit"` // 质量单位
Rank string `json:"rank"` // 藏品级别
SourceType string `json:"source_type"` // 文物来源
DisabilityDegree string `json:"disability_degree"` // 完残程度
SaveStatus string `json:"save_status"` // 保存状态
DepositTimeFrame string `json:"deposit_time_frame"` // 入藏时间范围
DepositYear string `json:"deposit_year"` // 入藏年度
UpdateTime string `json:"update_time"` // 更新时间
Status int `json:"status"` // 藏品状态
}
藏品信息
type InStoreRecord ¶
type InStoreRecord struct {
InStoreApplyCode string `json:"in_store_apply_code"` // 入库申请单编号
ApplyName string `json:"apply_name"` // 申请单名称
ApplyDesc string `json:"apply_desc"` // 入库事由
ApplyAccount string `json:"apply_account"` // 申请人姓名
StorageAccount1 string `json:"storage_account_1"` // 库房点收人1
StorageAccount2 string `json:"storage_account_2"` // 库房点收人2
TotalAccount1 string `json:"total_account_1"` // 总账点收人1
TotalAccount2 string `json:"total_account_2"` // 总账点收人2
RegistrationAccount1 string `json:"registration_account_1"` // 登编点收人1
RegistrationAccount2 string `json:"registration_account_2"` // 登编点收人2
AppointDate string `json:"appoint_date"` // 入库时间
CollectionIds []string `json:"collection_ids"` // 藏品id
}
藏品入库记录 记录从入库申请到最终入库的所有信息
type MoveStoreRecord ¶
type MoveStoreRecord struct {
MoveStoreApplyCode string `json:"move_store_apply_code"` // 移库申请单编号
ApplyAccount string `json:"apply_account"` // 申请人姓名
ApplyDesc string `json:"apply_desc"` // 移库缘由
OriginStorage string `json:"origin_storage"` // 原库房
TargetStorage string `json:"target_storage"` // 目标库房
OriginManager string `json:"origin_manager"` // 原库房管理员
OriginDirector string `json:"origin_director"` // 原科室主任
TargetManager string `json:"target_manager"` // 目标库房管理员
TargetDirector string `json:"target_director"` // 目标科室主任
TotalAppointDate string `json:"total_appoint_date"` // 总账点收日期
CollectionIds []string `json:"collection_ids"` // 移库申请中包含的仓单列表
}
移库记录
type OutShopRecord ¶
type OutShopRecord struct {
OutShopApplyCode string `json:"out_shop_apply_code"` // 出馆申请单编号
ApplyName string `json:"apply_name"` // 申请单名称
ApplyDesc string `json:"apply_desc"` // 申请原因
ApplyAccount string `json:"apply_account"` // 申请人姓名
StorageAccount string `json:"storage_account"` // 库房管理员
TotalAccount string `json:"total_account"` // 总账管理员
OutAgent string `json:"out_agent"` // 馆外代理人
DockAccount string `json:"dock_account"` // 专属对接人
UnitAccount string `json:"unit_account"` // 点交单位经手人
AppointDate string `json:"appoint_date"` // 点交时间
GoodsInfo string `json:"goods_info"` // 藏品信息
CollectionIds []string `json:"collection_ids"` // 出馆申请中包含的藏品列表
}
出馆记录 记录从出库申请到最终出库的所有信息
type OutStoreRecord ¶
type OutStoreRecord struct {
OutStoreApplyCode string `json:"out_store_apply_code"` // 出库申请单编号
ApplyName string `json:"apply_name"` // 申请单名称
ApplyDesc string `json:"apply_desc"` // 申请原因
ApplyAccount string `json:"apply_account"` // 申请人姓名
StorageAccount1 string `json:"storage_account_1"` // 库房管理员1
StorageAccount2 string `json:"storage_account_2"` // 库房管理员2
UseAccount1 string `json:"use_account_1"` // 提用人1
UseAccount2 string `json:"use_account_2"` // 提用人2
DockAccount string `json:"dock_account"` // 专属对接人
AppointDate string `json:"appoint_date"` // 点交时间
CollectionIds []string `json:"collection_ids"` // 出库申请中包含的藏品列表
}
出库记录 记录从出库申请到最终出库的所有信息
type SmartContract ¶
type SmartContract struct {
contractapi.Contract
}
func (*SmartContract) CancelCollectionRecord ¶
func (s *SmartContract) CancelCollectionRecord(ctx contractapi.TransactionContextInterface, collectionIdList string) error
注销藏品记录
func (*SmartContract) CreateCollectionRecord ¶
func (s *SmartContract) CreateCollectionRecord(ctx contractapi.TransactionContextInterface, inStoreApplyCode, code, originName, age, ageDescription, culturalRelicType, collectionType, geologyType, geology, actualQuantity, actualQuantityUnit, overallSize, sizeDescription, sizeUnit, qualityRange, quality, qualityUnit, rank, sourceType, disabilityDegree, saveStatus, depositTimeFrame, depositYear, updateTime string) error
创建藏品记录(仓单)
func (*SmartContract) FreezeCollectionRecord ¶
func (s *SmartContract) FreezeCollectionRecord(ctx contractapi.TransactionContextInterface, collectionIdList string) error
冻结藏品记录
func (*SmartContract) InStoreApply ¶
func (s *SmartContract) InStoreApply(ctx contractapi.TransactionContextInterface, inStoreApplyCode, applyName, applyDesc, applyAccount string) error
入库申请
func (*SmartContract) InStoreVerify ¶
func (s *SmartContract) InStoreVerify(ctx contractapi.TransactionContextInterface, inStoreApplyCode, storageAccount1, storageAccount2, totalAccount1, totalAccount2, registrationAccount1, registrationAccount2, appointDate, collectionIdList string) error
入库点交
func (*SmartContract) MoveStoreApply ¶
func (s *SmartContract) MoveStoreApply(ctx contractapi.TransactionContextInterface, moveStoreApplyCode, applyAccount, applyDesc, originStorage, targetStorage, originManager, originDirector, targetManager, targetDirector, totalAppointDate, collectionIList string) error
移库
func (*SmartContract) OutShopVerify ¶
func (s *SmartContract) OutShopVerify(ctx contractapi.TransactionContextInterface, outShopApplyCode, applyName, applyDesc, applyAccount, storageAccount, totalAccount, outAgent, dockAccount, unitAccount, appointDate, collectionIdList string) error
出馆点交
func (*SmartContract) OutStoreVerify ¶
func (s *SmartContract) OutStoreVerify(ctx contractapi.TransactionContextInterface, outStoreApplyCode, applyName, applyDesc, applyAccount, storageAccount1, storageAccount2, useAccount1, useAccount2, dockAccount, appointDate, collectionIdList string) error
出库点交
func (*SmartContract) QueryCollectionRecord ¶
func (s *SmartContract) QueryCollectionRecord(ctx contractapi.TransactionContextInterface, collectionCode string) (*Collection, error)
查询藏品记录
func (*SmartContract) QueryInStoreRecord ¶
func (s *SmartContract) QueryInStoreRecord(ctx contractapi.TransactionContextInterface, args []string) (*InStoreRecord, error)
查询入库记录
func (*SmartContract) QueryMoveStoreRecord ¶
func (s *SmartContract) QueryMoveStoreRecord(ctx contractapi.TransactionContextInterface, moveStoreRecordCode string) (*MoveStoreRecord, error)
查询移库记录
func (*SmartContract) QueryOutStoreRecord ¶
func (s *SmartContract) QueryOutStoreRecord(ctx contractapi.TransactionContextInterface, outStoreRecordCode string) (*OutStoreRecord, error)
查询出库记录
func (*SmartContract) TestGet ¶
func (s *SmartContract) TestGet() string
func (*SmartContract) TestQuery ¶
func (s *SmartContract) TestQuery(ctx contractapi.TransactionContextInterface) (string, error)
func (*SmartContract) TestSave ¶
func (s *SmartContract) TestSave(ctx contractapi.TransactionContextInterface, name string) error
func (*SmartContract) UnFreezeCollectionRecord ¶
func (s *SmartContract) UnFreezeCollectionRecord(ctx contractapi.TransactionContextInterface, collectionIdList string) error
解冻藏品记录
func (*SmartContract) VerifyCollectionRecord ¶
func (s *SmartContract) VerifyCollectionRecord(ctx contractapi.TransactionContextInterface, collectionIdList string) error
认证审核藏品记录 将移库中、注销状态的藏品记录(仓单)状态改为正常状态;将出库中改为已出库
Click to show internal directories.
Click to hide internal directories.