书籍列表接口新增参数
This commit is contained in:
16
api/system/system.go
Normal file
16
api/system/system.go
Normal file
@ -0,0 +1,16 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package system
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"server/api/system/v1"
|
||||
)
|
||||
|
||||
type ISystemV1 interface {
|
||||
SystemSave(ctx context.Context, req *v1.SystemSaveReq) (res *v1.SystemSaveRes, err error)
|
||||
SystemVersion(ctx context.Context, req *v1.SystemVersionReq) (res *v1.SystemVersionRes, err error)
|
||||
}
|
||||
19
api/system/v1/system.go
Normal file
19
api/system/v1/system.go
Normal file
@ -0,0 +1,19 @@
|
||||
package v1
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type SystemSaveReq struct {
|
||||
g.Meta `path:"/system/save" method:"post" tags:"Backend/System" sm:"(管理员)保存系统设置"`
|
||||
Key string
|
||||
Value string
|
||||
}
|
||||
type SystemSaveRes struct {
|
||||
}
|
||||
type SystemVersionReq struct {
|
||||
g.Meta `path:"/system/version" method:"get" tags:"APP/System" sm:"(访客、用户、管理员)获取版本信息"`
|
||||
}
|
||||
|
||||
type SystemVersionRes struct {
|
||||
Ios map[string]string `json:"ios"`
|
||||
Android map[string]string `json:"android"`
|
||||
}
|
||||
Reference in New Issue
Block a user