# suspendService 暂停服务

● 接口说明
将水牌改为“暂停服务”,发起'service_status_changed'事件

● Typescript 类型参考

type ResBody = {
    resultCode: number, resultMessage: string, data: {}
}

suspendService(data?: {}, callback?: (res: ResBody)=>void): Promise<ResBody>

● 返回数据

参数 类型 必然存在 说明
res.resultCode String 0 正确返回,其它为错误返回
res.data Object res.resultCode===0 时,返回获得的信息
res.resultMessage String res.resultCode!==0 时,返回错误信息

● 示例

zwexplorer["Signboard"]["suspendService"]({}, (res) => {
  // 返回数据
});
// 或
zwexplorer["Signboard"]["suspendService"]().then((res) => {
  // 返回数据
});

# listStaff 返回设置好的所有的员工列表

● 接口说明
返回设置好的所有的员工列表

● Typescript 类型参考

type ResBody = {
    resultCode: number, resultMessage: string, data: []
}


listStaff(data?: {}, callback?: (res: ResBody)=>void): Promise<ResBody>

● 返回数据

参数 类型 必然存在 说明
res.resultCode String 0 正确返回,其它为错误返回
res.data Array res.resultCode===0 时,返回获得的信息
res.resultMessage String res.resultCode!==0 时,返回错误信息

● 示例

zwexplorer["Signboard"]["listStaff"]({}, (res) => {
  // 返回数据
});
// 或
zwexplorer["Signboard"]["listStaff"]().then((res) => {
  // 返回数据
});

# setCurrentStaff 设置当前员工

● 接口说明
设置当前员工

● Typescript 类型参考

type ResBody = {
    resultCode: number, resultMessage: string
}


setCurrentStaff(data?: {}, callback?: (res: ResBody)=>void): Promise<ResBody>

● 返回数据

参数 类型 必然存在 说明
res.resultCode String 0 正确返回,其它为错误返回
res.resultMessage String res.resultCode!==0 时,返回错误信息

● 示例

zwexplorer["Signboard"]["setCurrentStaff"]({}, (res) => {
  // 返回数据
});
// 或
zwexplorer["Signboard"]["setCurrentStaff"]().then((res) => {
  // 返回数据
});

# getCurrentStaff 获取当前的员工

● 接口说明
获取当前的员工

● Typescript 类型参考

type ResBody = {
    resultCode: number, resultMessage: string, data: {}
}


getCurrentStaff(data?: {}, callback?: (res: ResBody)=>void): Promise<ResBody>

● 返回数据

参数 类型 必然存在 说明
res.resultCode String 0 正确返回,其它为错误返回
res.data Object res.resultCode===0 时,返回获得的信息
res.resultMessage String res.resultCode!==0 时,返回错误信息

● 示例

zwexplorer["Signboard"]["getCurrentStaff"]({}, (res) => {
  // 返回数据
});
// 或
zwexplorer["Signboard"]["getCurrentStaff"]().then((res) => {
  // 返回数据
});

# getSignboardSettings 获取当前水牌的配置信息

● 接口说明
获取当前水牌的配置信息

● Typescript 类型参考

type ResBody = {
    resultCode: number, resultMessage: string, data: {}
}


getSignboardSettings(data?: {}, callback?: (res: ResBody)=>void): Promise<ResBody>

● 返回数据

参数 类型 必然存在 说明
res.resultCode String 0 正确返回,其它为错误返回
res.data Object res.resultCode===0 时,返回获得的信息
res.resultMessage String res.resultCode!==0 时,返回错误信息

● 示例

zwexplorer["Signboard"]["getSignboardSettings"]({}, (res) => {
  // 返回数据
});
// 或
zwexplorer["Signboard"]["getSignboardSettings"]().then((res) => {
  // 返回数据
});

# showHtmlMessage 在水牌内容区域显示 html 信息

● 接口说明
在水牌内容区域显示 html 信息

● Typescript 类型参考



showHtmlMessage(data?: {}, callback?: (res: ResBody)=>void): Promise<ResBody>

● 返回数据
无返回值

● 示例

zwexplorer["Signboard"]["showHtmlMessage"]({}, (res) => {});
// 或
zwexplorer["Signboard"]["showHtmlMessage"]().then((res) => {});

# showImageMessage 在水牌内容区域显示图片信息

● 接口说明
在水牌内容区域显示图片信息

● Typescript 类型参考



showImageMessage(data?: {}, callback?: (res: ResBody)=>void): Promise<ResBody>

● 返回数据
无返回值

● 示例

zwexplorer["Signboard"]["showImageMessage"]({}, (res) => {});
// 或
zwexplorer["Signboard"]["showImageMessage"]().then((res) => {});