智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LightingSystemApp-serial/.svn/pristine/e3/e375551dad61bd68248f8f6189b...

34 lines
644 B

3 years ago
/**
* @file 获取服务器时间
*/
declare namespace my {
interface IGetServerTimeSuccessResult {
/**
* 服务器时间的毫秒数
*/
readonly time: number;
}
interface IGetServerTimeOptions {
/**
* 调用成功的回调函数
*/
success?(res: IGetServerTimeSuccessResult): void;
/**
* 调用失败的回调函数
*/
fail?(): void;
/**
* 调用结束的回调函数(调用成功、失败都会执行)
*/
complete?(): void;
}
/**
* 获取当前服务器时间的毫秒数。
*/
function getServerTime(options: IGetServerTimeOptions): void;
}