getPromptPolishCount(data?: GetPromptPolishCountParams)

版本要求:
@tuya-miniapp/cloud-api≥1.7.0

描述

查询今日润色次数

参数

参数类型必填说明
否请求参数

返回值

类型:Promise<GetPromptPolishCountResult>
GetPromptPolishCountResult

引用对象

interfaceGetPromptPolishCountResult今日润色次数
属性类型描述
usedCountnumber已使用次数
totalCountnumber每日上限

示例代码

请求示例

import { getPromptPolishCount } from '@tuya-miniapp/cloud-api';

getPromptPolishCount({})
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error('查询今日润色次数失败:', error);
  });

返回示例

{ "usedCount": 2, "totalCount": 10 }