Documentation ¶
Index ¶
- func ClaimantAsset(param ClaimantParam) error
- func CreateAsset(param Asset) error
- func CreateAssetType(param Type) error
- func CreateTemplate(param Template) error
- func DelAssetType(tangentId, id string) error
- func DeleteAsset(tangentId, id string) error
- func DeleteTemplate(tangentId, id string) error
- func Destroy()
- func ExportData(param ExportParam) ([]byte, error)
- func ExportTemplate(param ExportParam) ([]byte, error)
- func HandoverAsset(param HandoverParam) error
- func Import(param ImportParam) error
- func ImportOwnerNames(param ImportOwnerNamesParam) ([]string, error)
- func Init(baseUrl string, timeoutSec time.Duration)
- func ScrapAsset(param ScrapParam) error
- func SetAssetState(param SetStateParam) error
- func UpdateAsset(param Asset) error
- func UpdateTemplate(param Template) error
- type Asset
- type AssetInfo
- type AssetItem
- type Claimant
- type ClaimantParam
- type ExportParam
- type GetAssetParam
- type GetAssetTypesParams
- type GetTemplateParam
- type Handover
- type HandoverParam
- type ImportAsset
- type ImportAssetParam
- type ImportOwnerNamesParam
- type ImportParam
- type LedgerParam
- type OssObj
- type PreviewParam
- type PreviewResult
- type Resp
- type Result
- func ClaimantLedger(param LedgerParam) (Result[Claimant], error)
- func GetAsset(param GetAssetParam) (Result[AssetInfo], error)
- func GetAssetType(params GetAssetTypesParams) (Result[Type], error)
- func GetTemplate(param GetTemplateParam) (Result[TemplateInfo], error)
- func HandoverLedger(param LedgerParam) (Result[Handover], error)
- func PreviewImportAsset(param SheetAssetsParam) (Result[ImportAsset], error)
- func ScrapLedger(param LedgerParam) (Result[Scrap], error)
- func StateLedger(param LedgerParam) (Result[State], error)
- type Scrap
- type ScrapParam
- type SetStateParam
- type SheetAssetsParam
- type State
- type Template
- type TemplateInfo
- type TemplateItem
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaimantAsset ¶ added in v0.15.0
func ClaimantAsset(param ClaimantParam) error
func CreateAsset ¶ added in v0.15.0
func CreateAssetType ¶ added in v0.15.0
func CreateTemplate ¶ added in v0.15.0
func DelAssetType ¶ added in v0.15.0
func DeleteAsset ¶ added in v0.15.0
func DeleteTemplate ¶ added in v0.15.0
func ExportData ¶ added in v0.15.0
func ExportData(param ExportParam) ([]byte, error)
func ExportTemplate ¶ added in v0.15.0
func ExportTemplate(param ExportParam) ([]byte, error)
func HandoverAsset ¶ added in v0.15.0
func HandoverAsset(param HandoverParam) error
func Import ¶ added in v0.15.0
func Import(param ImportParam) error
func ImportOwnerNames ¶ added in v0.15.0
func ImportOwnerNames(param ImportOwnerNamesParam) ([]string, error)
func ScrapAsset ¶ added in v0.15.0
func ScrapAsset(param ScrapParam) error
func SetAssetState ¶ added in v0.15.0
func SetAssetState(param SetStateParam) error
func UpdateAsset ¶ added in v0.15.0
func UpdateTemplate ¶ added in v0.15.0
Types ¶
type Asset ¶ added in v0.15.0
type Asset struct { Id string `form:"id" json:"id,omitempty"` Code string `validator:"required,min=1,max=100" form:"code" json:"code,omitempty"` Name string `validator:"required,min=1,max=100" form:"name" json:"name,omitempty"` OwnerId string `form:"ownerId" json:"ownerId,omitempty"` OwnerName string `form:"ownerName" json:"ownerName,omitempty"` Pics []string `form:"pics" json:"pics,omitempty"` TangentId string `validator:"required,len=32" form:"tangentId" json:"tangentId,omitempty"` Items []AssetItem `validator:"required" form:"items" json:"items,omitempty"` TemplateId string `validator:"required,len=32" form:"templateId" json:"templateId,omitempty"` State uint8 `json:"state,omitempty"` }
type AssetInfo ¶ added in v0.15.0
type AssetInfo struct { Id string `json:"id"` Code string `json:"code"` Name string `json:"name"` OwnerId string `json:"ownerId"` OwnerName string `json:"ownerName"` Pics []OssObj `json:"pics"` TangentId string `json:"tangentId"` Items []AssetItem `json:"items"` TemplateId string `form:"templateId" json:"templateId"` State uint8 `json:"state"` }
type ClaimantParam ¶ added in v0.15.0
type ClaimantParam struct { TangentId string `validator:"required,len=32" json:"tangentId"` Id string `validator:"required,len=32" json:"id"` OwnerId string `validator:"required,len=32" json:"ownerId"` OwnerName string `validator:"required,max=20" json:"ownerName"` Desc string `validator:"max=200" json:"desc"` }
type ExportParam ¶ added in v0.15.0
type GetAssetParam ¶ added in v0.15.0
type GetAssetTypesParams ¶ added in v0.15.0
type GetTemplateParam ¶ added in v0.15.0
type Handover ¶ added in v0.15.0
type Handover struct { Id string `json:"id"` AssetId string `json:"assetId"` AssetCode string `json:"assetCode"` AssetName string `json:"assetName"` ClaimantId string `json:"claimantId"` ClaimantName string `json:"claimantName"` Handover string `json:"handover"` HandoverName string `json:"handoverName"` Desc string `json:"desc"` CreatedAt string `json:"createdAt"` }
type HandoverParam ¶ added in v0.15.0
type HandoverParam struct { TangentId string `validator:"required,len=32" json:"tangentId"` Id string `validator:"required,len=32" json:"id"` OwnerId string `validator:"required,len=32" json:"ownerId"` OwnerName string `validator:"required,max=20" json:"ownerName"` Desc string `validator:"max=200" json:"desc"` }
type ImportAsset ¶ added in v0.15.0
type ImportAssetParam ¶ added in v0.15.0
type ImportOwnerNamesParam ¶ added in v0.15.0
type ImportParam ¶ added in v0.15.0
type LedgerParam ¶ added in v0.15.0
type PreviewParam ¶ added in v0.15.0
type PreviewResult ¶ added in v0.15.0
func Preview ¶ added in v0.15.0
func Preview(param PreviewParam) (*PreviewResult, error)
type Result ¶ added in v0.15.0
type Result[T any] struct { Info []T `json:"info"` TotalCount int `json:"totalCount"` PageNo int `json:"pageNo"` }
func ClaimantLedger ¶ added in v0.15.0
func ClaimantLedger(param LedgerParam) (Result[Claimant], error)
func GetAssetType ¶ added in v0.15.0
func GetAssetType(params GetAssetTypesParams) (Result[Type], error)
func GetTemplate ¶ added in v0.15.0
func GetTemplate(param GetTemplateParam) (Result[TemplateInfo], error)
func HandoverLedger ¶ added in v0.15.0
func HandoverLedger(param LedgerParam) (Result[Handover], error)
func PreviewImportAsset ¶ added in v0.15.0
func PreviewImportAsset(param SheetAssetsParam) (Result[ImportAsset], error)
func ScrapLedger ¶ added in v0.15.0
func ScrapLedger(param LedgerParam) (Result[Scrap], error)
func StateLedger ¶ added in v0.15.0
func StateLedger(param LedgerParam) (Result[State], error)
type ScrapParam ¶ added in v0.15.0
type SetStateParam ¶ added in v0.15.0
type SheetAssetsParam ¶ added in v0.15.0
type TemplateInfo ¶ added in v0.15.0
type TemplateItem ¶ added in v0.15.0
Click to show internal directories.
Click to hide internal directories.