mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 10:07:39 +08:00
发布v2.8.4版本,更新内容请查看:https://github.com/bufanyun/hotgo/tree/v2.0/docs/guide-zh-CN/addon-version-upgrade.md
This commit is contained in:
@@ -7,19 +7,14 @@ package provinces
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
)
|
||||
|
||||
// ListReq 查询列表
|
||||
type ListReq struct {
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
form.StatusReq
|
||||
Title string `json:"title"`
|
||||
Content string `json:"content"`
|
||||
g.Meta `path:"/provinces/list" method:"get" tags:"省市区" summary:"获取省市区列表"`
|
||||
g.Meta `path:"/provinces/list" method:"get" tags:"省市区" summary:"获取省市区列表"`
|
||||
sysin.ProvincesListInp
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
@@ -29,8 +24,8 @@ type ListRes struct {
|
||||
|
||||
// ViewReq 获取信息
|
||||
type ViewReq struct {
|
||||
Id int64 `json:"id" v:"required#省市区ID不能为空" dc:"省市区ID"`
|
||||
g.Meta `path:"/provinces/view" method:"get" tags:"省市区" summary:"获取指定信息"`
|
||||
sysin.ProvincesViewInp
|
||||
}
|
||||
|
||||
type ViewRes struct {
|
||||
@@ -56,6 +51,7 @@ type DeleteRes struct{}
|
||||
// MaxSortReq 最大排序
|
||||
type MaxSortReq struct {
|
||||
g.Meta `path:"/provinces/maxSort" method:"get" tags:"省市区" summary:"省市区最大排序"`
|
||||
sysin.ProvincesMaxSortInp
|
||||
}
|
||||
|
||||
type MaxSortRes struct {
|
||||
@@ -64,8 +60,8 @@ type MaxSortRes struct {
|
||||
|
||||
// StatusReq 更新状态
|
||||
type StatusReq struct {
|
||||
entity.SysProvinces
|
||||
g.Meta `path:"/provinces/status" method:"post" tags:"省市区" summary:"更新省市区状态"`
|
||||
sysin.ProvincesStatusInp
|
||||
}
|
||||
|
||||
type StatusRes struct{}
|
||||
|
Reference in New Issue
Block a user