mirror of
https://github.com/m5stack/StackChan.git
synced 2026-04-29 03:44:24 +00:00
feat(server): deliver major backend expansion with v2 APIs, AI integration, and realtime infrastructure
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
/*
|
||||
SPDX-FileCopyrightText: 2026 M5Stack Technology CO LTD
|
||||
SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
+10
-13
@@ -13,9 +13,8 @@ import (
|
||||
|
||||
type CreatePostReq struct {
|
||||
g.Meta `path:"/post/add" method:"post" tags:"Post" summary:"Post create request"`
|
||||
Mac string `json:"mac" v:"required" description:"Mac address"`
|
||||
ContentText string `json:"content_text" v:"required" description:"Content text"`
|
||||
ContentImage string `json:"content_image" v:"required" description:"Content image"`
|
||||
ContentImage string `json:"content_image" description:"Content image"`
|
||||
}
|
||||
|
||||
type CreatePostRes struct {
|
||||
@@ -24,8 +23,8 @@ type CreatePostRes struct {
|
||||
|
||||
type GetPostReq struct {
|
||||
g.Meta `path:"/post/get" method:"get" tags:"Post" summary:"Post get request"`
|
||||
Page int `json:"page" v:"required#Page不能为空" description:"页码"`
|
||||
PageSize int `json:"pageSize" v:"required#每页数量不能为空" description:"每页条数"`
|
||||
Page int `json:"page" v:"required#Page cannot be empty" description:"Page number"`
|
||||
PageSize int `json:"pageSize" v:"required#Page size cannot be empty" description:"Items per page"`
|
||||
}
|
||||
|
||||
type GetPostRes []model.Post
|
||||
@@ -39,9 +38,8 @@ type DeletePostRes string
|
||||
|
||||
type CreatePostCommentReq struct {
|
||||
g.Meta `path:"/post/comment/create" method:"post" tags:"Post" summary:"Post create comment"`
|
||||
Mac string `json:"mac" v:"required" description:"Mac address"`
|
||||
PostId int64 `json:"postId" v:"required" summary:"Post comment id"`
|
||||
Content string `json:"content" description:"评论内容"`
|
||||
Content string `json:"content" description:"Comment content"`
|
||||
}
|
||||
|
||||
type CreatePostCommentRes struct {
|
||||
@@ -49,19 +47,18 @@ type CreatePostCommentRes struct {
|
||||
}
|
||||
|
||||
type DeletePostCommentReq struct {
|
||||
g.Meta `path:"/post/comment/delete" method:"post" tags:"Post" summary:"Post delete comment"`
|
||||
Mac string `json:"mac" v:"required" description:"Mac address"`
|
||||
Id int `json:"id" summary:"Post comment id"`
|
||||
g.Meta `path:"/post/comment/delete" method:"delete" tags:"Post" summary:"Post delete comment"`
|
||||
PostId int64 `json:"postId" v:"required" summary:"Post comment id"`
|
||||
CommentId int `json:"commentId" v:"required" summary:"Post comment id"`
|
||||
}
|
||||
|
||||
type DeletePostCommentRes struct{}
|
||||
|
||||
type GetPostCommentReq struct {
|
||||
g.Meta `path:"/post/comment/get" method:"get" tags:"Post" summary:"Post get comment"`
|
||||
PostId int64 `json:"postId" summary:"Post comment id"`
|
||||
Mac string `json:"mac" v:"required" description:"Mac address"`
|
||||
Page int `json:"page" summary:"Post comment page"`
|
||||
PageSize int `json:"pageSize" summary:"Post comment page"`
|
||||
PostId int64 `json:"postId" summary:"Post comment id"`
|
||||
Page int `json:"page" summary:"Post comment page"`
|
||||
PageSize int `json:"pageSize" summary:"Post comment page"`
|
||||
}
|
||||
|
||||
type GetPostCommentRes struct {
|
||||
|
||||
Reference in New Issue
Block a user