Commit 6ef66997 authored by 梁俊杰's avatar 梁俊杰

Initial commit

parents
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ComposerJsonPluginSettings">
<unboundedVersionInspectionSettings>
<excludedPackages />
</unboundedVersionInspectionSettings>
<customRepositories />
<composerUpdateOptions />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/meibuyu.iml" filepath="$PROJECT_DIR$/.idea/meibuyu.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="6a4456b5-3205-497d-b3c2-8decb8896845" name="Default Changelist" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<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="FUSProjectUsageTrigger">
<session id="377102907">
<usages-collector id="statistics.lifecycle.project">
<counts>
<entry key="project.open.time.0" value="1" />
<entry key="project.opened" value="1" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.open">
<counts>
<entry key="LICENSE" value="2" />
<entry key="json" value="3" />
<entry key="md" value="2" />
<entry key="php" value="25" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.open">
<counts>
<entry key="Markdown" value="2" />
<entry key="PHP" value="25" />
<entry key="PLAIN_TEXT" value="2" />
<entry key="composer.json" value="3" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.edit">
<counts>
<entry key="LICENSE" value="16" />
<entry key="dummy" value="13" />
<entry key="json" value="2" />
<entry key="md" value="144" />
<entry key="php" value="210" />
<entry key="txt" value="6" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="Markdown" value="144" />
<entry key="PHP" value="210" />
<entry key="PLAIN_TEXT" value="35" />
<entry key="composer.json" value="2" />
</counts>
</usages-collector>
<usages-collector id="statistics.php.new.class">
<counts>
<entry key="PHP Class.type" value="1" />
<entry key="PHP Interface.type" value="13" />
</counts>
</usages-collector>
</session>
</component>
<component name="FileEditorManager">
<leaf>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="195">
<caret line="13" column="1" lean-forward="true" selection-start-line="13" selection-start-column="1" selection-end-line="13" selection-end-column="1" />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/LICENSE">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret column="31" selection-start-column="24" selection-end-column="31" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/composer.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="15">
<caret line="1" column="26" selection-start-line="1" selection-start-column="13" selection-end-line="1" selection-end-column="26" />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/LICENSE" />
<option value="$PROJECT_DIR$/composer.json" />
<option value="$PROJECT_DIR$/src/Category/CategoryInterface.php" />
<option value="$PROJECT_DIR$/src/SiteInterface.php" />
<option value="$PROJECT_DIR$/src/ProductInterface.php" />
<option value="$PROJECT_DIR$/src/MessageInterface.php" />
<option value="$PROJECT_DIR$/README.md" />
</list>
</option>
</component>
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsGulpfileManager">
<detection-done>true</detection-done>
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="32" />
<option name="y" value="25" />
<option name="width" value="1680" />
<option name="height" value="955" />
</component>
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="meibuyu" type="b2602c69:ProjectViewProjectNode" />
<item name="meibuyu" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="settings.editor.selected.configurable" value="preferences.keymap" />
</component>
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/src" />
</key>
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/src" />
<recent name="$PROJECT_DIR$" />
</key>
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="SvnConfiguration">
<configuration>$USER_HOME$/.subversion</configuration>
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="6a4456b5-3205-497d-b3c2-8decb8896845" name="Default Changelist" comment="" />
<created>1574067426239</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1574067426239</updated>
<workItem from="1574067427423" duration="4931000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="4931000" />
</component>
<component name="ToolWindowManager">
<frame x="0" y="23" width="1680" height="954" extended-state="6" />
<editor active="true" />
<layout>
<window_info id="Favorites" side_tool="true" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24969475" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="bottom" id="Docker" />
<window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
<window_info anchor="bottom" id="Terminal" weight="0.33062646" />
<window_info anchor="bottom" id="Event Log" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" weight="0.32946634" />
<window_info anchor="bottom" id="Run" order="2" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="right" id="Database" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/TeamInterface.php">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/src/SupplierInterface.php">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/src/SizeInterface.php">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/src/ProductChildInterface.php">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/src/ProductInterface.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="45">
<caret line="9" column="17" selection-start-line="9" selection-start-column="17" selection-end-line="9" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/SiteInterface.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="90">
<caret line="12" column="9" selection-start-line="12" selection-end-line="12" selection-end-column="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/MessageInterface.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="90">
<caret line="12" column="9" selection-start-line="12" selection-start-column="9" selection-end-line="12" selection-end-column="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/MaterialInterface.php">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/src/FactoryInterface.php">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/src/CategoryInterface.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="30">
<caret line="8" column="11" selection-start-line="8" selection-start-column="11" selection-end-line="8" selection-end-column="11" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/DepartmentInterface.php">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/src/LogisticsInterface.php">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/src/PermissionInterface.php">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/src/RoleInterface.php">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/src/UserInterface.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="90">
<caret line="12" column="23" lean-forward="true" selection-start-line="12" selection-start-column="23" selection-end-line="12" selection-end-column="23" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/LICENSE">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret column="31" selection-start-column="24" selection-end-column="31" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/composer.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="15">
<caret line="1" column="26" selection-start-line="1" selection-start-column="13" selection-end-line="1" selection-end-column="26" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="195">
<caret line="13" column="1" lean-forward="true" selection-start-line="13" selection-start-column="1" selection-end-line="13" selection-end-column="1" />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
Copyright (c) 2006-2019 meibuyu library
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# Meibuyu Library
美不语微服务官方接口库
### 1、如何使用
在使用的项目下的composer.json 加入以下内容
``` "repositories": {
"meibuyu/micro": {
"type": "path",
"url": "d:/workspace/biubiubiu",#本库的具体地址,随意找个地方git clone下来
"options": {
"symlink": true
}
},
}
```
然后在使用的项目下执行
```
composer require meibuyu/micro @dev
```
{
"name": "meibuyu/micro",
"description": "美不语微服务公共接口库",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "梁俊杰",
"email": "blithe8787@163.com"
}
],
"require": {},
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"meibuyu\\micro\\": "src/"
}
}
}
<?php
/**
* Created by PhpStorm.
* UserInterface: 梁俊杰
* Date: 2019/11/18
* Time: 17:15
* Description:
*/
namespace Meibuyu\Micro;
interface CategoryInterface
{
/**
* 新增品类
* @param array $attribute
* @return bool
*/
public function add($attribute);
/**
* 更新品类
* @param array $attribute
* @param int $id
* @return bool
*/
public function update($attribute, $id);
public function delete($id);
}
<?php
/**
* Created by PhpStorm.
* User: 梁俊杰
* Date: 2019/11/19
* Time: 08:44
* Description:
*/
namespace Meibuyu\Micro;
interface DepartmentInterface
{
}
<?php
/**
* Created by PhpStorm.
* User: 梁俊杰
* Date: 2019/11/19
* Time: 08:43
* Description:
*/
namespace Meibuyu\Micro;
interface FactoryInterface
{
}
<?php
/**
* Created by PhpStorm.
* User: 梁俊杰
* Date: 2019/11/19
* Time: 08:42
* Description:
*/
namespace Meibuyu\Micro;
interface LogisticsInterface
{
}
<?php
/**
* Created by PhpStorm.
* User: 梁俊杰
* Date: 2019/11/19
* Time: 08:42
* Description:
*/
namespace Meibuyu\Micro;
interface MaterialInterface
{
}
<?php
/**
* Created by PhpStorm.
* User: 梁俊杰
* Date: 2019/11/19
* Time: 08:41
* Description:
*/
namespace Meibuyu\Micro;
interface MessageInterface
{
}
<?php
/**
* Created by PhpStorm.
* User: 梁俊杰
* Date: 2019/11/19
* Time: 08:41
* Description:
*/
namespace Meibuyu\Micro;
interface PermissionInterface
{
}
<?php
/**
* Created by PhpStorm.
* User: 梁俊杰
* Date: 2019/11/19
* Time: 08:40
* Description:
*/
namespace Meibuyu\Micro;
interface ProductChildInterface
{
}
<?php
/**
* Created by PhpStorm.
* UserInterface: 梁俊杰
* Date: 2019/11/18
* Time: 17:15
* Description:
*/
namespace Meibuyu\Micro;
interface ProductInterface
{
/**
* 新增品类
* @param array $attribute
* @return bool
*/
public function add($attribute);
/**
* 更新品类
* @param array $attribute
* @param int $id
* @return bool
*/
public function update($attribute, $id);
public function delete($id);
}
<?php
/**
* Created by PhpStorm.
* User: 梁俊杰
* Date: 2019/11/19
* Time: 08:39
* Description:
*/
namespace Meibuyu\Micro;
interface RoleInterface
{
}
<?php
/**
* Created by PhpStorm.
* User: 梁俊杰
* Date: 2019/11/19
* Time: 08:38
* Description:
*/
namespace Meibuyu\Micro;
interface SiteInterface
{
}
<?php
/**
* Created by PhpStorm.
* User: 梁俊杰
* Date: 2019/11/19
* Time: 08:38
* Description:
*/
namespace Meibuyu\Micro;
interface SizeInterface
{
}
<?php
/**
* Created by PhpStorm.
* User: 梁俊杰
* Date: 2019/11/19
* Time: 08:37
* Description:
*/
namespace Meibuyu\Micro;
interface SupplierInterface
{
}
<?php
/**
* Created by PhpStorm.
* User: 梁俊杰
* Date: 2019/11/19
* Time: 08:37
* Description:
*/
namespace Meibuyu\Micro;
interface TeamInterface
{
}
<?php
/**
* Created by PhpStorm.
* UserInterface: 梁俊杰
* Date: 2019/11/19
* Time: 08:36
* Description:
*/
namespace Meibuyu\Micro;
interface UserInterface
{
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment