mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-26 16:46:14 +08:00
发布v2.13.1版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -78,12 +78,6 @@ type BuildAddonConfig struct {
|
||||
WebViewsPath string `json:"webViewsPath"`
|
||||
}
|
||||
|
||||
// CacheConfig 缓存配置
|
||||
type CacheConfig struct {
|
||||
Adapter string `json:"adapter"`
|
||||
FileDir string `json:"fileDir"`
|
||||
}
|
||||
|
||||
// TCPServerConfig tcp服务器配置
|
||||
type TCPServerConfig struct {
|
||||
Address string `json:"address"`
|
||||
|
16
server/internal/model/dict.go
Normal file
16
server/internal/model/dict.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// Package model
|
||||
// @Link https://github.com/bufanyun/hotgo
|
||||
// @Copyright Copyright (c) 2023 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
package model
|
||||
|
||||
// Option 字典数据选项
|
||||
type Option struct {
|
||||
Key interface{} `json:"key"`
|
||||
Label string `json:"label" description:"字典标签"`
|
||||
Value interface{} `json:"value" description:"字典键值"`
|
||||
ValueType string `json:"valueType" description:"键值数据类型"`
|
||||
Type string `json:"type" description:"字典类型"`
|
||||
ListClass string `json:"listClass" description:"表格回显样式"`
|
||||
}
|
@@ -10,10 +10,10 @@ import (
|
||||
"github.com/gogf/gf/v2/errors/gerror"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"hotgo/internal/consts"
|
||||
"hotgo/internal/library/dict"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/payin"
|
||||
"hotgo/utility/validate"
|
||||
)
|
||||
|
||||
// OrderAcceptRefundInp 受理申请退款
|
||||
@@ -25,7 +25,7 @@ type OrderAcceptRefundInp struct {
|
||||
}
|
||||
|
||||
func (in *OrderAcceptRefundInp) Filter(ctx context.Context) (err error) {
|
||||
if !validate.InSlice(consts.OrderStatusSlice, in.Status) {
|
||||
if !dict.HasOptionKey(consts.OrderStatusOptions, in.Status) {
|
||||
err = gerror.Newf("订单状态不正确")
|
||||
return
|
||||
}
|
||||
|
@@ -1,3 +1,8 @@
|
||||
// Package commonin
|
||||
// @Link https://github.com/bufanyun/hotgo
|
||||
// @Copyright Copyright (c) 2023 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
package commonin
|
||||
|
||||
// WechatAuthorizeInp 微信用户授权
|
||||
|
@@ -29,18 +29,10 @@ type AddonsListModel struct {
|
||||
CanSave bool `json:"canSave" dc:"是否可以更新"`
|
||||
}
|
||||
|
||||
// AddonsSelectsInp 选项
|
||||
type AddonsSelectsInp struct {
|
||||
}
|
||||
|
||||
type AddonsSelectsModel struct {
|
||||
GroupType form.Selects `json:"groupType" dc:"分组类型"`
|
||||
Status form.Selects `json:"status" dc:"安装状态"`
|
||||
}
|
||||
|
||||
// AddonsBuildInp 提交生成
|
||||
type AddonsBuildInp struct {
|
||||
addons.Skeleton
|
||||
Extend []string `json:"extend" dc:"扩展功能"`
|
||||
}
|
||||
|
||||
func (in *AddonsBuildInp) Filter(ctx context.Context) (err error) {
|
||||
|
@@ -77,3 +77,21 @@ type AttachmentChooserListModel struct {
|
||||
type AttachmentClearInp struct {
|
||||
Kind string `json:"kind" dc:"上传类型"`
|
||||
}
|
||||
|
||||
// CheckMultipartInp 检查文件分片
|
||||
type CheckMultipartInp struct {
|
||||
*storager.CheckMultipartParams
|
||||
}
|
||||
|
||||
type CheckMultipartModel struct {
|
||||
*storager.CheckMultipartModel
|
||||
}
|
||||
|
||||
// UploadPartInp 上传分片
|
||||
type UploadPartInp struct {
|
||||
*storager.UploadPartParams
|
||||
}
|
||||
|
||||
type UploadPartModel struct {
|
||||
*storager.UploadPartModel
|
||||
}
|
||||
|
@@ -1,9 +1,9 @@
|
||||
// Package sysin
|
||||
// @Link https://github.com/bufanyun/hotgo
|
||||
// @Copyright Copyright (c) 2023 HotGo CLI
|
||||
// @Copyright Copyright (c) 2024 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
// @AutoGenerate Version 2.11.5
|
||||
// @AutoGenerate Version 2.12.10
|
||||
package sysin
|
||||
|
||||
import (
|
||||
|
@@ -8,6 +8,7 @@ package sysin
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/errors/gerror"
|
||||
"hotgo/internal/model"
|
||||
"hotgo/internal/model/entity"
|
||||
"hotgo/internal/model/input/form"
|
||||
)
|
||||
@@ -88,13 +89,4 @@ type DataSelectInp struct {
|
||||
Type string `in:"path" v:"required#字典类型不能为空" dc:"字典类型"`
|
||||
}
|
||||
|
||||
type DataSelectModel []*SelectData
|
||||
|
||||
type SelectData struct {
|
||||
Key interface{} `json:"key"`
|
||||
Label string `json:"label" description:"字典标签"`
|
||||
Value interface{} `json:"value" description:"字典键值"`
|
||||
ValueType string `json:"valueType" description:"键值数据类型:string,int,uint,bool,datetime,date"`
|
||||
Type string `json:"type" description:"字典类型"`
|
||||
ListClass string `json:"listClass" description:"表格回显样式"`
|
||||
}
|
||||
type DataSelectModel []*model.Option
|
||||
|
@@ -59,6 +59,7 @@ type ProvincesUpdateFields struct {
|
||||
|
||||
// ProvincesInsertFields 新增数据字段过滤
|
||||
type ProvincesInsertFields struct {
|
||||
Id int64 `json:"id" description:"省市区ID"`
|
||||
Title string `json:"title" description:"栏目名称"`
|
||||
Pinyin string `json:"pinyin" description:"拼音"`
|
||||
Lng string `json:"lng" description:"经度"`
|
||||
|
Reference in New Issue
Block a user