Documentation ¶
Index ¶
- func CreateFixedAsset(tangentID string, code string, name string, ownerName string, ...) error
- func CreateFixedAssetExcel(tangentID string, excel *multipart.FileHeader) error
- func CreateFixedAssetTemplate(tangentID string, name string, propertyItemNames []string) error
- func DeleteFixedAsset(tangentID string, assetID string) error
- func DeleteFixedAssetTemplate(tangentID string, id string) error
- func Destroy()
- func DumpFixedAssetQRCodes(appId, appSecret, tangentID, ids string) ([]byte, error)
- func GenerateFixedAssetQrCode(appId, appSecret, tangentID, id string) (string, error)
- func GetFixedAssetTemplateExcel(tangentID string, id string) ([]byte, error)
- func Init(baseUrl string, timeoutSec time.Duration)
- func UpdateFixedAsset(tangentID string, id string, ownerName string, code string, name string, ...) error
- func UpdateFixedAssetTemplate(tangentID string, id string, name string, propertyItemNames []string) error
- func UploadFixedAssetPic(pic *multipart.FileHeader) (string, string, error)
- type FixedAssetInfo
- type FixedAssetTemplateInfo
- type PicInfo
- type PropertyItemInfo
- type PropertyItemRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFixedAsset ¶
func CreateFixedAssetExcel ¶
func CreateFixedAssetExcel(tangentID string, excel *multipart.FileHeader) error
func CreateFixedAssetTemplate ¶
func Destroy ¶
func Destroy()
func DumpFixedAssetQRCodes ¶
func GenerateFixedAssetQrCode ¶
func GetFixedAssetTemplateExcel ¶
func UpdateFixedAsset ¶
func UpdateFixedAssetTemplate ¶
Types ¶
type FixedAssetInfo ¶
type FixedAssetInfo struct { ID string `json:"id" binding:"required"` Code string `json:"code" binding:"required"` Name string `json:"name" binding:"required"` OwnerName string `json:"ownerName" binding:"required"` TemplateID string `json:"templateId" binding:"required"` Pics []PicInfo `json:"pics"` PropertyItemInfos []PropertyItemInfo `json:"propertyItemInfos"` }
type FixedAssetTemplateInfo ¶
type PropertyItemInfo ¶
Click to show internal directories.
Click to hide internal directories.