publishitem

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoIcon = errors.New("icon not found")
)

Functions

func GenerateInstallPlist

func GenerateInstallPlist(info *IosAppInfo, downloadUrl string) string

func GenrateTmpImagePath

func GenrateTmpImagePath(id string) string

func SaveImageToFile

func SaveImageToFile(icon image.Image, path string) error

Types

type AndroidAppInfo

type AndroidAppInfo struct {
	PackageName string
	Version     string
	VersionCode int32
	Icon        image.Image
	DisplayName string
}

func GetAndoridInfo

func GetAndoridInfo(fileHeader *multipart.FileHeader) (*AndroidAppInfo, error)

type CFBundleIcons

type CFBundleIcons struct {
	CFBundlePrimaryIcon *CFBundlePrimaryIcon `plist:"CFBundlePrimaryIcon"`
}

type CFBundlePrimaryIcon

type CFBundlePrimaryIcon struct {
	CFBundleIconFiles []string `plist:"CFBundleIconFiles"`
	CFBundleIconName  string   `plist:"CFBundleIconName"`
}

type IOSPlist

type IOSPlist struct {
	CFBundleName         string         `plist:"CFBundleName"`
	CFBundleDisplayName  string         `plist:"CFBundleDisplayName"`
	CFBundleVersion      string         `plist:"CFBundleVersion"`
	CFBundleShortVersion string         `plist:"CFBundleShortVersionString"`
	CFBundleIdentifier   string         `plist:"CFBundleIdentifier"`
	CFBundleIcons        *CFBundleIcons `plist:"CFBundleIcons"`
}

type IosAppInfo

type IosAppInfo struct {
	Name     string
	BundleId string
	Version  string
	Build    string
	Icon     image.Image
	Size     int64
	IconName string
}

func GetIosInfo

func GetIosInfo(fileHeader *multipart.FileHeader) (*IosAppInfo, error)

type PKGInfo

type PKGInfo struct {
	PackageName string
	Version     string
	BuildID     string
	DisplayName string
}

type PublishItemService

type PublishItemService struct {
	// contains filtered or unexported fields
}

func (*PublishItemService) CreateOffLineVersion

func (*PublishItemService) CreatePublishItem

func (*PublishItemService) CreatePublishItemBlackList

func (*PublishItemService) CreatePublishItemErase

func (*PublishItemService) CreatePublishItemVersion

func (*PublishItemService) DeletePublishItem

func (*PublishItemService) GetPublicPublishItemLaststVersion

GetPublicPublishItemLaststVersion 获取线上最新版本的包

func (*PublishItemService) GetPublicPublishItemVersion

func (*PublishItemService) GetPublicPublishItemVersionImpl

func (s *PublishItemService) GetPublicPublishItemVersionImpl(itemID int64, mobileType, packageName string) (*pb.QueryPublishItemVersionData, error)

func (*PublishItemService) GetPublishItem

func (*PublishItemService) GetPublishItemBlackList

func (*PublishItemService) GetPublishItemDistribution

func (s *PublishItemService) GetPublishItemDistribution(id int64, mobileType apistructs.ResourceType, packageName string,
	w http.ResponseWriter, r *http.Request) (*pb.PublishItemDistributionData, error)

func (*PublishItemService) GetPublishItemErase

func (*PublishItemService) GetPublishItemImpl

func (s *PublishItemService) GetPublishItemImpl(publishItemID int64) (*pb.PublishItem, error)

func (*PublishItemService) GrayDistribution

func (i *PublishItemService) GrayDistribution(w http.ResponseWriter, r *http.Request, publisherItem db.PublishItem,
	distribution *pb.PublishItemDistributionData, mobileType apistructs.ResourceType, packageName string) error

GrayDistribution 根据用户身份进行和灰度设置进行灰度分发

func (*PublishItemService) PublicPublishItemVersion

func (s *PublishItemService) PublicPublishItemVersion(req *pb.UpdatePublishItemVersionStatesRequset,
	local *i18n.LocaleResource) error

func (*PublishItemService) PublishItemVersion

PublishItemVersion publish item version

func (*PublishItemService) QueryMyPublishItem

func (*PublishItemService) QueryPublishItem

func (*PublishItemService) QueryPublishItemVersion

func (*PublishItemService) QueryPublishItemVersions

func (*PublishItemService) SetPublishItemVersionDefault

func (s *PublishItemService) SetPublishItemVersionDefault(itemVersionID, itemID int64) error

SetPublishItemVersionDefault 设置发布版本默认状态

func (*PublishItemService) SetPublishItemVersionPublic

func (s *PublishItemService) SetPublishItemVersionPublic(id, itemID int64) error

SetPublishItemVersionPublic 设置发布版本为公开

func (*PublishItemService) SetPublishItemVersionStatus

func (s *PublishItemService) SetPublishItemVersionStatus(ctx context.Context, req *pb.SetPublishItemVersionStatusRequest) (*emptypb.Empty, error)

func (*PublishItemService) SetPublishItemVersionUnPublic

func (s *PublishItemService) SetPublishItemVersionUnPublic(id, itemID int64) error

SetPublishItemVersionUnPublic 设置发布版本为公开

func (*PublishItemService) UpdatePublishItem

func (*PublishItemService) UpdatePublishItemVersion

func (s *PublishItemService) UpdatePublishItemVersion(ctx context.Context, req *pb.UpdatePublishItemVersionStatesRequset) (*emptypb.Empty, error)

func (*PublishItemService) UploadFileFromFile

func (s *PublishItemService) UploadFileFromFile(filePath string) (*pb.File, error)

func (*PublishItemService) UploadFileFromReader

func (s *PublishItemService) UploadFileFromReader(fileHeader *multipart.FileHeader) (*pb.File, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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