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.
29 lines
607 B
29 lines
607 B
export type AddParams = {
|
|
name : string, //闹铃名称
|
|
weekday : string, //重复星期
|
|
hour : number, //闹铃时
|
|
minutes : number, //分钟
|
|
ringtone : string, //铃声
|
|
}
|
|
export type DeleteParams = {
|
|
name : string, //名称
|
|
}
|
|
|
|
export type Results = {
|
|
code : number,
|
|
data : string | null,
|
|
msg : string,
|
|
}
|
|
|
|
export type AddOptions = {
|
|
params : AddParams;
|
|
success : (res : Results) => void;
|
|
fail : (err : Results) => void;
|
|
complete : () => void;
|
|
}
|
|
export type DeleteOptions = {
|
|
params : DeleteParams;
|
|
success : (res : Results) => void;
|
|
fail : (err : Results) => void;
|
|
complete : () => void;
|
|
} |