import { TextStyle, ViewStyle, EmitterSubscription } from 'react-native'; export interface IbaseFaceObject { [keys: string]: any } export interface IbaseFlagResult { flagSuccess: boolean errorMessage?: string } export interface IbaseHtmlSource { scriptFile: string headerText:string bodyContent: string } export interface IbasePropertyExtend { /** * 展示内容 * * @type {string} * @memberof IbasePropertyExtend */ pText?: string /** * 图标名称 * * @type {string} * @memberof IbasePropertyExtend */ pName?: string /** * 颜色 * * @type {string} * @memberof IbasePropertyExtend */ pColor?: string /** * 订阅事件 */ pSubscribe?: string /** * 展示规则 * * @type {string} * @memberof IbasePropertyExtend */ pShow?: string /** * 分组标记 * * @type {string} * @memberof IbasePropertyExtend */ pFamily?: string } export interface IbaseStyleExtend { styleMainView?: ViewStyle styleMainText?: TextStyle styleMainIcon?: TextStyle styleMainTouch?: ViewStyle styleModalBox?: ViewStyle styleModalContent?: ViewStyle styleLayoutTop?: ViewStyle styleLayoutCenter?: ViewStyle styleHeaderBox?: ViewStyle styleHeaderText?: TextStyle styleItemBox?: ViewStyle styleItemTouch?: ViewStyle styleItemIcon?: TextStyle styleItemText?: TextStyle styleItemActive?: ViewStyle styleInputBox?: ViewStyle styleInputText?: TextStyle } /** * 事件的通知 * * @export * @interface IbaseDeviceEvent */ export interface IbaseDeviceEvent { /** * 事件的值 * * @type {string} * @memberof IbaseDeviceEvent */ eventValue?: string /** * 事件的对象 * * @type {*} * @memberof IbaseDeviceEvent */ eventObject?: any /** * 事件的状态标记 * * @type {number} * @memberof IbaseDeviceEvent */ eventState?: number /** * 事件的数组 * * @type {any[]} * @memberof IbaseDeviceEvent */ eventArray?: any[] } export interface IbasePlusProp { plusListSource?: Function plusMacroName?: string plusHtmlSource: () => IbaseHtmlSource } export interface IbaseEventExpand { onValueChange?: (item) => void onPress?: (event) => void } export interface IclassEvent { subscription: EmitterSubscription clearSubscription: () => boolean } export type TitemShowType = "" | "hidden" | "book" | "edit"; export interface IprojectDefine { voipKey: string voipServer: string ossAccessKeyId: string ossAccessKeySecret: string ossBunkId: string ossServerUrl: string ossImageUrl: string /** * codepush的打包版本号 该版本号不同于实际内容的版本号 * * @type {string} * @memberof IprojectDefine */ codeVersionName: string } export interface IuserInfo { /** * 登录名 * * @type {string} * @memberof IuserInfo */ loginName: string /** * 用户编号 * * @type {string} * @memberof IuserInfo */ userCode: string /** * 用户显示名称 * * @type {string} * @memberof IuserInfo */ userShowName: string } export interface IstructBaseKey { zzzkey: string } export interface IstructDataItem extends IstructBaseKey { text: string parent: string enable: string } export interface IstructLogInfo extends IstructBaseKey { dateTime: string, logType: string, logCode: string, logInfo: string } export interface IstructSystemVariable extends IstructBaseKey { jsonData: string updateTime: string } export interface IstructBaseForm { /** * form编号 form的唯一编号 * * @type {string} * @memberOf istructFormData */ formCode?: string /** * 数据状态 1为可显示数据 * * @type {string} * @memberOf istructFormData */ dataState?: string /** * 同步时间 最后一次同步的时间 客户端上发和服务端获取的时间 * * @type {string} * @memberOf istructFormData */ dataTimestamp?: string /** * 服务端数据编号 该编号为空标记未同步到服务端 * * @type {string} * @memberOf istructFormData */ serverCode?: string /** * 所属父编号 * * @type {string} * @memberOf IstructFormData */ leaderCode?: string /** * 客户端数据状态 小于100为同步数据的状态 大于100为其他同步状态 * * @type {string} * @memberOf IstructFormData */ clientState?: string } export interface IstructFormData extends IstructBaseKey, IstructBaseForm { /** * 创建时间 数据创建时间 * * @type {string} * @memberOf istructFormData */ createTime?: string /** * 创建时间 数据创建时间 * * @type {string} * @memberOf istructFormData */ createUser?: string /** * 更新时间 数据的更新时间 * * @type {string} * @memberOf istructFormData */ updateTime?: string /** * 数据修改时间戳 每次修改时都会更新此字段 * * @type {string} * @memberOf IstructFormData */ clientTimestamp: string /** * 数据 * * @type {string} * @memberOf istructFormData */ jsonData?: string } export interface IvalueFormData extends IstructBaseForm { value?: IbaseFaceObject } export interface IDataDetail { key: string data: IbaseFaceObject detailLeader: string createTime: string } export interface IdownloadFile { title: string desc: string file: string }