2022-06-08 11:57:35 +08:00
|
|
|
|
//
|
|
|
|
|
// FATAppletInfo.h
|
|
|
|
|
// FinApplet
|
|
|
|
|
//
|
|
|
|
|
// Created by Haley on 2019/3/27.
|
|
|
|
|
// Copyright © 2019 finogeeks. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
2022-10-19 12:51:03 +08:00
|
|
|
|
#import <UIKit/UIKit.h>
|
2022-06-08 11:57:35 +08:00
|
|
|
|
#import "FATConstant.h"
|
|
|
|
|
|
|
|
|
|
@interface FATAppletSimpleInfo : NSObject
|
|
|
|
|
/// 小程序id
|
|
|
|
|
@property (nonatomic, copy) NSString *appId;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
@interface FATAppletInfo : NSObject
|
|
|
|
|
|
|
|
|
|
/// 小程序id
|
|
|
|
|
@property (nonatomic, copy) NSString *appId;
|
|
|
|
|
|
|
|
|
|
/// 小程序开发者userId
|
|
|
|
|
@property (nonatomic, copy) NSString *userId;
|
|
|
|
|
|
2022-10-19 12:51:03 +08:00
|
|
|
|
/// 当前用户id,小程序缓存信息会存储在以userId命名的不同目录下。
|
|
|
|
|
@property (nonatomic, copy) NSString *currentUserId;
|
|
|
|
|
|
2022-06-08 11:57:35 +08:00
|
|
|
|
/// 小程序的机构id
|
|
|
|
|
@property (nonatomic, copy) NSString *groupId;
|
|
|
|
|
|
2022-10-19 12:51:03 +08:00
|
|
|
|
/// 小程序图标的地址
|
2022-06-08 11:57:35 +08:00
|
|
|
|
@property (nonatomic, copy) NSString *appAvatar;
|
|
|
|
|
|
2022-10-19 12:51:03 +08:00
|
|
|
|
/// 离线小程序(本地小程序)设置的图标
|
|
|
|
|
@property (nonatomic, strong) UIImage *logoImage;
|
|
|
|
|
|
2022-06-08 11:57:35 +08:00
|
|
|
|
/// 小程序名称
|
|
|
|
|
@property (nonatomic, copy) NSString *appTitle;
|
|
|
|
|
|
|
|
|
|
/// 小程序描述
|
|
|
|
|
@property (nonatomic, copy) NSString *appDescription;
|
|
|
|
|
|
|
|
|
|
/// 小程序版本号
|
|
|
|
|
@property (nonatomic, copy) NSString *appVersion;
|
|
|
|
|
|
|
|
|
|
/// 小程序封面图
|
|
|
|
|
@property (nonatomic, copy) NSString *appThumbnail;
|
|
|
|
|
|
|
|
|
|
/// 小程序版本信息
|
|
|
|
|
@property (nonatomic, copy) NSString *versionDescription;
|
|
|
|
|
|
|
|
|
|
/// 小程序主体信息(机构名称)
|
|
|
|
|
@property (nonatomic, copy) NSString *groupName;
|
|
|
|
|
|
|
|
|
|
/// 小程序是否正在灰度
|
|
|
|
|
@property (nonatomic, assign) BOOL isGrayRelease;
|
|
|
|
|
|
|
|
|
|
/// 小程序版本索引
|
|
|
|
|
@property (nonatomic, strong) NSNumber *sequence;
|
|
|
|
|
|
|
|
|
|
/// 小程序是否已安装 (其实类似收藏)
|
|
|
|
|
@property (nonatomic, assign) BOOL installed;
|
|
|
|
|
|
|
|
|
|
/// 服务器地址
|
|
|
|
|
@property (nonatomic, copy) NSString *apiServer;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
小程序启动时的启动参数
|
|
|
|
|
*/
|
|
|
|
|
@property (nonatomic, copy) NSDictionary *startParams;
|
|
|
|
|
|
2022-10-19 12:51:03 +08:00
|
|
|
|
/**
|
|
|
|
|
小程序关联的微信信息
|
|
|
|
|
示例:
|
|
|
|
|
{
|
|
|
|
|
phoneUrl = "pages/phone/index";//获取用户手机时的授权页面
|
|
|
|
|
profileUrl = "pages/profile/index";//获取用户信息时的授权页面
|
|
|
|
|
wechatOriginId = "gh_13538b2951a0";//关联的微信id
|
|
|
|
|
}
|
|
|
|
|
需要先到小程序管理->我的小程序->详情->第三方管理填写关联的微信信息
|
|
|
|
|
*/
|
|
|
|
|
@property (nonatomic, copy) NSDictionary *wechatLoginInfo;
|
|
|
|
|
|
2022-06-08 11:57:35 +08:00
|
|
|
|
/**
|
|
|
|
|
* 小程序类型(线上版、体验版、临时版、审核版、开发版)
|
|
|
|
|
*/
|
|
|
|
|
@property (nonatomic, assign, readonly) FATAppletVersionType appletVersionType;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
小程序启动时使用的加密串
|
|
|
|
|
注意:使用加密串打开的方式打开小程序才有,否则为nil
|
|
|
|
|
*/
|
|
|
|
|
@property (nonatomic, copy) NSString *cryptInfo;
|
|
|
|
|
|
2022-10-19 12:51:03 +08:00
|
|
|
|
/**
|
|
|
|
|
自定义的scheme数组
|
|
|
|
|
*/
|
|
|
|
|
@property (nonatomic, strong) NSArray<NSString *> *schemes;
|
|
|
|
|
|
|
|
|
|
//权限提示
|
|
|
|
|
|
2022-06-08 11:57:35 +08:00
|
|
|
|
- (NSString *)appletVersionTypeName;
|
2022-10-19 12:51:03 +08:00
|
|
|
|
- (NSString *)appletVersionTypeEnv;
|
|
|
|
|
|
|
|
|
|
|
2022-06-08 11:57:35 +08:00
|
|
|
|
|
|
|
|
|
@end
|