Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ GO_VERSION := $(shell go version | awk '{print $$3}')

# 构建标志
LDFLAGS := -ldflags "\
-X 'github.com/zy84338719/filecodebox/internal/models.Version=$(VERSION)' \
-X 'github.com/zy84338719/filecodebox/internal/models.GitCommit=$(COMMIT)' \
-X 'github.com/zy84338719/filecodebox/internal/models.BuildTime=$(DATE)' \
-X 'github.com/zy84338719/filecodebox/internal/models/service.Version=$(VERSION)' \
-X 'github.com/zy84338719/filecodebox/internal/models/service.GitCommit=$(COMMIT)' \
-X 'github.com/zy84338719/filecodebox/internal/models/service.BuildTime=$(DATE)' \
-w -s"

# 默认目标
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.8.2
18 changes: 5 additions & 13 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
base:
name: FileCodeBox
description: 开箱即用的文件快传系统
keywords: ""
port: 12346
keywords: FileCodeBox, 文件快递柜, 口令传送箱, 匿名口令分享文本, 文件
port: 12345
host: 0.0.0.0
datapath: /Users/zhangyi/zy/FileCodeBox/data
production: false
Expand Down Expand Up @@ -44,8 +44,6 @@ mcp:
enablemcpserver: 0
mcpport: ""
mcphost: ""
notifytitle: ""
notifycontent: ""
ui:
themes_select: themes/2025
background: ""
Expand All @@ -54,15 +52,9 @@ ui:
User-agent: *
Disallow: /
show_admin_addr: 0
opacity: 0
themes_select: themes/2025
robots_text: |-
User-agent: *
Disallow: /
page_explain: 请勿上传或分享违法内容。根据《中华人民共和国网络安全法》、《中华人民共和国刑法》、《中华人民共和国治安管理处罚法》等相关规定。 传播或存储违法、违规内容,会受到相关处罚,严重者将承担刑事责任。本站坚决配合相关部门,确保网络内容的安全,和谐,打造绿色网络环境。
show_admin_addr: 0
opacity: 0
background: ""
opacity: 1
notify_title: ""
notify_content: ""
sys_start: ""
upload_minute: 0
upload_count: 0
Expand Down
13 changes: 13 additions & 0 deletions docs/RELEASE_NOTES/v1.8.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## v1.8.2 - 2025-09-22

Release: v1.8.2

Changes:

- 更新版本标识与 API 文档到 `1.8.2`
- 修改文件:`VERSION`, `main.go`, `internal/models/service/system.go`, `internal/handlers/api.go`, `docs/swagger.yaml`, `docs/swagger.json`, `docs/swagger-enhanced.yaml`

Notes:

- 构建与单元测试已在本地通过(`go build ./...`, `go test ./...`)。
- 依赖版本(`go.sum`)未更改。
7 changes: 5 additions & 2 deletions docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs

import "github.com/swaggo/swag"
import (
"github.com/swaggo/swag"
"github.com/zy84338719/filecodebox/internal/models/service"
)

const docTemplate = `{
"schemes": {{ marshal .Schemes }},
Expand Down Expand Up @@ -618,7 +621,7 @@ const docTemplate = `{

// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Version: service.Version,
Host: "localhost:12345",
BasePath: "/",
Schemes: []string{},
Expand Down
4 changes: 2 additions & 2 deletions docs/swagger-enhanced.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ swagger: "2.0"
info:
title: "FileCodeBox API"
description: "FileCodeBox 是一个用于文件分享和代码片段管理的 Web 应用程序"
version: "1.0"
version: "1.8.2"
termsOfService: "http://swagger.io/terms/"
contact:
name: "API Support"
Expand Down Expand Up @@ -69,7 +69,7 @@ paths:
example: "2025-09-11T10:00:00Z"
version:
type: "string"
example: "1.0.0"
example: "1.8.2"
uptime:
type: "string"
example: "2h30m15s"
Expand Down
6 changes: 3 additions & 3 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "MIT",
"url": "https://github.com/zy84338719/filecodebox/blob/main/LICENSE"
},
"version": "1.0"
"version": "1.8.2"
},
"host": "localhost:12345",
"basePath": "/",
Expand Down Expand Up @@ -553,7 +553,7 @@
},
"version": {
"type": "string",
"example": "1.0.0"
"example": "1.8.2"
}
}
},
Expand Down Expand Up @@ -608,4 +608,4 @@
"type": "basic"
}
}
}
}
4 changes: 2 additions & 2 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ definitions:
example: 2h30m15s
type: string
version:
example: 1.0.0
example: 1.8.2
type: string
type: object
handlers.SystemConfig:
Expand Down Expand Up @@ -57,7 +57,7 @@ info:
url: https://github.com/zy84338719/filecodebox/blob/main/LICENSE
termsOfService: http://swagger.io/terms/
title: FileCodeBox API
version: "1.0"
version: "1.8.2"
paths:
/api/config:
get:
Expand Down
18 changes: 13 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ require (
github.com/aws/aws-sdk-go-v2/config v1.27.27
github.com/aws/aws-sdk-go-v2/credentials v1.17.27
github.com/aws/aws-sdk-go-v2/service/s3 v1.58.3
github.com/gin-contrib/cors v1.4.0
github.com/gin-gonic/gin v1.8.2
github.com/gin-contrib/cors v1.6.0
github.com/gin-gonic/gin v1.9.1
github.com/golang-jwt/jwt/v4 v4.5.2
github.com/mattn/go-sqlite3 v1.14.32
github.com/robfig/cron/v3 v3.0.1
Expand Down Expand Up @@ -47,6 +47,10 @@ require (
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 // indirect
github.com/aws/smithy-go v1.20.3 // indirect
github.com/bytedance/sonic v1.11.2 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
github.com/chenzhuoyu/iasm v0.9.1 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gin-contrib/sse v1.1.0 // indirect
github.com/go-openapi/jsonpointer v0.22.0 // indirect
github.com/go-openapi/jsonreference v0.21.1 // indirect
Expand All @@ -65,30 +69,34 @@ require (
github.com/go-openapi/swag/yamlutils v0.24.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.11.2 // indirect
github.com/go-playground/validator/v10 v10.19.0 // indirect
github.com/go-sql-driver/mysql v1.8.1 // indirect
github.com/goccy/go-json v0.10.5 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jackc/pgx/v5 v5.2.0 // indirect
github.com/jackc/pgx/v5 v5.5.4 // indirect
github.com/jackc/puddle/v2 v2.2.1 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/mailru/easyjson v0.9.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.3.0 // indirect
golang.org/x/arch v0.7.0 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/net v0.23.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.35.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.7.0 // indirect
google.golang.org/protobuf v1.36.8 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Loading