server code 4/27

This commit is contained in:
袁智鸿
2026-04-27 10:35:03 +08:00
parent f0fa33cd67
commit 2ccbcd01c0
143 changed files with 5812 additions and 756 deletions
+16
View File
@@ -0,0 +1,16 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package pano
import (
"context"
"stackChan/api/pano/v1"
)
type IPanoV1 interface {
AddPano(ctx context.Context, req *v1.AddPanoReq) (res *v1.AddPanoRes, err error)
GetPanoList(ctx context.Context, req *v1.GetPanoListReq) (res *v1.GetPanoListRes, err error)
}
+27
View File
@@ -0,0 +1,27 @@
/*
SPDX-FileCopyrightText: 2026 M5Stack Technology CO LTD
SPDX-License-Identifier: MIT
*/
package v1
import (
"stackChan/internal/model"
"github.com/gogf/gf/v2/frame/g"
)
type AddPanoReq struct {
g.Meta `path:"/pano" method:"post" tags:"Pano" summary:"Pano add request"`
Url string `json:"url" v:"required" description:"Pano image url"`
}
type AddPanoRes struct {
Id int64 `json:"id"`
}
type GetPanoListReq struct {
g.Meta `path:"/pano" method:"get" tags:"Pano" summary:"Pano list"`
}
type GetPanoListRes []model.Pano