feat: ready for ItemApi
This commit is contained in:
+5
@@ -1,6 +1,11 @@
|
|||||||
<component name="InspectionProjectProfileManager">
|
<component name="InspectionProjectProfileManager">
|
||||||
<profile version="1.0">
|
<profile version="1.0">
|
||||||
<option name="myName" value="Project Default" />
|
<option name="myName" value="Project Default" />
|
||||||
|
<inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
||||||
|
<Languages>
|
||||||
|
<language minSize="49" name="Kotlin" />
|
||||||
|
</Languages>
|
||||||
|
</inspection_tool>
|
||||||
<inspection_tool class="PyShadowingBuiltinsInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
<inspection_tool class="PyShadowingBuiltinsInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
||||||
<option name="ignoredNames">
|
<option name="ignoredNames">
|
||||||
<list>
|
<list>
|
||||||
|
|||||||
@@ -144,7 +144,7 @@
|
|||||||
|
|
||||||
#### 认证方式
|
#### 认证方式
|
||||||
|
|
||||||
所有 API 均使用 **JWT 认证**(除了需要特殊处理的端点):
|
所有 API 均使用 **JWT 认证**(除了需要特殊处理的端点)
|
||||||
|
|
||||||
```
|
```
|
||||||
Authorization: Bearer <token>
|
Authorization: Bearer <token>
|
||||||
@@ -152,7 +152,7 @@ Authorization: Bearer <token>
|
|||||||
|
|
||||||
## 数据库结构
|
## 数据库结构
|
||||||
|
|
||||||
[schema.sql](./schema.sql)。
|
[schema.sql](./schema.sql)
|
||||||
|
|
||||||
- users (系统用户/认证信息)
|
- users (系统用户/认证信息)
|
||||||
- departments (组织/部门)
|
- departments (组织/部门)
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
package club.itstudio.itmanager.service.v1
|
||||||
|
|
||||||
|
import club.itstudio.itmanager.entity.dto.Attachment
|
||||||
|
import club.itstudio.itmanager.entity.dto.Category
|
||||||
|
import club.itstudio.itmanager.entity.dto.Item
|
||||||
|
import club.itstudio.itmanager.entity.dto.ItemTransaction
|
||||||
|
import club.itstudio.itmanager.service.AttachmentService
|
||||||
|
import club.itstudio.itmanager.service.CategoryService
|
||||||
|
import club.itstudio.itmanager.service.ItemService
|
||||||
|
import club.itstudio.itmanager.service.ItemTransactionService
|
||||||
|
import club.itstudio.itmanager.utils.Const
|
||||||
|
import club.itstudio.itmanager.utils.DateUtils.getCurrentDateTime
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page
|
||||||
|
import org.slf4j.LoggerFactory
|
||||||
|
import org.springframework.beans.factory.annotation.Value
|
||||||
|
import org.springframework.http.codec.multipart.FilePart
|
||||||
|
import org.springframework.stereotype.Service
|
||||||
|
import reactor.core.publisher.Mono
|
||||||
|
import reactor.core.scheduler.Schedulers
|
||||||
|
import java.io.IOException
|
||||||
|
import java.nio.file.Files
|
||||||
|
import java.nio.file.Paths
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
|
@Service
|
||||||
|
class ItemsApiService
|
||||||
@@ -42,3 +42,5 @@ app:
|
|||||||
count: 1000
|
count: 1000
|
||||||
limit-time: 3
|
limit-time: 3
|
||||||
ban-time: 60
|
ban-time: 60
|
||||||
|
file:
|
||||||
|
upload-path: ./data/upload/
|
||||||
Reference in New Issue
Block a user