增加上传与接收文件

This commit is contained in:
2025-10-23 19:05:16 +08:00
parent 329384d8ef
commit 10c349b82f
12 changed files with 173 additions and 14 deletions

15
api/system/system.go Normal file
View File

@@ -0,0 +1,15 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package system
import (
"context"
"github.com/ayflying/p2p/api/system/v1"
)
type ISystemV1 interface {
Update(ctx context.Context, req *v1.UpdateReq) (res *v1.UpdateRes, err error)
}

11
api/system/v1/update.go Normal file
View File

@@ -0,0 +1,11 @@
package v1
import "github.com/gogf/gf/v2/frame/g"
type UpdateReq struct {
g.Meta `path:"/system/update" tags:"system" method:"get" sm:"更新服务端"`
Url string `json:"url" dc:"更新地址"`
Version string `json:"version" dc:"当前版本"`
}
type UpdateRes struct {
}