This commit is contained in:
孟帅
2023-05-10 23:54:50 +08:00
parent bbe655a4d8
commit 49a96750bf
314 changed files with 15138 additions and 6244 deletions

View File

@@ -0,0 +1,48 @@
// Package cash
// @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 cash
import (
"github.com/gogf/gf/v2/frame/g"
"hotgo/internal/model/input/adminin"
"hotgo/internal/model/input/form"
)
// ListReq 查询列表
type ListReq struct {
g.Meta `path:"/cash/list" method:"get" tags:"提现" summary:"获取提现列表"`
adminin.CashListInp
}
type ListRes struct {
List []*adminin.CashListModel `json:"list" dc:"数据列表"`
form.PageRes
}
// ViewReq 获取指定信息
type ViewReq struct {
g.Meta `path:"/cash/view" method:"get" tags:"提现" summary:"获取指定信息"`
adminin.CashViewInp
}
type ViewRes struct {
*adminin.CashViewModel
}
// ApplyReq 申请提现
type ApplyReq struct {
Money float64 `json:"money" description:"提现金额"`
g.Meta `path:"/cash/apply" method:"post" tags:"提现" summary:"申请提现"`
}
type ApplyRes struct{}
// PaymentReq 提现打款处理
type PaymentReq struct {
Id int64 `json:"id" description:"ID"`
Status int64 `json:"status" description:"状态码"`
Msg string `json:"msg" description:"处理结果"`
g.Meta `path:"/cash/payment" method:"post" tags:"提现" summary:"提现打款处理"`
}
type PaymentRes struct{}

View File

@@ -0,0 +1,29 @@
// Package common
// @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 common
import (
"github.com/gogf/gf/v2/frame/g"
"hotgo/internal/model/input/commonin"
)
// WechatAuthorizeReq 微信用户授权
type WechatAuthorizeReq struct {
g.Meta `path:"/wechat/authorize" method:"get" tags:"微信" summary:"微信用户授权"`
commonin.WechatAuthorizeInp
}
type WechatAuthorizeRes struct {
*commonin.WechatAuthorizeModel
}
// WechatAuthorizeCallReq 微信用户授权回调
type WechatAuthorizeCallReq struct {
g.Meta `path:"/wechat/authorizeCall" method:"get" tags:"微信" summary:"微信用户授权"`
commonin.WechatAuthorizeCallInp
}
type WechatAuthorizeCallRes struct {
*commonin.WechatAuthorizeCallModel
}

View File

@@ -34,3 +34,11 @@ type TypeSelectReq struct {
g.Meta `path:"/config/typeSelect" method:"get" tags:"配置" summary:"数据类型选项"`
}
type TypeSelectRes []form.Select
// GetCashReq 获取提现配置
type GetCashReq struct {
g.Meta `path:"/config/getCash" method:"get" tags:"配置" summary:"获取提现配置"`
}
type GetCashRes struct {
*sysin.GetConfigModel
}

View File

@@ -0,0 +1,42 @@
// Package creditslog
// @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
// @AutoGenerate Version 2.5.3
// @AutoGenerate Date 2023-04-15 15:59:58
package creditslog
import (
"github.com/gogf/gf/v2/frame/g"
"hotgo/internal/model/input/adminin"
"hotgo/internal/model/input/form"
)
// ListReq 查询资产变动列表
type ListReq struct {
g.Meta `path:"/creditsLog/list" method:"get" tags:"资产变动" summary:"获取资产变动列表"`
adminin.CreditsLogListInp
}
type ListRes struct {
form.PageRes
List []*adminin.CreditsLogListModel `json:"list" dc:"数据列表"`
}
// ExportReq 导出资产变动列表
type ExportReq struct {
g.Meta `path:"/creditsLog/export" method:"get" tags:"资产变动" summary:"导出资产变动列表"`
adminin.CreditsLogListInp
}
type ExportRes struct{}
// OptionReq 获取变动状态选项
type OptionReq struct {
g.Meta `path:"/creditsLog/option" method:"get" summary:"资产变动" tags:"获取变动状态选项"`
}
type OptionRes struct {
CreditType []g.Map `json:"creditType" dc:"变动类型 "`
CreditGroup []g.Map `json:"creditGroup" dc:"变动组别"`
}

View File

@@ -3,24 +3,18 @@
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
//
package cron
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:"/cron/list" method:"get" tags:"定时任务" summary:"获取定时任务列表"`
g.Meta `path:"/cron/list" method:"get" tags:"定时任务" summary:"获取定时任务列表"`
sysin.CronListInp
}
type ListRes struct {
@@ -30,8 +24,8 @@ type ListRes struct {
// ViewReq 获取信息
type ViewReq struct {
Id int64 `json:"id" v:"required#定时任务ID不能为空" dc:"定时任务ID"`
g.Meta `path:"/cron/view" method:"get" tags:"定时任务" summary:"获取指定信息"`
sysin.CronViewInp
}
type ViewRes struct {
*sysin.CronViewModel
@@ -39,37 +33,45 @@ type ViewRes struct {
// EditReq 修改/新增
type EditReq struct {
entity.SysCron
g.Meta `path:"/cron/edit" method:"post" tags:"定时任务" summary:"修改/新增定时任务"`
sysin.CronEditInp
}
type EditRes struct {
*sysin.CronEditModel
}
type EditRes struct{}
// DeleteReq 删除
type DeleteReq struct {
Id interface{} `json:"id" v:"required#定时任务ID不能为空" dc:"定时任务ID"`
g.Meta `path:"/cron/delete" method:"post" tags:"定时任务" summary:"删除定时任务"`
sysin.CronDeleteInp
}
type DeleteRes struct {
*sysin.CronDeleteModel
}
type DeleteRes struct{}
// MaxSortReq 最大排序
type MaxSortReq struct {
Id int64 `json:"id" dc:"定时任务ID"`
g.Meta `path:"/cron/maxSort" method:"get" tags:"定时任务" summary:"定时任务最大排序"`
sysin.CronMaxSortInp
}
type MaxSortRes struct {
Sort int `json:"sort" dc:"排序"`
*sysin.CronMaxSortModel
}
// StatusReq 更新状态
type StatusReq struct {
entity.SysCron
g.Meta `path:"/cron/status" method:"post" tags:"定时任务" summary:"更新定时任务状态"`
sysin.CronStatusInp
}
type StatusRes struct {
*sysin.CronStatusModel
}
type StatusRes struct{}
// OnlineExecReq 在线执行
type OnlineExecReq struct {
g.Meta `path:"/cron/onlineExec" method:"post" tags:"定时任务" summary:"在线执行"`
sysin.OnlineExecInp
}
type OnlineExecRes struct{}
type OnlineExecRes struct {
*sysin.OnlineExecModel
}

View File

@@ -3,7 +3,6 @@
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
//
package cron
import (
@@ -15,12 +14,8 @@ import (
// GroupListReq 查询列表
type GroupListReq struct {
form.PageReq
form.RangeDateReq
form.StatusReq
Title string `json:"title"`
Content string `json:"content"`
g.Meta `path:"/cronGroup/list" method:"get" tags:"定时任务分组" summary:"获取定时任务分组列表"`
g.Meta `path:"/cronGroup/list" method:"get" tags:"定时任务分组" summary:"获取定时任务分组列表"`
sysin.CronGroupListInp
}
type GroupListRes struct {
@@ -30,8 +25,8 @@ type GroupListRes struct {
// GroupViewReq 获取信息
type GroupViewReq struct {
Id int64 `json:"id" v:"required#定时任务分组ID不能为空" dc:"定时任务分组ID"`
g.Meta `path:"/cronGroup/view" method:"get" tags:"定时任务分组" summary:"获取指定信息"`
sysin.CronGroupViewInp
}
type GroupViewRes struct {
*sysin.CronGroupViewModel
@@ -39,33 +34,40 @@ type GroupViewRes struct {
// GroupEditReq 修改/新增
type GroupEditReq struct {
entity.SysCronGroup
g.Meta `path:"/cronGroup/edit" method:"post" tags:"定时任务分组" summary:"修改/新增定时任务分组"`
sysin.CronGroupEditInp
}
type GroupEditRes struct {
*sysin.CronGroupEditModel
}
type GroupEditRes struct{}
// GroupDeleteReq 删除
type GroupDeleteReq struct {
Id interface{} `json:"id" v:"required#定时任务分组ID不能为空" dc:"定时任务分组ID"`
g.Meta `path:"/cronGroup/delete" method:"post" tags:"定时任务分组" summary:"删除定时任务分组"`
sysin.CronGroupDeleteInp
}
type GroupDeleteRes struct {
*sysin.CronGroupDeleteModel
}
type GroupDeleteRes struct{}
// GroupMaxSortReq 最大排序
type GroupMaxSortReq struct {
Id int64 `json:"id" dc:"定时任务分组ID"`
g.Meta `path:"/cronGroup/maxSort" method:"get" tags:"定时任务分组" summary:"定时任务分组最大排序"`
sysin.CronGroupMaxSortInp
}
type GroupMaxSortRes struct {
Sort int `json:"sort" dc:"排序"`
*sysin.CronGroupMaxSortModel
}
// GroupStatusReq 更新状态
type GroupStatusReq struct {
entity.SysCronGroup
g.Meta `path:"/cronGroup/status" method:"post" tags:"定时任务分组" summary:"更新定时任务分组状态"`
sysin.CronGroupStatusInp
}
type GroupStatusRes struct {
*sysin.CronGroupStatusModel
}
type GroupStatusRes struct{}
// GroupSelectReq 定时任务分组选项
type GroupSelectReq struct {

View File

@@ -3,9 +3,8 @@
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
// @AutoGenerate Version 2.1.4
// @AutoGenerate Date 2023-02-20 16:41:58
//
// @AutoGenerate Version 2.5.3
// @AutoGenerate Date 2023-04-28 15:28:40
package curddemo
import (

View File

@@ -3,13 +3,13 @@
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
//
package dept
import (
"github.com/gogf/gf/v2/frame/g"
"hotgo/internal/model/entity"
"hotgo/internal/model/input/adminin"
"hotgo/internal/model/input/form"
)
// NameUniqueReq 名称是否唯一
@@ -71,3 +71,14 @@ type StatusReq struct {
g.Meta `path:"/dept/status" method:"post" tags:"部门" summary:"更新部门状态"`
}
type StatusRes struct{}
// OptionReq 获取部门选项树
type OptionReq struct {
g.Meta `path:"/dept/option" method:"get" tags:"部门" summary:"获取部门选项树"`
adminin.DeptOptionInp
}
type OptionRes struct {
*adminin.DeptOptionModel
form.PageRes
}

View File

@@ -3,7 +3,6 @@
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
//
package member
import (
@@ -115,15 +114,6 @@ type DeleteReq struct {
}
type DeleteRes struct{}
// MaxSortReq 最大排序
type MaxSortReq struct {
g.Meta `path:"/member/maxSort" method:"get" tags:"用户" summary:"用户最大排序"`
adminin.MemberMaxSortInp
}
type MaxSortRes struct {
*adminin.MemberMaxSortModel
}
// LoginInfoReq 获取登录用户信息
type LoginInfoReq struct {
g.Meta `path:"/member/info" method:"get" tags:"用户" summary:"获取登录用户信息" dc:"获取管理后台的登录用户信息"`
@@ -145,3 +135,17 @@ type SelectReq struct {
g.Meta `path:"/member/option" method:"get" summary:"用户" tags:"获取可选的后台用户选项"`
}
type SelectRes []*adminin.MemberSelectModel
// AddBalanceReq 增加余额
type AddBalanceReq struct {
g.Meta `path:"/member/addBalance" method:"post" tags:"用户" summary:"增加余额"`
adminin.MemberAddBalanceInp
}
type AddBalanceRes struct{}
// AddIntegralReq 增加积分
type AddIntegralReq struct {
g.Meta `path:"/member/addIntegral" method:"post" tags:"用户" summary:"增加积分"`
adminin.MemberAddIntegralInp
}
type AddIntegralRes struct{}

View File

@@ -3,12 +3,10 @@
// @Copyright Copyright (c) 2023 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
//
package menu
import (
"github.com/gogf/gf/v2/frame/g"
"hotgo/internal/model"
"hotgo/internal/model/entity"
"hotgo/internal/model/input/form"
)
@@ -75,23 +73,3 @@ type ListReq struct {
type ListRes struct {
List []map[string]interface{} `json:"list" dc:"数据列表"`
}
// SearchListReq 查询菜单列表
type SearchListReq struct {
g.Meta `path:"/menu/search_list" method:"get" tags:"菜单" summary:"获取菜单列表"`
Name string `json:"name" dc:"菜单名称"`
form.StatusReq
}
type SearchListRes []*model.TreeMenu
// RoleListReq 查询角色菜单列表
type RoleListReq struct {
g.Meta `path:"/menu/role_list" method:"get" tags:"菜单" summary:"查询角色菜单列表"`
RoleId string `json:"role_id" dc:"角色ID"`
}
type RoleListRes struct {
Menus []*model.LabelTreeMenu `json:"menus" dc:"菜单列表"`
CheckedKeys []int64 `json:"checkedKeys" dc:"选择的菜单ID"`
}

View File

@@ -0,0 +1,102 @@
// Package order
// @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 order
import (
"github.com/gogf/gf/v2/frame/g"
"hotgo/internal/model/input/adminin"
"hotgo/internal/model/input/form"
)
// AcceptRefundReq 受理申请退款
type AcceptRefundReq struct {
g.Meta `path:"/order/acceptRefund" method:"post" tags:"充值订单" summary:"受理申请退款"`
adminin.OrderAcceptRefundInp
}
type AcceptRefundRes struct {
}
// ApplyRefundReq 申请退款
type ApplyRefundReq struct {
g.Meta `path:"/order/applyRefund" method:"post" tags:"充值订单" summary:"申请退款"`
adminin.OrderApplyRefundInp
}
type ApplyRefundRes struct {
}
// OptionReq 获取订单状态选项
type OptionReq struct {
g.Meta `path:"/order/option" method:"get" summary:"充值订单" tags:"获取订单状态选项"`
}
type OptionRes struct {
Status []g.Map `json:"status" dc:"订单状态"`
AcceptRefundStatus []g.Map `json:"acceptRefundStatus" dc:"订单退款受理状态"`
PayType []g.Map `json:"payType" dc:"支付方式"`
}
// CreateReq 创建充值订单
type CreateReq struct {
g.Meta `path:"/order/create" method:"post" tags:"充值订单" summary:"创建充值订单"`
adminin.OrderCreateInp
}
type CreateRes struct {
*adminin.OrderCreateModel
}
// ListReq 查询充值订单列表
type ListReq struct {
g.Meta `path:"/order/list" method:"get" tags:"充值订单" summary:"获取充值订单列表"`
adminin.OrderListInp
}
type ListRes struct {
form.PageRes
List []*adminin.OrderListModel `json:"list" dc:"数据列表"`
}
// ExportReq 导出充值订单列表
type ExportReq struct {
g.Meta `path:"/order/export" method:"get" tags:"充值订单" summary:"导出充值订单列表"`
adminin.OrderListInp
}
type ExportRes struct{}
// ViewReq 获取充值订单指定信息
type ViewReq struct {
g.Meta `path:"/order/view" method:"get" tags:"充值订单" summary:"获取充值订单指定信息"`
adminin.OrderViewInp
}
type ViewRes struct {
*adminin.OrderViewModel
}
// EditReq 修改/新增充值订单
type EditReq struct {
g.Meta `path:"/order/edit" method:"post" tags:"充值订单" summary:"修改/新增充值订单"`
adminin.OrderEditInp
}
type EditRes struct{}
// DeleteReq 删除充值订单
type DeleteReq struct {
g.Meta `path:"/order/delete" method:"post" tags:"充值订单" summary:"删除充值订单"`
adminin.OrderDeleteInp
}
type DeleteRes struct{}
// StatusReq 更新充值订单状态
type StatusReq struct {
g.Meta `path:"/order/status" method:"post" tags:"充值订单" summary:"更新充值订单状态"`
adminin.OrderStatusInp
}
type StatusRes struct{}

View File

@@ -0,0 +1,33 @@
// Package pay
// @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
// @AutoGenerate Version 2.5.3
// @AutoGenerate Date 2023-04-15 15:59:58
package pay
import (
"github.com/gogf/gf/v2/frame/g"
"hotgo/internal/model/input/form"
"hotgo/internal/model/input/payin"
)
// RefundListReq 查询交易退款列表
type RefundListReq struct {
g.Meta `path:"/payRefund/list" method:"get" tags:"交易退款" summary:"获取交易退款列表"`
payin.PayRefundListInp
}
type RefundListRes struct {
form.PageRes
List []*payin.PayRefundListModel `json:"list" dc:"数据列表"`
}
// RefundExportReq 导出交易退款列表
type RefundExportReq struct {
g.Meta `path:"/payRefund/export" method:"get" tags:"交易退款" summary:"导出交易退款列表"`
payin.PayRefundListInp
}
type RefundExportRes struct{}