Documentation ¶
Index ¶
- Variables
- func GenerateInstallPlist(info *IosAppInfo, downloadUrl string) string
- func GenrateTmpImagePath(id string) string
- func SaveImageToFile(icon image.Image, path string) error
- type AndroidAppInfo
- type CFBundleIcons
- type CFBundlePrimaryIcon
- type IOSPlist
- type IosAppInfo
- type PKGInfo
- type PublishItemService
- func (s *PublishItemService) CreateOffLineVersion(param apistructs.CreateOffLinePublishItemVersionRequest) (string, error)
- func (s *PublishItemService) CreatePublishItem(ctx context.Context, req *pb.CreatePublishItemRequest) (*pb.CreatePublishItemResponse, error)
- func (s *PublishItemService) CreatePublishItemBlackList(ctx context.Context, req *pb.PublishItemUserlistRequest) (*pb.PublishItemAddBlacklistResponse, error)
- func (s *PublishItemService) CreatePublishItemErase(ctx context.Context, req *pb.CreatePublishItemEraseRequest) (*pb.PublicItemAddEraseResponse, error)
- func (s *PublishItemService) CreatePublishItemVersion(ctx context.Context, req *pb.CreatePublishItemVersionRequest) (*pb.CreatePublishItemVersionResponse, error)
- func (s *PublishItemService) DeletePublishItem(ctx context.Context, req *pb.DeletePublishItemRequest) (*pb.DeletePublishItemResponse, error)
- func (s *PublishItemService) DeletePublishItemBlackList(ctx context.Context, req *pb.DeletePublishItemBlackListRequest) (*pb.PublishItemDeleteBlacklistResponse, error)
- func (i *PublishItemService) GetPublicPublishItemLaststVersion(rw http.ResponseWriter, r *http.Request, ...) (*pb.GetPublishItemLatestVersionData, error)
- func (s *PublishItemService) GetPublicPublishItemVersion(ctx context.Context, req *pb.GetPublicPublishItemVersionRequest) (*pb.QueryPublishItemVersionResponse, error)
- func (s *PublishItemService) GetPublicPublishItemVersionImpl(itemID int64, mobileType, packageName string) (*pb.QueryPublishItemVersionData, error)
- func (s *PublishItemService) GetPublishItem(ctx context.Context, req *pb.GetPublishItemRequest) (*pb.GetPublishItemResponse, error)
- func (s *PublishItemService) GetPublishItemBlackList(ctx context.Context, req *pb.GetPublishItemBlackListRequest) (*pb.PublishItemUserListDataResponse, error)
- func (s *PublishItemService) GetPublishItemDistribution(id int64, mobileType apistructs.ResourceType, packageName string, ...) (*pb.PublishItemDistributionData, error)
- func (s *PublishItemService) GetPublishItemErase(ctx context.Context, req *pb.GetPublishItemEraseRequest) (*pb.PublishItemUserListDataResponse, error)
- func (s *PublishItemService) GetPublishItemH5PackageName(ctx context.Context, req *pb.GetPublishItemH5PackageNameRequest) (*pb.GetPublishItemH5PackageNameResponse, error)
- func (s *PublishItemService) GetPublishItemImpl(publishItemID int64) (*pb.PublishItem, error)
- func (i *PublishItemService) GrayDistribution(w http.ResponseWriter, r *http.Request, publisherItem db.PublishItem, ...) error
- func (s *PublishItemService) ListPublishItemMonitorKeys(ctx context.Context, req *pb.ListPublishItemMonitorKeysRequest) (*pb.ListPublishItemMonitorKeysResponse, error)
- func (s *PublishItemService) PublicPublishItemVersion(req *pb.UpdatePublishItemVersionStatesRequset, local *i18n.LocaleResource) error
- func (i *PublishItemService) PublishItemVersion(req *pb.CreatePublishItemVersionRequest) (*pb.PublishItemVersion, error)
- func (s *PublishItemService) QueryMyPublishItem(ctx context.Context, req *pb.QueryPublishItemRequest) (*pb.QueryPublishItemResponse, error)
- func (s *PublishItemService) QueryPublishItem(ctx context.Context, req *pb.QueryPublishItemRequest) (*pb.QueryPublishItemResponse, error)
- func (s *PublishItemService) QueryPublishItemVersion(ctx context.Context, req *pb.QueryPublishItemVersionRequest) (*pb.QueryPublishItemVersionResponse, error)
- func (s *PublishItemService) QueryPublishItemVersions(ctx context.Context, req *pb.QueryPublishItemVersionRequest) (*pb.QueryPublishItemVersionData, error)
- func (s *PublishItemService) SetPublishItemVersionDefault(itemVersionID, itemID int64) error
- func (s *PublishItemService) SetPublishItemVersionPublic(id, itemID int64) error
- func (s *PublishItemService) SetPublishItemVersionStatus(ctx context.Context, req *pb.SetPublishItemVersionStatusRequest) (*emptypb.Empty, error)
- func (s *PublishItemService) SetPublishItemVersionUnPublic(id, itemID int64) error
- func (s *PublishItemService) UpdatePublishItem(ctx context.Context, req *pb.UpdatePublishItemRequest) (*pb.UpdatePublishItemResponse, error)
- func (s *PublishItemService) UpdatePublishItemVersion(ctx context.Context, req *pb.UpdatePublishItemVersionStatesRequset) (*emptypb.Empty, error)
- func (s *PublishItemService) UploadFileFromFile(filePath string) (*pb.File, error)
- func (s *PublishItemService) UploadFileFromReader(fileHeader *multipart.FileHeader) (*pb.File, error)
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 ¶
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 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 PublishItemService ¶
type PublishItemService struct {
// contains filtered or unexported fields
}
func (*PublishItemService) CreateOffLineVersion ¶
func (s *PublishItemService) CreateOffLineVersion(param apistructs.CreateOffLinePublishItemVersionRequest) (string, error)
func (*PublishItemService) CreatePublishItem ¶
func (s *PublishItemService) CreatePublishItem(ctx context.Context, req *pb.CreatePublishItemRequest) (*pb.CreatePublishItemResponse, error)
func (*PublishItemService) CreatePublishItemBlackList ¶
func (s *PublishItemService) CreatePublishItemBlackList(ctx context.Context, req *pb.PublishItemUserlistRequest) (*pb.PublishItemAddBlacklistResponse, error)
func (*PublishItemService) CreatePublishItemErase ¶
func (s *PublishItemService) CreatePublishItemErase(ctx context.Context, req *pb.CreatePublishItemEraseRequest) (*pb.PublicItemAddEraseResponse, error)
func (*PublishItemService) CreatePublishItemVersion ¶
func (s *PublishItemService) CreatePublishItemVersion(ctx context.Context, req *pb.CreatePublishItemVersionRequest) (*pb.CreatePublishItemVersionResponse, error)
func (*PublishItemService) DeletePublishItem ¶
func (s *PublishItemService) DeletePublishItem(ctx context.Context, req *pb.DeletePublishItemRequest) (*pb.DeletePublishItemResponse, error)
func (*PublishItemService) DeletePublishItemBlackList ¶
func (s *PublishItemService) DeletePublishItemBlackList(ctx context.Context, req *pb.DeletePublishItemBlackListRequest) (*pb.PublishItemDeleteBlacklistResponse, error)
func (*PublishItemService) GetPublicPublishItemLaststVersion ¶
func (i *PublishItemService) GetPublicPublishItemLaststVersion(rw http.ResponseWriter, r *http.Request, req pb.GetPublishItemLatestVersionRequest) (*pb.GetPublishItemLatestVersionData, error)
GetPublicPublishItemLaststVersion 获取线上最新版本的包
func (*PublishItemService) GetPublicPublishItemVersion ¶
func (s *PublishItemService) GetPublicPublishItemVersion(ctx context.Context, req *pb.GetPublicPublishItemVersionRequest) (*pb.QueryPublishItemVersionResponse, error)
func (*PublishItemService) GetPublicPublishItemVersionImpl ¶
func (s *PublishItemService) GetPublicPublishItemVersionImpl(itemID int64, mobileType, packageName string) (*pb.QueryPublishItemVersionData, error)
func (*PublishItemService) GetPublishItem ¶
func (s *PublishItemService) GetPublishItem(ctx context.Context, req *pb.GetPublishItemRequest) (*pb.GetPublishItemResponse, error)
func (*PublishItemService) GetPublishItemBlackList ¶
func (s *PublishItemService) GetPublishItemBlackList(ctx context.Context, req *pb.GetPublishItemBlackListRequest) (*pb.PublishItemUserListDataResponse, error)
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 (s *PublishItemService) GetPublishItemErase(ctx context.Context, req *pb.GetPublishItemEraseRequest) (*pb.PublishItemUserListDataResponse, error)
func (*PublishItemService) GetPublishItemH5PackageName ¶
func (s *PublishItemService) GetPublishItemH5PackageName(ctx context.Context, req *pb.GetPublishItemH5PackageNameRequest) (*pb.GetPublishItemH5PackageNameResponse, error)
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) ListPublishItemMonitorKeys ¶
func (s *PublishItemService) ListPublishItemMonitorKeys(ctx context.Context, req *pb.ListPublishItemMonitorKeysRequest) (*pb.ListPublishItemMonitorKeysResponse, error)
func (*PublishItemService) PublicPublishItemVersion ¶
func (s *PublishItemService) PublicPublishItemVersion(req *pb.UpdatePublishItemVersionStatesRequset, local *i18n.LocaleResource) error
func (*PublishItemService) PublishItemVersion ¶
func (i *PublishItemService) PublishItemVersion(req *pb.CreatePublishItemVersionRequest) (*pb.PublishItemVersion, error)
PublishItemVersion publish item version
func (*PublishItemService) QueryMyPublishItem ¶
func (s *PublishItemService) QueryMyPublishItem(ctx context.Context, req *pb.QueryPublishItemRequest) (*pb.QueryPublishItemResponse, error)
func (*PublishItemService) QueryPublishItem ¶
func (s *PublishItemService) QueryPublishItem(ctx context.Context, req *pb.QueryPublishItemRequest) (*pb.QueryPublishItemResponse, error)
func (*PublishItemService) QueryPublishItemVersion ¶
func (s *PublishItemService) QueryPublishItemVersion(ctx context.Context, req *pb.QueryPublishItemVersionRequest) (*pb.QueryPublishItemVersionResponse, error)
func (*PublishItemService) QueryPublishItemVersions ¶
func (s *PublishItemService) QueryPublishItemVersions(ctx context.Context, req *pb.QueryPublishItemVersionRequest) (*pb.QueryPublishItemVersionData, error)
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 (s *PublishItemService) UpdatePublishItem(ctx context.Context, req *pb.UpdatePublishItemRequest) (*pb.UpdatePublishItemResponse, error)
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.