mirror of
https://github.com/ayflying/p2p.git
synced 2026-03-04 17:29:22 +00:00
增加上传与接收文件
This commit is contained in:
15
api/system/system.go
Normal file
15
api/system/system.go
Normal 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
11
api/system/v1/update.go
Normal 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 {
|
||||
}
|
||||
Reference in New Issue
Block a user