From 07ab5fee087f23c1e4e37d56a9e6d515517bc083 Mon Sep 17 00:00:00 2001 From: yangbowen <yangbowen@tsl3060.com> Date: Wed, 3 Apr 2024 15:39:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/deployment.xml | 14 ++ .idea/low-carbon-platform-php.iml | 13 ++ .idea/modules.xml | 8 + .idea/phpunit.xml | 11 + .idea/vcs.xml | 6 + .idea/workspace.xml | 125 ++++++++++++ .../Model/ResponseOpenAPITokensCountResult.md | 20 ++ docs/Model/TokenCountParam.md | 9 + docs/Model/TokensCountResult.md | 9 + .../ResponseOpenAPITokensCountResultTest.php | 189 ++++++++++++++++++ test/Model/TokenCountParamTest.php | 90 +++++++++ test/Model/TokensCountResultTest.php | 90 +++++++++ 12 files changed, 584 insertions(+) create mode 100644 .idea/deployment.xml create mode 100644 .idea/low-carbon-platform-php.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/phpunit.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 docs/Model/ResponseOpenAPITokensCountResult.md create mode 100644 docs/Model/TokenCountParam.md create mode 100644 docs/Model/TokensCountResult.md create mode 100644 test/Model/ResponseOpenAPITokensCountResultTest.php create mode 100644 test/Model/TokenCountParamTest.php create mode 100644 test/Model/TokensCountResultTest.php diff --git a/.idea/deployment.xml b/.idea/deployment.xml new file mode 100644 index 0000000..ee0a6e0 --- /dev/null +++ b/.idea/deployment.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="PublishConfigData" remoteFilesAllowedToDisappearOnAutoupload="false"> + <serverData> + <paths name="docker"> + <serverdata> + <mappings> + <mapping local="$PROJECT_DIR$" web="/" /> + </mappings> + </serverdata> + </paths> + </serverData> + </component> +</project> \ No newline at end of file diff --git a/.idea/low-carbon-platform-php.iml b/.idea/low-carbon-platform-php.iml new file mode 100644 index 0000000..877f80c --- /dev/null +++ b/.idea/low-carbon-platform-php.iml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module type="WEB_MODULE" version="4"> + <component name="NewModuleRootManager"> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" packagePrefix="OpenAPI\Client\" /> + <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" packagePrefix="OpenAPI\Client\Test\" /> + <sourceFolder url="file://$MODULE_DIR$/test/Api" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/test/Model" isTestSource="true" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + </component> +</module> \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..8126e1a --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/.idea/low-carbon-platform-php.iml" filepath="$PROJECT_DIR$/.idea/low-carbon-platform-php.iml" /> + </modules> + </component> +</project> \ No newline at end of file diff --git a/.idea/phpunit.xml b/.idea/phpunit.xml new file mode 100644 index 0000000..422c581 --- /dev/null +++ b/.idea/phpunit.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="PHPUnit"> + <option name="directories"> + <list> + <option value="$PROJECT_DIR$/test/Api" /> + <option value="$PROJECT_DIR$/test/Model" /> + </list> + </option> + </component> +</project> \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="" vcs="Git" /> + </component> +</project> \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..50729e1 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,125 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="AutoImportSettings"> + <option name="autoReloadType" value="SELECTIVE" /> + </component> + <component name="ChangeListManager"> + <list default="true" id="f6d0117d-22fc-446a-a3f7-79e1aa508ea5" name="Changes" comment="参数文件"> + <change afterPath="$PROJECT_DIR$/docs/Model/ResponseOpenAPITokensCountResult.md" afterDir="false" /> + <change afterPath="$PROJECT_DIR$/docs/Model/TokenCountParam.md" afterDir="false" /> + <change afterPath="$PROJECT_DIR$/docs/Model/TokensCountResult.md" afterDir="false" /> + </list> + <option name="SHOW_DIALOG" value="false" /> + <option name="HIGHLIGHT_CONFLICTS" value="true" /> + <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> + <option name="LAST_RESOLUTION" value="IGNORE" /> + </component> + <component name="ComposerSettings" notifyAboutMissingVendor="false" synchronizationState="SYNCHRONIZE"> + <pharConfigPath>$PROJECT_DIR$/composer.json</pharConfigPath> + <execution> + <phar pharPath="$PROJECT_DIR$/composer.phar" /> + </execution> + </component> + <component name="Git.Settings"> + <option name="PUSH_TAGS"> + <GitPushTagMode> + <option name="argument" value="--tags" /> + <option name="title" value="All" /> + </GitPushTagMode> + </option> + <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> + </component> + <component name="MarkdownSettingsMigration"> + <option name="stateVersion" value="1" /> + </component> + <component name="PhpWorkspaceProjectConfiguration" interpreter_name="PHP8.0" /> + <component name="ProjectColorInfo">{ + "customColor": "", + "associatedIndex": 6 +}</component> + <component name="ProjectId" id="2eZRE4IWa7gPUTXmZDOy8yp9zuE" /> + <component name="ProjectViewState"> + <option name="hideEmptyMiddlePackages" value="true" /> + <option name="showLibraryContents" value="true" /> + </component> + <component name="PropertiesComponent">{ + "keyToString": { + "RunOnceActivity.OpenProjectViewOnStart": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "WebServerToolWindowFactoryState": "false", + "git-widget-placeholder": "master", + "ignore.virus.scanning.warn.message": "true", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "settings.editor.selected.configurable": "reference.webide.settings.project.settings.php", + "vue.rearranger.settings.migration": "true" + } +}</component> + <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" /> + <component name="TaskManager"> + <task active="true" id="Default" summary="Default task"> + <changelist id="f6d0117d-22fc-446a-a3f7-79e1aa508ea5" name="Changes" comment="" /> + <created>1712109998194</created> + <option name="number" value="Default" /> + <option name="presentableId" value="Default" /> + <updated>1712109998194</updated> + <workItem from="1712109999299" duration="2573000" /> + <workItem from="1712112719178" duration="1373000" /> + <workItem from="1712122401269" duration="29000" /> + <workItem from="1712128553069" duration="69000" /> + </task> + <task id="LOCAL-00001" summary="新增统计token接口"> + <option name="closed" value="true" /> + <created>1712110130388</created> + <option name="number" value="00001" /> + <option name="presentableId" value="LOCAL-00001" /> + <option name="project" value="LOCAL" /> + <updated>1712110130388</updated> + </task> + <task id="LOCAL-00002" summary="新增统计token接口"> + <option name="closed" value="true" /> + <created>1712112106501</created> + <option name="number" value="00002" /> + <option name="presentableId" value="LOCAL-00002" /> + <option name="project" value="LOCAL" /> + <updated>1712112106501</updated> + </task> + <task id="LOCAL-00003" summary="新增统计token接口"> + <option name="closed" value="true" /> + <created>1712112345799</created> + <option name="number" value="00003" /> + <option name="presentableId" value="LOCAL-00003" /> + <option name="project" value="LOCAL" /> + <updated>1712112345799</updated> + </task> + <task id="LOCAL-00004" summary="新增统计token接口"> + <option name="closed" value="true" /> + <created>1712112490787</created> + <option name="number" value="00004" /> + <option name="presentableId" value="LOCAL-00004" /> + <option name="project" value="LOCAL" /> + <updated>1712112490787</updated> + </task> + <task id="LOCAL-00005" summary="参数文件"> + <option name="closed" value="true" /> + <created>1712112777402</created> + <option name="number" value="00005" /> + <option name="presentableId" value="LOCAL-00005" /> + <option name="project" value="LOCAL" /> + <updated>1712112777402</updated> + </task> + <option name="localTasksCounter" value="6" /> + <servers /> + </component> + <component name="TypeScriptGeneratedFilesManager"> + <option name="version" value="3" /> + </component> + <component name="VcsManagerConfiguration"> + <MESSAGE value="新增统计token接口" /> + <MESSAGE value="参数文件" /> + <option name="LAST_COMMIT_MESSAGE" value="参数文件" /> + </component> +</project> \ No newline at end of file diff --git a/docs/Model/ResponseOpenAPITokensCountResult.md b/docs/Model/ResponseOpenAPITokensCountResult.md new file mode 100644 index 0000000..0f7d9fb --- /dev/null +++ b/docs/Model/ResponseOpenAPITokensCountResult.md @@ -0,0 +1,20 @@ +# # ResponseOpenAPITokensCountResult + +## 属性 + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | **string** | 该消息发生的时间 | [optional] +**openid** | **string** | | [optional] +**payload** | [**\OpenAPI\Client\Model\TokensCountResult**](TokensCountResult.md) | | [optional] +**sign** | **string** | | [optional] +**charset** | **string** | | [optional] +**description** | **string** | | [optional] +**response_id** | **string** | 消息的唯一ID | [optional] +**err_code** | **int** | 该消息的错误码 | [optional] +**err_msg** | **string** | 错误消息描述 | [optional] +**sub_err** | **int** | 子错误的具体的代号 | [optional] +**sub_msg** | **string** | 子错误对应的提示消息 | [optional] +**sign_type** | **string** | | [optional] + +[[返回模型列表]](../../README.md#模型文档) [[返回API列表]](../../README.md#api端点文档) [[返回README]](../../README.md) diff --git a/docs/Model/TokenCountParam.md b/docs/Model/TokenCountParam.md new file mode 100644 index 0000000..184a560 --- /dev/null +++ b/docs/Model/TokenCountParam.md @@ -0,0 +1,9 @@ +# # TokenCountParam + +## 属性 + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **string** | 需要统计的内容 | + +[[返回模型列表]](../../README.md#模型文档) [[返回API列表]](../../README.md#api端点文档) [[返回README]](../../README.md) diff --git a/docs/Model/TokensCountResult.md b/docs/Model/TokensCountResult.md new file mode 100644 index 0000000..9a59006 --- /dev/null +++ b/docs/Model/TokensCountResult.md @@ -0,0 +1,9 @@ +# # TokensCountResult + +## 属性 + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input_tokens** | **int** | 输入文本对应的token数目。 | [optional] + +[[返回模型列表]](../../README.md#模型文档) [[返回API列表]](../../README.md#api端点文档) [[返回README]](../../README.md) diff --git a/test/Model/ResponseOpenAPITokensCountResultTest.php b/test/Model/ResponseOpenAPITokensCountResultTest.php new file mode 100644 index 0000000..77a0ffc --- /dev/null +++ b/test/Model/ResponseOpenAPITokensCountResultTest.php @@ -0,0 +1,189 @@ +<?php +/** + * ResponseOpenAPITokensCountResultTest + * + * PHP version 7.4 + * + * @category Class + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ + +/** + * 碳丝路数据开放平台API + * + * 碳丝路数据开放平台 + * + * The version of the OpenAPI document: 0.4.8 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 7.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Please update the test case below to test the model. + */ + +namespace OpenAPI\Client\Test\Model; + +use PHPUnit\Framework\TestCase; + +/** + * ResponseOpenAPITokensCountResultTest Class Doc Comment + * + * @category Class + * @description 消息载体对象 + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ +class ResponseOpenAPITokensCountResultTest extends TestCase +{ + + /** + * Setup before running any test case + */ + public static function setUpBeforeClass(): void + { + } + + /** + * Setup before running each test case + */ + public function setUp(): void + { + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + /** + * Test "ResponseOpenAPITokensCountResult" + */ + public function testResponseOpenAPITokensCountResult() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "time" + */ + public function testPropertyTime() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "openid" + */ + public function testPropertyOpenid() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "payload" + */ + public function testPropertyPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "sign" + */ + public function testPropertySign() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "charset" + */ + public function testPropertyCharset() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "description" + */ + public function testPropertyDescription() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "response_id" + */ + public function testPropertyResponseId() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "err_code" + */ + public function testPropertyErrCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "err_msg" + */ + public function testPropertyErrMsg() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "sub_err" + */ + public function testPropertySubErr() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "sub_msg" + */ + public function testPropertySubMsg() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "sign_type" + */ + public function testPropertySignType() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/TokenCountParamTest.php b/test/Model/TokenCountParamTest.php new file mode 100644 index 0000000..0d0e86c --- /dev/null +++ b/test/Model/TokenCountParamTest.php @@ -0,0 +1,90 @@ +<?php +/** + * TokenCountParamTest + * + * PHP version 7.4 + * + * @category Class + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ + +/** + * 碳丝路数据开放平台API + * + * 碳丝路数据开放平台 + * + * The version of the OpenAPI document: 0.4.8 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 7.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Please update the test case below to test the model. + */ + +namespace OpenAPI\Client\Test\Model; + +use PHPUnit\Framework\TestCase; + +/** + * TokenCountParamTest Class Doc Comment + * + * @category Class + * @description token统计 + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ +class TokenCountParamTest extends TestCase +{ + + /** + * Setup before running any test case + */ + public static function setUpBeforeClass(): void + { + } + + /** + * Setup before running each test case + */ + public function setUp(): void + { + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + /** + * Test "TokenCountParam" + */ + public function testTokenCountParam() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "content" + */ + public function testPropertyContent() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/TokensCountResultTest.php b/test/Model/TokensCountResultTest.php new file mode 100644 index 0000000..6bcb7d0 --- /dev/null +++ b/test/Model/TokensCountResultTest.php @@ -0,0 +1,90 @@ +<?php +/** + * TokensCountResultTest + * + * PHP version 7.4 + * + * @category Class + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ + +/** + * 碳丝路数据开放平台API + * + * 碳丝路数据开放平台 + * + * The version of the OpenAPI document: 0.4.8 + * Generated by: https://openapi-generator.tech + * OpenAPI Generator version: 7.0.1 + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Please update the test case below to test the model. + */ + +namespace OpenAPI\Client\Test\Model; + +use PHPUnit\Framework\TestCase; + +/** + * TokensCountResultTest Class Doc Comment + * + * @category Class + * @description token统计信息 + * @package OpenAPI\Client + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ +class TokensCountResultTest extends TestCase +{ + + /** + * Setup before running any test case + */ + public static function setUpBeforeClass(): void + { + } + + /** + * Setup before running each test case + */ + public function setUp(): void + { + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + /** + * Test "TokensCountResult" + */ + public function testTokensCountResult() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "input_tokens" + */ + public function testPropertyInputTokens() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +}