Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + type DBClient struct + func (client *DBClient) CreateBlacklist(blacklist *PublishItemBlackList) error + func (client *DBClient) CreateErase(erase *PublishItemErase) error + func (client *DBClient) CreateH5Targets(target *PublishItemH5Targets) error + func (client *DBClient) CreatePublishItem(publishItem *PublishItem) error + func (client *DBClient) CreatePublishItemVersion(itemVersion *PublishItemVersion) error + func (client *DBClient) DeleteBlacklist(blacklist *PublishItemBlackList) error + func (client *DBClient) DeleteErase(erase *PublishItemErase) error + func (client *DBClient) DeletePublishItem(publishItem *PublishItem) error + func (client *DBClient) DeletePublishItemVersion(itemVersion *PublishItemVersion) error + func (client *DBClient) DeletePublishItemVersionsByItemID(itemID int64) error + func (client *DBClient) GeneratePublishItemKey() string + func (client *DBClient) GetALLItem() ([]PublishItem, error) + func (client *DBClient) GetBlacklistByDeviceNo(publishItemID uint64, deviceNo string) ([]*PublishItemBlackList, error) + func (client *DBClient) GetBlacklistByID(id uint64) (*PublishItemBlackList, error) + func (client *DBClient) GetBlacklistByUserID(userID string, publishItemID uint64) ([]*PublishItemBlackList, error) + func (client *DBClient) GetBlacklists(pageNo, pageSize, publishItemID uint64) (uint64, *[]PublishItemBlackList, error) + func (client *DBClient) GetEraseByDeviceNo(publishItemID uint64, deviceNo string) (*PublishItemErase, error) + func (client *DBClient) GetErases(pageNo, pageSize, artifactID uint64) (uint64, *[]PublishItemErase, error) + func (client *DBClient) GetH5VersionByItemID(itemID int64) ([]PublishItemVersion, error) + func (client *DBClient) GetH5VersionsByTarget(itemID uint64, mobileType apistructs.ResourceType, ...) ([]*PublishItemVersion, error) + func (client *DBClient) GetPublicVersion(itemID int64, mobileType apistructs.ResourceType, packageName string) (int, []PublishItemVersion, error) + func (client *DBClient) GetPublishItem(id int64) (*PublishItem, error) + func (client *DBClient) GetPublishItemByAKAI(ak, ai string) (*PublishItem, error) + func (client *DBClient) GetPublishItemCountByPublisher(publisherId int64) (int64, error) + func (client *DBClient) GetPublishItemVersion(id int64) (*PublishItemVersion, error) + func (client *DBClient) GetPublishItemVersionByName(orgId int64, itemID int64, mobileType apistructs.ResourceType, ...) (*PublishItemVersion, error) + func (client *DBClient) GetTargetsByH5Version(versionID uint64) ([]PublishItemH5Targets, error) + func (client *DBClient) ListPublishItemVersionByNames(orgId int64, itemID int64, versions []string, ...) ([]PublishItemVersion, error) + func (client *DBClient) MigrationFordice320(itemID int64) error + func (client *DBClient) QueryPublishItem(request *pb.QueryPublishItemRequest) (*pb.QueryPublishItemData, error) + func (client *DBClient) QueryPublishItemVersions(request *pb.QueryPublishItemVersionRequest) (*pb.QueryPublishItemVersionData, error) + func (client *DBClient) SetPublishItemVersionDefault(itemID, itemVersionID int64) error + func (client *DBClient) SetPublishItemVersionPublic(id, itemID int64) error + func (client *DBClient) SetPublishItemVersionUnPublic(id, itemID int64) error + func (client *DBClient) UpdateErase(erase *PublishItemErase) error + func (client *DBClient) UpdatePublicVersionByID(versionID int64, fileds map[string]interface{}) error + func (client *DBClient) UpdatePublishItem(publishItem *PublishItem) error + func (client *DBClient) UpdatePublishItemUpdateTime(publishItem *PublishItem) error + func (client *DBClient) UpdatePublishItemVersion(itemVersion *PublishItemVersion) error + type PublishItem struct + AI string + AK string + BackgroundImage string + Creator string + Desc string + DisplayName string + GeofenceLat float64 + GeofenceLon float64 + GeofenceRadius float64 + GrayLevelPercent int + IsMigration bool + Logo string + Name string + NoJailbreak bool + OrgID int64 + PreviewImages string + Public bool + PublisherID int64 + Type string + func (PublishItem) TableName() string + func (publishItem *PublishItem) ToApiData() *pb.PublishItem + type PublishItemBlackList struct + DeviceNo string + Operator string + PublishItemID uint64 + PublishItemKey string + UserID string + UserName string + func (PublishItemBlackList) TableName() string + type PublishItemErase struct + DeviceNo string + EraseStatus string + Operator string + PublishItemID uint64 + PublishItemKey string + func (PublishItemErase) TableName() string + type PublishItemH5Targets struct + H5VersionID uint64 + TargetBuildID string + TargetMobileType string + TargetVersion string + func (PublishItemH5Targets) TableName() string + type PublishItemVersion struct + BuildID string + Creator string + Desc string + GrayLevelPercent int + IsDefault bool + Logo string + Meta string + MobileType string + OrgID int64 + PackageName string + Public bool + PublishItemID int64 + Readme string + Resources string + Spec string + Swagger string + Version string + VersionStates string + func (PublishItemVersion) TableName() string + func (publishItemVersion *PublishItemVersion) IsLater(version *PublishItemVersion) bool + func (publishItemVersion *PublishItemVersion) ToApiData() *pb.PublishItemVersion