chore: 并入 iotlcm-app 历史到 app/(原提交 f40bda9)
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package app
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/api/app/v1"
|
||||
)
|
||||
|
||||
type IAppV1 interface {
|
||||
WarningPreference(ctx context.Context, req *v1.WarningPreferenceReq) (*v1.WarningPreferenceRes, error)
|
||||
SaveWarningPreference(ctx context.Context, req *v1.SaveWarningPreferenceReq) (*v1.SaveWarningPreferenceRes, error)
|
||||
UnbindWechat(ctx context.Context, req *v1.UnbindWechatReq) (*v1.UnbindWechatRes, error)
|
||||
Captcha(ctx context.Context, req *v1.CaptchaReq) (res *v1.CaptchaRes, err error)
|
||||
SideCaptcha(ctx context.Context, req *v1.SideCaptchaReq) (res *v1.SideCaptchaRes, err error)
|
||||
CheckSideCaptcha(ctx context.Context, req *v1.CheckSideCaptchaReq) (res *v1.CheckSideCaptchaRes, err error)
|
||||
SendSms(ctx context.Context, req *v1.SendSmsReq) (res *v1.SendSmsRes, err error)
|
||||
PhoneRegister(ctx context.Context, req *v1.PhoneRegisterReq) (res *v1.PhoneRegisterRes, err error)
|
||||
PhoneLogin(ctx context.Context, req *v1.PhoneLoginReq) (res *v1.PhoneLoginRes, err error)
|
||||
WechatLogin(ctx context.Context, req *v1.WechatLoginReq) (res *v1.WechatLoginRes, err error)
|
||||
WechatBindPhone(ctx context.Context, req *v1.WechatBindPhoneReq) (res *v1.WechatBindPhoneRes, err error)
|
||||
ForgotPassword(ctx context.Context, req *v1.ForgotPasswordReq) (res *v1.ForgotPasswordRes, err error)
|
||||
BalanceRechargeSubmit(ctx context.Context, req *v1.BalanceRechargeSubmitReq) (res *v1.BalanceRechargeSubmitRes, err error)
|
||||
BalanceRechargeStatus(ctx context.Context, req *v1.BalanceRechargeStatusReq) (res *v1.BalanceRechargeStatusRes, err error)
|
||||
BalanceRechargeMockPay(ctx context.Context, req *v1.BalanceRechargeMockPayReq) (res *v1.BalanceRechargeMockPayRes, err error)
|
||||
BalanceRechargeRefund(ctx context.Context, req *v1.BalanceRechargeRefundReq) (res *v1.BalanceRechargeRefundRes, err error)
|
||||
BalanceRechargeWechatNotify(ctx context.Context, req *v1.BalanceRechargeWechatNotifyReq) (res *v1.BalanceRechargeWechatNotifyRes, err error)
|
||||
BalanceRechargeWechatRefundNotify(ctx context.Context, req *v1.BalanceRechargeWechatRefundNotifyReq) (res *v1.BalanceRechargeWechatRefundNotifyRes, err error)
|
||||
PublicQueryCard(ctx context.Context, req *v1.PublicQueryCardReq) (res *v1.PublicQueryCardRes, err error)
|
||||
RecognizeCard(ctx context.Context, req *v1.RecognizeCardReq) (res *v1.RecognizeCardRes, err error)
|
||||
CardList(ctx context.Context, req *v1.CardListReq) (res *v1.CardListRes, err error)
|
||||
PackageList(ctx context.Context, req *v1.PackageListReq) (res *v1.PackageListRes, err error)
|
||||
PublicPackageDetail(ctx context.Context, req *v1.PublicPackageDetailReq) (res *v1.PublicPackageDetailRes, err error)
|
||||
CardDetail(ctx context.Context, req *v1.CardDetailReq) (res *v1.CardDetailRes, err error)
|
||||
BindCard(ctx context.Context, req *v1.BindCardReq) (res *v1.BindCardRes, err error)
|
||||
RestartCard(ctx context.Context, req *v1.RestartCardReq) (res *v1.RestartCardRes, err error)
|
||||
StopCard(ctx context.Context, req *v1.StopCardReq) (res *v1.StopCardRes, err error)
|
||||
StartCard(ctx context.Context, req *v1.StartCardReq) (res *v1.StartCardRes, err error)
|
||||
LifecycleBatchSubmit(ctx context.Context, req *v1.LifecycleBatchSubmitReq) (res *v1.LifecycleBatchSubmitRes, err error)
|
||||
LifecycleBatchStatus(ctx context.Context, req *v1.LifecycleBatchStatusReq) (res *v1.LifecycleBatchStatusRes, err error)
|
||||
RenewPrepare(ctx context.Context, req *v1.RenewPrepareReq) (res *v1.RenewPrepareRes, err error)
|
||||
RenewBatchPrepare(ctx context.Context, req *v1.RenewBatchPrepareReq) (res *v1.RenewBatchPrepareRes, err error)
|
||||
RenewSubmit(ctx context.Context, req *v1.RenewSubmitReq) (res *v1.RenewSubmitRes, err error)
|
||||
RenewBatchSubmit(ctx context.Context, req *v1.RenewBatchSubmitReq) (res *v1.RenewBatchSubmitRes, err error)
|
||||
AllocateTargets(ctx context.Context, req *v1.AllocateTargetsReq) (res *v1.AllocateTargetsRes, err error)
|
||||
AllocateBatchPrepare(ctx context.Context, req *v1.AllocateBatchPrepareReq) (res *v1.AllocateBatchPrepareRes, err error)
|
||||
AllocateBatchSubmit(ctx context.Context, req *v1.AllocateBatchSubmitReq) (res *v1.AllocateBatchSubmitRes, err error)
|
||||
ChangePrepare(ctx context.Context, req *v1.ChangePrepareReq) (res *v1.ChangePrepareRes, err error)
|
||||
ChangeSubmit(ctx context.Context, req *v1.ChangeSubmitReq) (res *v1.ChangeSubmitRes, err error)
|
||||
DiagnosisInfo(ctx context.Context, req *v1.DiagnosisInfoReq) (res *v1.DiagnosisInfoRes, err error)
|
||||
DiagnosisFlow(ctx context.Context, req *v1.DiagnosisFlowReq) (res *v1.DiagnosisFlowRes, err error)
|
||||
OpenDiagnosisInfo(ctx context.Context, req *v1.OpenDiagnosisInfoReq) (res *v1.OpenDiagnosisInfoRes, err error)
|
||||
OpenDiagnosisFlow(ctx context.Context, req *v1.OpenDiagnosisFlowReq) (res *v1.OpenDiagnosisFlowRes, err error)
|
||||
CustomerList(ctx context.Context, req *v1.CustomerListReq) (res *v1.CustomerListRes, err error)
|
||||
CustomerDetail(ctx context.Context, req *v1.CustomerDetailReq) (res *v1.CustomerDetailRes, err error)
|
||||
MessageList(ctx context.Context, req *v1.MessageListReq) (res *v1.MessageListRes, err error)
|
||||
MessageDetail(ctx context.Context, req *v1.MessageDetailReq) (res *v1.MessageDetailRes, err error)
|
||||
MessageRead(ctx context.Context, req *v1.MessageReadReq) (res *v1.MessageReadRes, err error)
|
||||
OrderList(ctx context.Context, req *v1.OrderListReq) (res *v1.OrderListRes, err error)
|
||||
OrderDetail(ctx context.Context, req *v1.OrderDetailReq) (res *v1.OrderDetailRes, err error)
|
||||
UserInfo(ctx context.Context, req *v1.UserInfoReq) (res *v1.UserInfoRes, err error)
|
||||
UpdateUserInfo(ctx context.Context, req *v1.UpdateUserInfoReq) (res *v1.UpdateUserInfoRes, err error)
|
||||
BindWechat(ctx context.Context, req *v1.BindWechatReq) (res *v1.BindWechatRes, err error)
|
||||
WarningConfigList(ctx context.Context, req *v1.WarningConfigListReq) (res *v1.WarningConfigListRes, err error)
|
||||
WarningConfigSave(ctx context.Context, req *v1.WarningConfigSaveReq) (res *v1.WarningConfigSaveRes, err error)
|
||||
WarningConfigNotify(ctx context.Context, req *v1.WarningConfigNotifyReq) (res *v1.WarningConfigNotifyRes, err error)
|
||||
WarningConfigMeta(ctx context.Context, req *v1.WarningConfigMetaReq) (res *v1.WarningConfigMetaRes, err error)
|
||||
WarningConfigBatchSave(ctx context.Context, req *v1.WarningConfigBatchSaveReq) (res *v1.WarningConfigBatchSaveRes, err error)
|
||||
WarningConfigBatchNotify(ctx context.Context, req *v1.WarningConfigBatchNotifyReq) (res *v1.WarningConfigBatchNotifyRes, err error)
|
||||
WorkOrderAction(ctx context.Context, req *v1.WorkOrderActionReq) (res *v1.WorkOrderActionRes, err error)
|
||||
WorkOrderList(ctx context.Context, req *v1.WorkOrderListReq) (res *v1.WorkOrderListRes, err error)
|
||||
WorkOrderDetail(ctx context.Context, req *v1.WorkOrderDetailReq) (res *v1.WorkOrderDetailRes, err error)
|
||||
WorkOrderCreate(ctx context.Context, req *v1.WorkOrderCreateReq) (res *v1.WorkOrderCreateRes, err error)
|
||||
WorkOrderUpload(ctx context.Context, req *v1.WorkOrderUploadReq) (res *v1.WorkOrderUploadRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
)
|
||||
|
||||
type AllocateResultReq struct {
|
||||
g.Meta `path:"/card/allocate-result" method:"get" tags:"APP-卡片" summary:"查询本人划拨结果" x-check-permission:"cpm:iot:tSimCardAllocate:batch:submit"`
|
||||
BatchNo string `json:"batchNo" v:"length:0,64"`
|
||||
RequestId string `json:"requestId" v:"length:0,96"`
|
||||
}
|
||||
type AllocateResultRes struct{ *model.AppExecutionLogItem }
|
||||
type AllocateDetailsReq struct {
|
||||
g.Meta `path:"/card/allocate-details" method:"get" tags:"APP-卡片" summary:"查询本人划拨明细" x-check-permission:"cpm:iot:tSimCardAllocate:batch:submit"`
|
||||
model.AppExecutionLogDetailParam
|
||||
}
|
||||
type AllocateDetailsRes struct {
|
||||
Items []*model.AppExecutionLogDetail `json:"items"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type CaptchaReq struct {
|
||||
g.Meta `path:"/auth/captcha" method:"get" tags:"APP-授权" summary:"获取图形验证码"`
|
||||
}
|
||||
|
||||
type CaptchaRes struct {
|
||||
CaptchaID string `json:"captchaID" dc:"验证码ID"`
|
||||
CaptchaImage string `json:"captchaImage" dc:"验证码图片Base64"`
|
||||
}
|
||||
|
||||
type SideCaptchaReq struct {
|
||||
g.Meta `path:"/auth/side-captcha" method:"post" tags:"APP-授权" summary:"获取滑块验证码"`
|
||||
}
|
||||
|
||||
type SideCaptchaRes struct {
|
||||
model.AppSideCaptchaModel
|
||||
}
|
||||
|
||||
type CheckSideCaptchaReq struct {
|
||||
g.Meta `path:"/auth/check-side-captcha" method:"post" tags:"APP-授权" summary:"验证滑块验证码"`
|
||||
model.AppCheckSideCaptchaParam
|
||||
}
|
||||
|
||||
type CheckSideCaptchaRes struct {
|
||||
Success bool `json:"success" dc:"是否成功"`
|
||||
}
|
||||
|
||||
type SendSmsReq struct {
|
||||
g.Meta `path:"/auth/sms" method:"post" tags:"APP-授权" summary:"发送短信验证码"`
|
||||
model.AppSendSmsParam
|
||||
}
|
||||
|
||||
type SendSmsRes struct {
|
||||
model.AppSendSmsModel
|
||||
}
|
||||
|
||||
type PhoneRegisterReq struct {
|
||||
g.Meta `path:"/auth/register" method:"post" tags:"APP-授权" summary:"手机号注册"`
|
||||
model.AppPhoneRegisterParam
|
||||
}
|
||||
|
||||
type PhoneRegisterRes struct {
|
||||
model.AppAuthTokenModel
|
||||
}
|
||||
|
||||
type PhoneLoginReq struct {
|
||||
g.Meta `path:"/auth/login" method:"post" tags:"APP-授权" summary:"账号登录"`
|
||||
model.AppPhoneLoginParam
|
||||
}
|
||||
|
||||
type PhoneLoginRes struct {
|
||||
model.AppAuthTokenModel
|
||||
}
|
||||
|
||||
type PhoneSmsLoginReq struct {
|
||||
g.Meta `path:"/auth/phone-login" method:"post" tags:"APP-授权" summary:"手机号短信验证码登录"`
|
||||
model.AppPhoneSmsLoginParam
|
||||
}
|
||||
|
||||
type PhoneSmsLoginRes struct {
|
||||
model.AppAuthTokenModel
|
||||
}
|
||||
|
||||
type WechatLoginReq struct {
|
||||
g.Meta `path:"/auth/wechat-login" method:"post" tags:"APP-授权" summary:"微信一键登录"`
|
||||
model.AppWechatLoginParam
|
||||
}
|
||||
|
||||
type WechatLoginRes struct {
|
||||
model.AppWechatLoginModel
|
||||
}
|
||||
|
||||
type WechatBindPhoneReq struct {
|
||||
g.Meta `path:"/auth/wechat-bind-phone" method:"post" tags:"APP-授权" summary:"微信登录绑定手机号"`
|
||||
model.AppWechatBindPhoneParam
|
||||
}
|
||||
|
||||
type WechatBindPhoneRes struct {
|
||||
model.AppWechatBindPhoneModel
|
||||
}
|
||||
|
||||
type ForgotPasswordReq struct {
|
||||
g.Meta `path:"/auth/forgot-password" method:"post" tags:"APP-授权" summary:"手机号找回密码"`
|
||||
model.AppForgotPasswordParam
|
||||
}
|
||||
|
||||
type ForgotPasswordRes struct {
|
||||
Success bool `json:"success" dc:"是否成功"`
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type BalanceRechargeSubmitReq struct {
|
||||
g.Meta `path:"/balance/recharge-submit" method:"post" tags:"APP-余额" summary:"提交余额充值订单"`
|
||||
model.AppBalanceRechargeSubmitParam
|
||||
}
|
||||
|
||||
type BalanceRechargeSubmitRes struct {
|
||||
*model.AppBalanceRechargeSubmitModel
|
||||
}
|
||||
|
||||
type BalanceRechargeStatusReq struct {
|
||||
g.Meta `path:"/balance/recharge-status" method:"get" tags:"APP-余额" summary:"查询余额充值订单支付状态"`
|
||||
model.AppBalanceRechargeStatusParam
|
||||
}
|
||||
|
||||
type BalanceRechargeStatusRes struct {
|
||||
*model.AppBalanceRechargeStatusModel
|
||||
}
|
||||
|
||||
type BalanceRechargeMockPayReq struct {
|
||||
g.Meta `path:"/balance/recharge-mock-pay" method:"post" tags:"APP-余额" summary:"模拟余额充值支付成功"`
|
||||
model.AppBalanceRechargeMockPayParam
|
||||
}
|
||||
|
||||
type BalanceRechargeMockPayRes struct {
|
||||
*model.AppBalanceRechargeStatusModel
|
||||
}
|
||||
|
||||
type BalanceRechargeRefundReq struct {
|
||||
g.Meta `path:"/balance/recharge-refund" method:"post" tags:"APP-余额" summary:"发起余额充值退款申请"`
|
||||
model.AppBalanceRechargeRefundParam
|
||||
}
|
||||
|
||||
type BalanceRechargeRefundRes struct {
|
||||
*model.AppOrderModel
|
||||
}
|
||||
|
||||
type BalanceRechargeWechatNotifyReq struct {
|
||||
g.Meta `path:"/payment/wechat/notify" method:"post" tags:"APP-余额" summary:"微信支付余额充值异步通知"`
|
||||
}
|
||||
|
||||
type BalanceRechargeWechatNotifyRes struct{}
|
||||
|
||||
type BalanceRechargeWechatRefundNotifyReq struct {
|
||||
g.Meta `path:"/payment/wechat/refund-notify" method:"post" tags:"APP-余额" summary:"微信支付余额充值退款异步通知"`
|
||||
}
|
||||
|
||||
type BalanceRechargeWechatRefundNotifyRes struct{}
|
||||
@@ -0,0 +1,199 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type PublicQueryCardReq struct {
|
||||
g.Meta `path:"/card/public-query" method:"post" tags:"APP-卡片" summary:"未登录公开查询卡信息"`
|
||||
model.AppCardQueryParam
|
||||
}
|
||||
|
||||
type PublicQueryCardRes struct {
|
||||
Card *model.AppCardModel `json:"card" dc:"卡信息"`
|
||||
}
|
||||
|
||||
type RecognizeCardReq struct {
|
||||
g.Meta `path:"/card/recognize" method:"post" tags:"APP-卡片" summary:"拍照识别ICCID并公开查卡"`
|
||||
}
|
||||
|
||||
type RecognizeCardRes struct {
|
||||
*model.AppCardRecognitionModel
|
||||
}
|
||||
|
||||
type CardListReq struct {
|
||||
g.Meta `path:"/card/list" method:"get" tags:"APP-卡片" summary:"登录用户查询持有卡列表" x-check-permission:"cpa:terminal:user,cpm:iot:tSimCardInfo:list"`
|
||||
model.AppCardListParam
|
||||
}
|
||||
|
||||
type CardListRes struct {
|
||||
Items []*model.AppCardModel `json:"items" dc:"卡列表"`
|
||||
Total int `json:"total" dc:"总数"`
|
||||
HasMore bool `json:"hasMore" dc:"是否还有下一页"`
|
||||
}
|
||||
|
||||
type PackageListReq struct {
|
||||
g.Meta `path:"/card/package-list" method:"get" tags:"APP-卡片" summary:"登录用户查询持有卡套餐列表" x-check-permission:"cpm:iot:tSimCardBindPkg:list,cpm:iot:tSimFlowPackageInfo:list,cpm:iot:tSimCardInfo:list"`
|
||||
model.AppPackageListParam
|
||||
}
|
||||
|
||||
type PackageListRes struct {
|
||||
Items []*model.AppPackageModel `json:"items" dc:"套餐列表"`
|
||||
Total int `json:"total" dc:"总数"`
|
||||
}
|
||||
|
||||
type PublicPackageDetailReq struct {
|
||||
g.Meta `path:"/card/public-package-detail" method:"post" tags:"APP-卡片" summary:"未登录公开查询当前套餐详情"`
|
||||
model.AppPackagePublicDetailParam
|
||||
}
|
||||
|
||||
type PublicPackageDetailRes struct {
|
||||
Package *model.AppPackageModel `json:"package" dc:"套餐详情"`
|
||||
}
|
||||
|
||||
type CardDetailReq struct {
|
||||
g.Meta `path:"/card/detail" method:"get" tags:"APP-卡片" summary:"登录用户查询卡详情,非持有卡按公共查询返回" x-check-permission:"cpm:iot:tSimCardInfo:view,cpm:iot:tSimCardInfo:list"`
|
||||
model.AppCardDetailParam
|
||||
}
|
||||
|
||||
type CardDetailRes struct {
|
||||
Card *model.AppCardModel `json:"card" dc:"卡信息"`
|
||||
}
|
||||
|
||||
type BindCardReq struct {
|
||||
g.Meta `path:"/card/bind" method:"post" tags:"APP-卡片" summary:"终端用户绑定卡" x-check-permission:"cpc:current:user"`
|
||||
model.AppCardBindParam
|
||||
}
|
||||
|
||||
type BindCardRes struct {
|
||||
Card *model.AppCardModel `json:"card" dc:"卡信息"`
|
||||
}
|
||||
|
||||
type RestartCardReq struct {
|
||||
g.Meta `path:"/card/restart" method:"post" tags:"APP-卡片" summary:"登录用户重启卡" x-check-permission:"cpm:iot:tSimCardRestart:input:submit"`
|
||||
model.AppCardRestartParam
|
||||
}
|
||||
|
||||
type RestartCardRes struct {
|
||||
*model.AppCardRestartModel
|
||||
}
|
||||
|
||||
type StopCardReq struct {
|
||||
g.Meta `path:"/card/stop" method:"post" tags:"APP-卡片" summary:"企业用户停机卡片" x-check-permission:"cpm:iot:tSimCardStop:input:submit"`
|
||||
model.AppCardRestartParam
|
||||
}
|
||||
|
||||
type StopCardRes struct {
|
||||
*model.AppCardLifecycleModel
|
||||
}
|
||||
|
||||
type StartCardReq struct {
|
||||
g.Meta `path:"/card/start" method:"post" tags:"APP-卡片" summary:"企业用户复机卡片" x-check-permission:"cpm:iot:tSimCardStart:input:submit"`
|
||||
model.AppCardRestartParam
|
||||
}
|
||||
|
||||
type StartCardRes struct {
|
||||
*model.AppCardLifecycleModel
|
||||
}
|
||||
|
||||
type LifecycleBatchSubmitReq struct {
|
||||
g.Meta `path:"/card/lifecycle-batch-submit" method:"post" tags:"APP-卡片" summary:"企业用户批量提交停机复机重启" x-check-permission:"cpm:iot:tSimCardStop:input:submit,cpm:iot:tSimCardStart:input:submit,cpm:iot:tSimCardRestart:input:submit"`
|
||||
model.AppCardLifecycleParam
|
||||
}
|
||||
|
||||
type LifecycleBatchSubmitRes struct {
|
||||
*model.AppCardLifecycleModel
|
||||
}
|
||||
|
||||
type LifecycleBatchStatusReq struct {
|
||||
g.Meta `path:"/card/lifecycle-batch-status" method:"get" tags:"APP-卡片" summary:"查询卡片停机复机重启批次状态" x-check-permission:"cpm:iot:tSimCardStop:input:submit,cpm:iot:tSimCardStart:input:submit,cpm:iot:tSimCardRestart:input:submit"`
|
||||
model.AppCardLifecycleStatusParam
|
||||
}
|
||||
|
||||
type LifecycleBatchStatusRes struct {
|
||||
*model.AppCardLifecycleModel
|
||||
}
|
||||
|
||||
type RenewPrepareReq struct {
|
||||
g.Meta `path:"/card/renew-prepare" method:"post" tags:"APP-卡片" summary:"登录用户查询套餐续费档位和价格" x-check-permission:"cpm:iot:tSimCardRenew:input:prepare,cpm:iot:tSimCardRenew:batch:confirm"`
|
||||
model.AppCardRenewPrepareParam
|
||||
}
|
||||
|
||||
type RenewPrepareRes struct {
|
||||
*model.AppCardRenewPrepareModel
|
||||
}
|
||||
|
||||
type RenewBatchPrepareReq struct {
|
||||
g.Meta `path:"/card/renew-batch-prepare" method:"post" tags:"APP-卡片" summary:"登录用户批量查询套餐续费档位和价格" x-check-permission:"cpm:iot:tSimCardRenew:input:prepare,cpm:iot:tSimCardRenew:batch:confirm"`
|
||||
model.AppCardRenewBatchPrepareParam
|
||||
}
|
||||
|
||||
type RenewBatchPrepareRes struct {
|
||||
*model.AppCardRenewPrepareModel
|
||||
}
|
||||
|
||||
type RenewSubmitReq struct {
|
||||
g.Meta `path:"/card/renew-submit" method:"post" tags:"APP-卡片" summary:"登录用户提交套餐续费订单" x-check-permission:"cpm:iot:tSimCardRenew:batch:confirm"`
|
||||
model.AppCardRenewSubmitParam
|
||||
}
|
||||
|
||||
type RenewSubmitRes struct {
|
||||
*model.AppCardRenewSubmitModel
|
||||
}
|
||||
|
||||
type RenewBatchSubmitReq struct {
|
||||
g.Meta `path:"/card/renew-batch-submit" method:"post" tags:"APP-卡片" summary:"登录用户提交批量套餐续费订单" x-check-permission:"cpm:iot:tSimCardRenew:batch:confirm"`
|
||||
model.AppCardRenewBatchSubmitParam
|
||||
}
|
||||
|
||||
type RenewBatchSubmitRes struct {
|
||||
*model.AppCardRenewSubmitModel
|
||||
}
|
||||
|
||||
type AllocateTargetsReq struct {
|
||||
g.Meta `path:"/card/allocate-targets" method:"get" tags:"APP-卡片" summary:"企业用户查询可划拨目标客户" x-check-permission:"cpm:iot:tSimCardAllocate:targets"`
|
||||
model.AppCardAllocateTargetListParam
|
||||
}
|
||||
|
||||
type AllocateTargetsRes struct {
|
||||
Items []*model.AppCardAllocateTargetModel `json:"items" dc:"目标客户列表"`
|
||||
Total int `json:"total" dc:"总数"`
|
||||
}
|
||||
|
||||
type AllocateBatchPrepareReq struct {
|
||||
g.Meta `path:"/card/allocate-batch-prepare" method:"post" tags:"APP-卡片" summary:"企业用户批量划拨预校验" x-check-permission:"cpm:iot:tSimCardAllocate:input:prepare"`
|
||||
model.AppCardAllocateBatchPrepareParam
|
||||
}
|
||||
|
||||
type AllocateBatchPrepareRes struct {
|
||||
*model.AppCardAllocateBatchModel
|
||||
}
|
||||
|
||||
type AllocateBatchSubmitReq struct {
|
||||
g.Meta `path:"/card/allocate-batch-submit" method:"post" tags:"APP-卡片" summary:"企业用户提交批量划拨" x-check-permission:"cpm:iot:tSimCardAllocate:batch:submit"`
|
||||
model.AppCardAllocateBatchSubmitParam
|
||||
}
|
||||
|
||||
type AllocateBatchSubmitRes struct {
|
||||
*model.AppCardAllocateBatchModel
|
||||
}
|
||||
|
||||
type ChangePrepareReq struct {
|
||||
g.Meta `path:"/card/change-prepare" method:"post" tags:"APP-卡片" summary:"企业用户套餐变更预校验" x-check-permission:"cpm:iot:tSimCardChange:input:prepare,cpm:iot:tSimCardChange:range:prepare,cpm:iot:tSimCardBindPkg:getChangePkg"`
|
||||
model.AppCardChangePrepareParam
|
||||
}
|
||||
|
||||
type ChangePrepareRes struct {
|
||||
*model.AppCardChangePrepareModel
|
||||
}
|
||||
|
||||
type ChangeSubmitReq struct {
|
||||
g.Meta `path:"/card/change-submit" method:"post" tags:"APP-卡片" summary:"企业用户提交套餐变更" x-check-permission:"cpm:iot:tSimCardChange:batch:submit"`
|
||||
model.AppCardChangeSubmitParam
|
||||
}
|
||||
|
||||
type ChangeSubmitRes struct {
|
||||
*model.AppCardChangeSubmitModel
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type CustomerListReq struct {
|
||||
g.Meta `path:"/customer/list" method:"get" tags:"APP-客户" summary:"企业用户查询下级客户列表" x-check-permission:"cpm:agent:dept:list,cpm:agent:tAgentEnterprise:list"`
|
||||
model.AppCustomerListParam
|
||||
}
|
||||
|
||||
type CustomerListRes struct {
|
||||
Summary *model.AppCustomerSummary `json:"summary" dc:"当前筛选结果汇总"`
|
||||
Items []*model.AppCustomerModel `json:"items" dc:"客户列表"`
|
||||
Total int `json:"total" dc:"总数"`
|
||||
}
|
||||
|
||||
type CustomerDetailReq struct {
|
||||
g.Meta `path:"/customer/detail" method:"get" tags:"APP-客户" summary:"企业用户查询客户详情" x-check-permission:"cpm:agent:tAgentEnterprise:view,cpm:agent:tAgentEnterprise:list"`
|
||||
model.AppCustomerDetailParam
|
||||
}
|
||||
|
||||
type CustomerDetailRes struct {
|
||||
Customer *model.AppCustomerDetailModel `json:"customer" dc:"客户详情"`
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type DiagnosisInfoReq struct {
|
||||
g.Meta `path:"/diagnosis/info" method:"post" tags:"APP-智能诊断" summary:"查询SIM卡诊断信息"`
|
||||
model.AppDiagnosisInfoParam
|
||||
}
|
||||
|
||||
type DiagnosisInfoRes struct {
|
||||
*model.AppDiagnosisInfoModel
|
||||
}
|
||||
|
||||
type DiagnosisFlowReq struct {
|
||||
g.Meta `path:"/diagnosis/flow" method:"post" tags:"APP-智能诊断" summary:"查询SIM卡流量趋势"`
|
||||
model.AppDiagnosisFlowParam
|
||||
}
|
||||
|
||||
type DiagnosisFlowRes struct {
|
||||
*model.AppDiagnosisFlowModel
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
)
|
||||
|
||||
type ExecutionLogListReq struct {
|
||||
g.Meta `path:"/execution-log/list" method:"get" tags:"APP-执行日志" summary:"查询权限范围内执行日志" x-check-permission:"cpm:common:batchExecutionLog:list"`
|
||||
model.AppExecutionLogListParam
|
||||
}
|
||||
type ExecutionLogListRes struct {
|
||||
Items []*model.AppExecutionLogItem `json:"items"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
type ExecutionLogSummaryReq struct {
|
||||
g.Meta `path:"/execution-log/summary" method:"get" tags:"APP-执行日志" summary:"查询权限范围内执行日志概要" x-check-permission:"cpm:common:batchExecutionLog:summary"`
|
||||
BatchNo string `json:"batchNo" v:"required|length:1,64"`
|
||||
}
|
||||
type ExecutionLogSummaryRes struct{ *model.AppExecutionLogItem }
|
||||
type ExecutionLogDetailsReq struct {
|
||||
g.Meta `path:"/execution-log/details" method:"get" tags:"APP-执行日志" summary:"查询权限范围内执行日志明细" x-check-permission:"cpm:common:batchExecutionLog:detailList"`
|
||||
model.AppExecutionLogDetailParam
|
||||
}
|
||||
type ExecutionLogDetailsRes struct {
|
||||
Items []*model.AppExecutionLogDetail `json:"items"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type MessageListReq struct {
|
||||
g.Meta `path:"/message/list" method:"get" tags:"APP-消息中心" summary:"当前登录用户消息列表"`
|
||||
model.AppMessageListParam
|
||||
}
|
||||
|
||||
type MessageListRes struct {
|
||||
Items []*model.AppMessageModel `json:"items" dc:"消息列表"`
|
||||
Total int `json:"total" dc:"总数"`
|
||||
}
|
||||
|
||||
type MessageDetailReq struct {
|
||||
g.Meta `path:"/message/detail" method:"get" tags:"APP-消息中心" summary:"当前登录用户消息详情"`
|
||||
model.AppMessageDetailParam
|
||||
}
|
||||
|
||||
type MessageDetailRes struct {
|
||||
Message *model.AppMessageModel `json:"message" dc:"消息详情"`
|
||||
}
|
||||
|
||||
type MessageReadReq struct {
|
||||
g.Meta `path:"/message/read" method:"post" tags:"APP-消息中心" summary:"标记当前登录用户消息为已读"`
|
||||
model.AppMessageReadParam
|
||||
}
|
||||
|
||||
type MessageReadRes struct{}
|
||||
@@ -0,0 +1,24 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
)
|
||||
|
||||
type WarningPreferenceReq struct {
|
||||
g.Meta `path:"/user/wechat/warning-preference" method:"get" tags:"APP-用户" summary:"读取微信预警提醒偏好"`
|
||||
}
|
||||
type WarningPreferenceRes struct {
|
||||
model.AppWarningPreferenceModel
|
||||
}
|
||||
type SaveWarningPreferenceReq struct {
|
||||
g.Meta `path:"/user/wechat/warning-preference" method:"post" tags:"APP-用户" summary:"保存微信预警提醒偏好"`
|
||||
model.AppWarningPreferenceParam
|
||||
}
|
||||
type SaveWarningPreferenceRes struct {
|
||||
model.AppWarningPreferenceModel
|
||||
}
|
||||
type UnbindWechatReq struct {
|
||||
g.Meta `path:"/user/wechat/unbind" method:"post" tags:"APP-用户" summary:"解除当前账号微信绑定"`
|
||||
}
|
||||
type UnbindWechatRes struct{ model.AppWechatBindModel }
|
||||
@@ -0,0 +1,25 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type OpenDiagnosisInfoReq struct {
|
||||
g.Meta `path:"/open/diagnosis/info" method:"post" tags:"APP-开放诊断" summary:"免登录查询SIM卡诊断信息"`
|
||||
model.AppOpenDiagnosisInfoParam
|
||||
}
|
||||
|
||||
type OpenDiagnosisInfoRes struct {
|
||||
*model.AppDiagnosisInfoModel
|
||||
}
|
||||
|
||||
type OpenDiagnosisFlowReq struct {
|
||||
g.Meta `path:"/open/diagnosis/flow" method:"post" tags:"APP-开放诊断" summary:"免登录查询SIM卡流量趋势"`
|
||||
model.AppOpenDiagnosisFlowParam
|
||||
}
|
||||
|
||||
type OpenDiagnosisFlowRes struct {
|
||||
*model.AppDiagnosisFlowModel
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type OrderListReq struct {
|
||||
g.Meta `path:"/order/list" method:"get" tags:"APP-订单" summary:"登录用户查询自己的支付订单"`
|
||||
model.AppOrderListParam
|
||||
}
|
||||
|
||||
type OrderListRes struct {
|
||||
Items []*model.AppOrderModel `json:"items" dc:"订单列表"`
|
||||
Total int `json:"total" dc:"总数"`
|
||||
}
|
||||
|
||||
type OrderDetailReq struct {
|
||||
g.Meta `path:"/order/detail" method:"get" tags:"APP-订单" summary:"登录用户查询自己的支付订单详情"`
|
||||
model.AppOrderDetailParam
|
||||
}
|
||||
|
||||
type OrderDetailRes struct {
|
||||
Order *model.AppOrderModel `json:"order" dc:"订单详情"`
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type UserInfoReq struct {
|
||||
g.Meta `path:"/user/info" method:"get" tags:"APP-用户" summary:"当前用户信息"`
|
||||
}
|
||||
|
||||
type UserInfoRes struct {
|
||||
model.AppUserInfoModel
|
||||
}
|
||||
|
||||
type UpdateUserInfoReq struct {
|
||||
g.Meta `path:"/user/info" method:"post" tags:"APP-用户" summary:"修改当前用户信息"`
|
||||
model.AppUpdateUserInfoParam
|
||||
}
|
||||
|
||||
type UpdateUserInfoRes struct {
|
||||
model.AppUserInfoModel
|
||||
}
|
||||
|
||||
type BindWechatReq struct {
|
||||
g.Meta `path:"/user/wechat/bind" method:"post" tags:"APP-用户" summary:"绑定或更换微信用户"`
|
||||
model.AppWechatBindParam
|
||||
}
|
||||
|
||||
type BindWechatRes struct {
|
||||
model.AppWechatBindModel
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type WarningConfigListReq struct {
|
||||
g.Meta `path:"/warning/config/list" method:"get" tags:"APP-预警" summary:"查询单卡预警配置" x-check-permission:"cpm:iot:simWarningConfig:list,cpm:iot:simWarningConfig:view,cpm:iot:tSimWarningConfig:input:submit"`
|
||||
model.AppWarningConfigListParam
|
||||
}
|
||||
|
||||
type WarningConfigListRes struct {
|
||||
model.AppWarningConfigListModel
|
||||
}
|
||||
|
||||
type WarningConfigSaveReq struct {
|
||||
g.Meta `path:"/warning/config/save" method:"post" tags:"APP-预警" summary:"保存单卡预警配置" x-check-permission:"cpm:iot:simWarningConfig:save,cpm:iot:tSimWarningConfig:input:submit"`
|
||||
model.AppWarningConfigSaveParam
|
||||
}
|
||||
|
||||
type WarningConfigSaveRes struct {
|
||||
model.AppWarningConfigSaveModel
|
||||
}
|
||||
|
||||
type WarningConfigNotifyReq struct {
|
||||
g.Meta `path:"/warning/config/notify" method:"post" tags:"APP-预警" summary:"设置单卡小程序预警通知" x-check-permission:"cpm:iot:simWarningConfig:save,cpm:iot:tSimWarningConfig:input:submit"`
|
||||
model.AppWarningConfigNotifyParam
|
||||
}
|
||||
|
||||
type WarningConfigNotifyRes struct {
|
||||
model.AppWarningConfigNotifyModel
|
||||
}
|
||||
|
||||
type WarningConfigMetaReq struct {
|
||||
g.Meta `path:"/warning/config/meta" method:"get" tags:"APP-预警" summary:"查询预警订阅配置元信息" x-check-permission:"cpm:iot:simWarningConfig:list,cpm:iot:simWarningConfig:view,cpm:iot:tSimWarningConfig:input:submit"`
|
||||
}
|
||||
|
||||
type WarningConfigMetaRes struct {
|
||||
model.AppWarningConfigMetaModel
|
||||
}
|
||||
|
||||
type WarningConfigBatchSaveReq struct {
|
||||
g.Meta `path:"/warning/config/batch-save" method:"post" tags:"APP-预警" summary:"批量保存单卡预警配置" x-check-permission:"cpm:iot:simWarningConfig:save,cpm:iot:tSimWarningConfig:input:submit,cpm:iot:tSimWarningConfig:range:submit"`
|
||||
model.AppWarningConfigBatchSaveParam
|
||||
}
|
||||
|
||||
type WarningConfigBatchSaveRes struct {
|
||||
model.AppWarningConfigBatchSaveModel
|
||||
}
|
||||
|
||||
type WarningConfigBatchNotifyReq struct {
|
||||
g.Meta `path:"/warning/config/batch-notify" method:"post" tags:"APP-预警" summary:"批量设置单卡小程序预警通知" x-check-permission:"cpm:iot:simWarningConfig:save,cpm:iot:tSimWarningConfig:input:submit,cpm:iot:tSimWarningConfig:range:submit"`
|
||||
model.AppWarningConfigBatchNotifyParam
|
||||
}
|
||||
|
||||
type WarningConfigBatchNotifyRes struct {
|
||||
model.AppWarningConfigBatchNotifyModel
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type WorkOrderListReq struct {
|
||||
g.Meta `path:"/work-order/list" method:"get" tags:"APP-工单" summary:"当前登录用户工单列表" x-check-permission:"cpm:gen:tWoMain:list"`
|
||||
model.AppWorkOrderListParam
|
||||
}
|
||||
|
||||
type WorkOrderListRes struct {
|
||||
Items []*model.AppWorkOrderModel `json:"items" dc:"工单列表"`
|
||||
Total int `json:"total" dc:"总数"`
|
||||
}
|
||||
|
||||
type WorkOrderDetailReq struct {
|
||||
g.Meta `path:"/work-order/detail" method:"get" tags:"APP-工单" summary:"当前登录用户工单详情" x-check-permission:"cpm:gen:tWoMain:view,cpm:gen:tWoMain:list"`
|
||||
model.AppWorkOrderDetailParam
|
||||
}
|
||||
|
||||
type WorkOrderDetailRes struct {
|
||||
WorkOrder *model.AppWorkOrderModel `json:"workOrder" dc:"工单详情"`
|
||||
}
|
||||
|
||||
type WorkOrderCreateReq struct {
|
||||
g.Meta `path:"/work-order/create" method:"post" tags:"APP-工单" summary:"提交工单" x-check-permission:"cpm:gen:tWoMain:edit"`
|
||||
model.AppWorkOrderCreateParam
|
||||
}
|
||||
|
||||
type WorkOrderCreateRes struct {
|
||||
WorkOrder *model.AppWorkOrderModel `json:"workOrder" dc:"工单详情"`
|
||||
}
|
||||
|
||||
type WorkOrderUploadReq struct {
|
||||
g.Meta `path:"/work-order/upload" method:"post" tags:"APP-工单" summary:"上传工单附件"`
|
||||
*model.SysOssUploadParam
|
||||
}
|
||||
|
||||
type WorkOrderUploadRes struct {
|
||||
*model.SysOssUploadModel
|
||||
}
|
||||
|
||||
type WorkOrderActionReq struct {
|
||||
g.Meta `path:"/work-order/action" method:"post" tags:"APP-工单" summary:"按权限跟进或办理工单" x-check-permission:"cpm:gen:tWoMain:view,cpm:gen:tWoMain:list"`
|
||||
model.AppWorkOrderActionParam
|
||||
}
|
||||
type WorkOrderActionRes struct{}
|
||||
@@ -0,0 +1,16 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package common
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/api/common/v1"
|
||||
)
|
||||
|
||||
type ICommonV1 interface {
|
||||
SysOssUpload(ctx context.Context, req *v1.SysOssUploadReq) (res *v1.SysOssUploadRes, err error)
|
||||
SysOssDownload(ctx context.Context, req *v1.SysOssDownloadReq) (res *v1.SysOssDownloadRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type SysOssUploadReq struct {
|
||||
g.Meta `path:"/oss/upload" method:"post" tags:"系统-存储管理" summary:"上传文件" x-check-permission:"cpm:system.oss.upload"`
|
||||
*model.SysOssUploadParam
|
||||
}
|
||||
|
||||
type SysOssUploadRes struct {
|
||||
*model.SysOssUploadModel
|
||||
}
|
||||
type SysOssDownloadReq struct {
|
||||
g.Meta `path:"/oss/download" method:"get" tags:"系统-存储管理" summary:"下载文件" x-check-permission:"cpm:system.oss.download"`
|
||||
*model.SysOssDownloadParam
|
||||
}
|
||||
|
||||
type SysOssDownloadRes struct {
|
||||
*model.SysOssDownloadModel
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package testdemo
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/api/gen/testdemo/v1"
|
||||
)
|
||||
|
||||
type ITestdemoV1 interface {
|
||||
TestDemoList(ctx context.Context, req *v1.TestDemoListReq) (res *v1.TestDemoListRes, err error)
|
||||
TestDemoExport(ctx context.Context, req *v1.TestDemoExportReq) (res *v1.TestDemoExportRes, err error)
|
||||
TestDemoView(ctx context.Context, req *v1.TestDemoViewReq) (res *v1.TestDemoViewRes, err error)
|
||||
TestDemoEdit(ctx context.Context, req *v1.TestDemoEditReq) (res *v1.TestDemoEditRes, err error)
|
||||
TestDemoDelete(ctx context.Context, req *v1.TestDemoDeleteReq) (res *v1.TestDemoDeleteRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// Package testdemo
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
// @AutoGenerate Version
|
||||
package v1 //testdemo
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/genin"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// ListReq 查询测试单表列表
|
||||
type TestDemoListReq struct {
|
||||
g.Meta `path:"/testDemo/list" method:"get" tags:"测试单表" summary:"获取测试单表列表" x-check-permission:"cpm:gen:testDemo:list"`
|
||||
genin.TestDemoListParam
|
||||
}
|
||||
|
||||
type TestDemoListRes struct {
|
||||
response.PageResult
|
||||
Items []*genin.TestDemoListModel `json:"items" dc:"数据列表"`
|
||||
}
|
||||
|
||||
// ExportReq 导出测试单表列表
|
||||
type TestDemoExportReq struct {
|
||||
g.Meta `path:"/testDemo/export" method:"post" tags:"测试单表" summary:"导出测试单表列表" x-check-permission:"cpm:gen:testDemo:export"`
|
||||
genin.TestDemoListParam
|
||||
}
|
||||
|
||||
type TestDemoExportRes struct{}
|
||||
|
||||
// ViewReq 获取测试单表指定信息
|
||||
type TestDemoViewReq struct {
|
||||
g.Meta `path:"/testDemo/view" method:"get" tags:"测试单表" summary:"获取测试单表指定信息" x-check-permission:"cpm:gen:testDemo:view"`
|
||||
genin.TestDemoViewParam
|
||||
}
|
||||
|
||||
type TestDemoViewRes struct {
|
||||
*genin.TestDemoViewModel
|
||||
}
|
||||
|
||||
// EditReq 修改/新增测试单表
|
||||
type TestDemoEditReq struct {
|
||||
g.Meta `path:"/testDemo/edit" method:"post" tags:"测试单表" summary:"修改/新增测试单表" x-check-permission:"cpm:gen:testDemo:edit"`
|
||||
genin.TestDemoEditParam
|
||||
}
|
||||
|
||||
type TestDemoEditRes struct{}
|
||||
|
||||
// DeleteReq 删除测试单表
|
||||
type TestDemoDeleteReq struct {
|
||||
g.Meta `path:"/testDemo/delete" method:"post" tags:"测试单表" summary:"删除测试单表" x-check-permission:"cpm:gen:testDemo:delete"`
|
||||
genin.TestDemoDeleteParam
|
||||
}
|
||||
|
||||
type TestDemoDeleteRes struct{}
|
||||
@@ -0,0 +1,20 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package testtree
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/api/gen/testtree/v1"
|
||||
)
|
||||
|
||||
type ITesttreeV1 interface {
|
||||
TestTreeList(ctx context.Context, req *v1.TestTreeListReq) (res *v1.TestTreeListRes, err error)
|
||||
TestTreeExport(ctx context.Context, req *v1.TestTreeExportReq) (res *v1.TestTreeExportRes, err error)
|
||||
TestTreeView(ctx context.Context, req *v1.TestTreeViewReq) (res *v1.TestTreeViewRes, err error)
|
||||
TestTreeEdit(ctx context.Context, req *v1.TestTreeEditReq) (res *v1.TestTreeEditRes, err error)
|
||||
TestTreeDelete(ctx context.Context, req *v1.TestTreeDeleteReq) (res *v1.TestTreeDeleteRes, err error)
|
||||
TestTreeTreeOption(ctx context.Context, req *v1.TestTreeTreeOptionReq) (res *v1.TestTreeTreeOptionRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
// Package testtree
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2026 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
// @AutoGenerate Version
|
||||
package v1 //testtree
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/genin"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/utility/tree"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// ListReq 查询测试树表列表
|
||||
type TestTreeListReq struct {
|
||||
g.Meta `path:"/testTree/list" method:"get" tags:"测试树表" summary:"获取测试树表列表" x-check-permission:"cpm:gen:testTree:list"`
|
||||
genin.TestTreeListParam
|
||||
}
|
||||
|
||||
type TestTreeListRes struct {
|
||||
response.PageResult
|
||||
Items []*genin.TestTreeListModel `json:"items" dc:"数据列表"`
|
||||
}
|
||||
|
||||
// ExportReq 导出测试树表列表
|
||||
type TestTreeExportReq struct {
|
||||
g.Meta `path:"/testTree/export" method:"post" tags:"测试树表" summary:"导出测试树表列表" x-check-permission:"cpm:gen:testTree:export"`
|
||||
genin.TestTreeListParam
|
||||
}
|
||||
|
||||
type TestTreeExportRes struct{}
|
||||
|
||||
// ViewReq 获取测试树表指定信息
|
||||
type TestTreeViewReq struct {
|
||||
g.Meta `path:"/testTree/view" method:"get" tags:"测试树表" summary:"获取测试树表指定信息" x-check-permission:"cpm:gen:testTree:view"`
|
||||
genin.TestTreeViewParam
|
||||
}
|
||||
|
||||
type TestTreeViewRes struct {
|
||||
*genin.TestTreeViewModel
|
||||
}
|
||||
|
||||
// EditReq 修改/新增测试树表
|
||||
type TestTreeEditReq struct {
|
||||
g.Meta `path:"/testTree/edit" method:"post" tags:"测试树表" summary:"修改/新增测试树表" x-check-permission:"cpm:gen:testTree:edit"`
|
||||
genin.TestTreeEditParam
|
||||
}
|
||||
|
||||
type TestTreeEditRes struct{}
|
||||
|
||||
// DeleteReq 删除测试树表
|
||||
type TestTreeDeleteReq struct {
|
||||
g.Meta `path:"/testTree/delete" method:"post" tags:"测试树表" summary:"删除测试树表" x-check-permission:"cpm:gen:testTree:delete"`
|
||||
genin.TestTreeDeleteParam
|
||||
}
|
||||
|
||||
type TestTreeDeleteRes struct{}
|
||||
|
||||
// TreeOptionReq 获取测试树表关系树选项
|
||||
type TestTreeTreeOptionReq struct {
|
||||
g.Meta `path:"/testTree/treeOption" method:"get" tags:"测试树表" summary:"获取测试树表关系树选项" x-check-permission:"cpm:gen:testTree:treeOption"`
|
||||
}
|
||||
|
||||
type TestTreeTreeOptionRes []tree.Node
|
||||
@@ -0,0 +1,25 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package gen_codes
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/api/gen_codes/v1"
|
||||
)
|
||||
|
||||
type IGenCodesV1 interface {
|
||||
SysGenTableList(ctx context.Context, req *v1.SysGenTableListReq) (res *v1.SysGenTableListRes, err error)
|
||||
SysGenTableView(ctx context.Context, req *v1.SysGenTableViewReq) (res *v1.SysGenTableViewRes, err error)
|
||||
SysGenTableAdd(ctx context.Context, req *v1.SysGenTableAddReq) (res *v1.SysGenTableAddRes, err error)
|
||||
SysGenTableEdit(ctx context.Context, req *v1.SysGenTableEditReq) (res *v1.SysGenTableEditRes, err error)
|
||||
SysGenTableDelete(ctx context.Context, req *v1.SysGenTableDeleteReq) (res *v1.SysGenTableDeleteRes, err error)
|
||||
SysGenTableSelects(ctx context.Context, req *v1.SysGenTableSelectsReq) (res *v1.SysGenTableSelectsRes, err error)
|
||||
SysGenTableTableSelect(ctx context.Context, req *v1.SysGenTableTableSelectReq) (res *v1.SysGenTableTableSelectRes, err error)
|
||||
SysGenTableColumnSelect(ctx context.Context, req *v1.SysGenTableColumnSelectReq) (res *v1.SysGenTableColumnSelectRes, err error)
|
||||
SysGenTableColumnList(ctx context.Context, req *v1.SysGenTableColumnListReq) (res *v1.SysGenTableColumnListRes, err error)
|
||||
SysGenTablePreview(ctx context.Context, req *v1.SysGenTablePreviewReq) (res *v1.SysGenTablePreviewRes, err error)
|
||||
SysGenTableBuild(ctx context.Context, req *v1.SysGenTableBuildReq) (res *v1.SysGenTableBuildRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type SysGenTableListReq struct {
|
||||
g.Meta `path:"/genTable/list" method:"get" tags:"工具-代码生成" summary:"获取代码生成列表" x-check-permission:"cpm:tool:gen:list"`
|
||||
*model.SysGenTableListParam
|
||||
}
|
||||
|
||||
type SysGenTableListRes struct {
|
||||
response.PageResult
|
||||
Items []*model.SysGenTableListModel `json:"items"`
|
||||
}
|
||||
|
||||
type SysGenTableViewReq struct {
|
||||
g.Meta `path:"/genTable/view" method:"get" tags:"工具-代码生成" summary:"获取代码生成详情" x-check-permission:"cpm:tool:gen:query"`
|
||||
*model.SysGenTableViewParam
|
||||
}
|
||||
|
||||
type SysGenTableViewRes struct {
|
||||
*model.SysGenTableViewModel
|
||||
}
|
||||
|
||||
type SysGenTableAddReq struct {
|
||||
g.Meta `path:"/genTable/add" method:"post" tags:"工具-代码生成" summary:"新增代码生成" x-check-permission:"cpm:tool:gen:import"`
|
||||
*model.SysGenTableAddParam
|
||||
}
|
||||
|
||||
type SysGenTableAddRes struct {
|
||||
*model.SysGenTableAddModel
|
||||
}
|
||||
|
||||
type SysGenTableEditReq struct {
|
||||
g.Meta `path:"/genTable/edit" method:"post" tags:"工具-代码生成" summary:"修改代码生成" x-check-permission:"cpm:tool:gen:edit"`
|
||||
*model.SysGenTableEditParam
|
||||
}
|
||||
|
||||
type SysGenTableEditRes struct {
|
||||
*model.SysGenTableEditModel
|
||||
}
|
||||
|
||||
type SysGenTableDeleteReq struct {
|
||||
g.Meta `path:"/genTable/delete" method:"post" tags:"工具-代码生成" summary:"删除代码生成" x-check-permission:"cpm:tool:gen:remove"`
|
||||
*model.SysGenTableDeleteParam
|
||||
}
|
||||
|
||||
type SysGenTableDeleteRes struct {
|
||||
*model.SysGenTableDeleteModel
|
||||
}
|
||||
|
||||
type SysGenTableSelectsReq struct {
|
||||
g.Meta `path:"/genTable/selects" method:"get" tags:"工具-代码生成" summary:"获取代码生成选择项" x-check-permission:"cpm:tool:gen:list"`
|
||||
}
|
||||
|
||||
type SysGenTableSelectsRes struct {
|
||||
*model.SelectsModel
|
||||
}
|
||||
|
||||
type SysGenTableTableSelectReq struct {
|
||||
g.Meta `path:"/genTable/tableSelect" method:"get" tags:"工具-代码生成" summary:"获取代码生成表选择项" x-check-permission:"cpm:tool:gen:list"`
|
||||
*model.GenCodesTableSelectParam
|
||||
}
|
||||
|
||||
type SysGenTableTableSelectRes struct {
|
||||
Items []*model.GenCodesTableSelectModel `json:"items"`
|
||||
}
|
||||
|
||||
type SysGenTableColumnSelectReq struct {
|
||||
g.Meta `path:"/genTable/columnSelect" method:"get" tags:"工具-代码生成" summary:"获取代码生成字段选择项" x-check-permission:"cpm:tool:gen:list"`
|
||||
*model.GenCodesColumnSelectParam
|
||||
}
|
||||
|
||||
type SysGenTableColumnSelectRes struct {
|
||||
Items []*model.GenCodesColumnSelectModel `json:"items"`
|
||||
}
|
||||
|
||||
type SysGenTableColumnListReq struct {
|
||||
g.Meta `path:"/genTable/columnList" method:"get" tags:"工具-代码生成" summary:"获取代码生成字段列表" x-check-permission:"cpm:tool:gen:list"`
|
||||
*model.GenCodesColumnListParam
|
||||
}
|
||||
|
||||
type SysGenTableColumnListRes struct {
|
||||
Items []*model.GenCodesColumnListModel `json:"items"`
|
||||
}
|
||||
|
||||
type SysGenTablePreviewReq struct {
|
||||
g.Meta `path:"/genTable/preview" method:"post" tags:"工具-代码生成" summary:"生成预览" x-check-permission:"cpm:tool:gen:preview"`
|
||||
*model.GenCodesPreviewParam
|
||||
}
|
||||
|
||||
type SysGenTablePreviewRes struct {
|
||||
*model.GenCodesPreviewModel
|
||||
}
|
||||
|
||||
type SysGenTableBuildReq struct {
|
||||
g.Meta `path:"/genTable/build" method:"post" tags:"工具-代码生成" summary:"构建" x-check-permission:"cpm:tool:gen:code"`
|
||||
*model.GenCodesBuildParam
|
||||
}
|
||||
|
||||
type SysGenTableBuildRes struct {
|
||||
*model.GenCodesBuildModel
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package info
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/api/info/v1"
|
||||
)
|
||||
|
||||
type IInfoV1 interface {
|
||||
Info(ctx context.Context, req *v1.InfoReq) (res *v1.InfoRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type InfoReq struct {
|
||||
g.Meta `path:"/info" method:"get" tags:"服务信息" summary:"服务信息"`
|
||||
}
|
||||
|
||||
type InfoRes struct {
|
||||
*model.InfoModel
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package monitor
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/api/monitor/v1"
|
||||
)
|
||||
|
||||
type IMonitorV1 interface {
|
||||
RedisInfo(ctx context.Context, req *v1.RedisInfoReq) (res *v1.RedisInfoRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type RedisInfoReq struct {
|
||||
g.Meta `path:"/cache" method:"get" tags:"监控-缓存监控" summary:"获取缓存监控信息" x-check-permission:"cpm:monitor:cache:list"`
|
||||
}
|
||||
|
||||
type RedisInfoRes struct {
|
||||
DBSize int `json:"dbSize"`
|
||||
CommandStats []*CommandStats `json:"commandStats"`
|
||||
Info map[string]string `json:"info"`
|
||||
}
|
||||
|
||||
type CommandStats struct {
|
||||
Name string `json:"name"`
|
||||
Value string `json:"value"`
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package system
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/api/system/v1"
|
||||
)
|
||||
|
||||
type ISystemV1 interface {
|
||||
Login(ctx context.Context, req *v1.LoginReq) (res *v1.LoginRes, err error)
|
||||
RefreshToken(ctx context.Context, req *v1.RefreshTokenReq) (res *v1.RefreshTokenRes, err error)
|
||||
Logout(ctx context.Context, req *v1.LogoutReq) (res *v1.LogoutRes, err error)
|
||||
GetAccessCodes(ctx context.Context, req *v1.GetAccessCodesReq) (res *v1.GetAccessCodesRes, err error)
|
||||
TenantList(ctx context.Context, req *v1.TenantListReq) (res *v1.TenantListRes, err error)
|
||||
GetCaptcha(ctx context.Context, req *v1.GetCaptchaReq) (res *v1.GetCaptchaRes, err error)
|
||||
SysClientList(ctx context.Context, req *v1.SysClientListReq) (res *v1.SysClientListRes, err error)
|
||||
SysClientView(ctx context.Context, req *v1.SysClientViewReq) (res *v1.SysClientViewRes, err error)
|
||||
SysClientAdd(ctx context.Context, req *v1.SysClientAddReq) (res *v1.SysClientAddRes, err error)
|
||||
SysClientEdit(ctx context.Context, req *v1.SysClientEditReq) (res *v1.SysClientEditRes, err error)
|
||||
SysClientDelete(ctx context.Context, req *v1.SysClientDeleteReq) (res *v1.SysClientDeleteRes, err error)
|
||||
SysClientStatus(ctx context.Context, req *v1.SysClientStatusReq) (res *v1.SysClientStatusRes, err error)
|
||||
GetConfigList(ctx context.Context, req *v1.GetConfigListReq) (res *v1.GetConfigListRes, err error)
|
||||
AddConfig(ctx context.Context, req *v1.AddConfigReq) (res *v1.AddConfigRes, err error)
|
||||
EditConfig(ctx context.Context, req *v1.EditConfigReq) (res *v1.EditConfigRes, err error)
|
||||
DeleteConfig(ctx context.Context, req *v1.DeleteConfigReq) (res *v1.DeleteConfigRes, err error)
|
||||
GetConfigById(ctx context.Context, req *v1.GetConfigByIdReq) (res *v1.GetConfigByIdRes, err error)
|
||||
DeptList(ctx context.Context, req *v1.DeptListReq) (res *v1.DeptListRes, err error)
|
||||
DeptTree(ctx context.Context, req *v1.DeptTreeReq) (res *v1.DeptTreeRes, err error)
|
||||
DeptAdd(ctx context.Context, req *v1.DeptAddReq) (res *v1.DeptAddRes, err error)
|
||||
DeptEdit(ctx context.Context, req *v1.DeptEditReq) (res *v1.DeptEditRes, err error)
|
||||
DeptDelete(ctx context.Context, req *v1.DeptDeleteReq) (res *v1.DeptDeleteRes, err error)
|
||||
DeptView(ctx context.Context, req *v1.DeptViewReq) (res *v1.DeptViewRes, err error)
|
||||
SysDictTypeList(ctx context.Context, req *v1.SysDictTypeListReq) (res *v1.SysDictTypeListRes, err error)
|
||||
SysDictTypeAdd(ctx context.Context, req *v1.SysDictTypeAddReq) (res *v1.SysDictTypeAddRes, err error)
|
||||
SysDictTypeEdit(ctx context.Context, req *v1.SysDictTypeEditReq) (res *v1.SysDictTypeEditRes, err error)
|
||||
SysDictTypeDelete(ctx context.Context, req *v1.SysDictTypeDeleteReq) (res *v1.SysDictTypeDeleteRes, err error)
|
||||
SysDictTypeView(ctx context.Context, req *v1.SysDictTypeViewReq) (res *v1.SysDictTypeViewRes, err error)
|
||||
SysDictDataList(ctx context.Context, req *v1.SysDictDataListReq) (res *v1.SysDictDataListRes, err error)
|
||||
SysDictDataAdd(ctx context.Context, req *v1.SysDictDataAddReq) (res *v1.SysDictDataAddRes, err error)
|
||||
SysDictDataEdit(ctx context.Context, req *v1.SysDictDataEditReq) (res *v1.SysDictDataEditRes, err error)
|
||||
SysDictDataDelete(ctx context.Context, req *v1.SysDictDataDeleteReq) (res *v1.SysDictDataDeleteRes, err error)
|
||||
SysDictDataView(ctx context.Context, req *v1.SysDictDataViewReq) (res *v1.SysDictDataViewRes, err error)
|
||||
SysJobList(ctx context.Context, req *v1.SysJobListReq) (res *v1.SysJobListRes, err error)
|
||||
SysJobView(ctx context.Context, req *v1.SysJobViewReq) (res *v1.SysJobViewRes, err error)
|
||||
SysJobAdd(ctx context.Context, req *v1.SysJobAddReq) (res *v1.SysJobAddRes, err error)
|
||||
SysJobUpdate(ctx context.Context, req *v1.SysJobUpdateReq) (res *v1.SysJobUpdateRes, err error)
|
||||
SysJobUpdateStatus(ctx context.Context, req *v1.SysJobUpdateStatusReq) (res *v1.SysJobUpdateStatusRes, err error)
|
||||
SysJobDelete(ctx context.Context, req *v1.SysJobDeleteReq) (res *v1.SysJobDeleteRes, err error)
|
||||
SysJobExec(ctx context.Context, req *v1.SysJobExecReq) (res *v1.SysJobExecRes, err error)
|
||||
ListLogininfor(ctx context.Context, req *v1.ListLogininforReq) (res *v1.ListLogininforRes, err error)
|
||||
DeleteLogininfor(ctx context.Context, req *v1.DeleteLogininforReq) (res *v1.DeleteLogininforRes, err error)
|
||||
MenuAll(ctx context.Context, req *v1.MenuAllReq) (res *v1.MenuAllRes, err error)
|
||||
MenuList(ctx context.Context, req *v1.MenuListReq) (res *v1.MenuListRes, err error)
|
||||
MenuView(ctx context.Context, req *v1.MenuViewReq) (res *v1.MenuViewRes, err error)
|
||||
MenuAdd(ctx context.Context, req *v1.MenuAddReq) (res *v1.MenuAddRes, err error)
|
||||
MenuUpdate(ctx context.Context, req *v1.MenuUpdateReq) (res *v1.MenuUpdateRes, err error)
|
||||
MenuDelete(ctx context.Context, req *v1.MenuDeleteReq) (res *v1.MenuDeleteRes, err error)
|
||||
MenuTree(ctx context.Context, req *v1.MenuTreeReq) (res *v1.MenuTreeRes, err error)
|
||||
SysNoticeList(ctx context.Context, req *v1.SysNoticeListReq) (res *v1.SysNoticeListRes, err error)
|
||||
SysNoticeAdd(ctx context.Context, req *v1.SysNoticeAddReq) (res *v1.SysNoticeAddRes, err error)
|
||||
SysNoticeEdit(ctx context.Context, req *v1.SysNoticeEditReq) (res *v1.SysNoticeEditRes, err error)
|
||||
SysNoticeDelete(ctx context.Context, req *v1.SysNoticeDeleteReq) (res *v1.SysNoticeDeleteRes, err error)
|
||||
SysNoticeView(ctx context.Context, req *v1.SysNoticeViewReq) (res *v1.SysNoticeViewRes, err error)
|
||||
SysUserOnlineList(ctx context.Context, req *v1.SysUserOnlineListReq) (res *v1.SysUserOnlineListRes, err error)
|
||||
SysUserOnlineDelete(ctx context.Context, req *v1.SysUserOnlineDeleteReq) (res *v1.SysUserOnlineDeleteRes, err error)
|
||||
GetOperLogList(ctx context.Context, req *v1.GetOperLogListReq) (res *v1.GetOperLogListRes, err error)
|
||||
SysOssList(ctx context.Context, req *v1.SysOssListReq) (res *v1.SysOssListRes, err error)
|
||||
SysOssView(ctx context.Context, req *v1.SysOssViewReq) (res *v1.SysOssViewRes, err error)
|
||||
SysOssDelete(ctx context.Context, req *v1.SysOssDeleteReq) (res *v1.SysOssDeleteRes, err error)
|
||||
SysOssConfigList(ctx context.Context, req *v1.SysOssConfigListReq) (res *v1.SysOssConfigListRes, err error)
|
||||
SysOssConfigView(ctx context.Context, req *v1.SysOssConfigViewReq) (res *v1.SysOssConfigViewRes, err error)
|
||||
SysOssConfigAdd(ctx context.Context, req *v1.SysOssConfigAddReq) (res *v1.SysOssConfigAddRes, err error)
|
||||
SysOssConfigEdit(ctx context.Context, req *v1.SysOssConfigEditReq) (res *v1.SysOssConfigEditRes, err error)
|
||||
SysOssConfigDelete(ctx context.Context, req *v1.SysOssConfigDeleteReq) (res *v1.SysOssConfigDeleteRes, err error)
|
||||
PostList(ctx context.Context, req *v1.PostListReq) (res *v1.PostListRes, err error)
|
||||
PostAdd(ctx context.Context, req *v1.PostAddReq) (res *v1.PostAddRes, err error)
|
||||
PostEdit(ctx context.Context, req *v1.PostEditReq) (res *v1.PostEditRes, err error)
|
||||
PostDelete(ctx context.Context, req *v1.PostDeleteReq) (res *v1.PostDeleteRes, err error)
|
||||
PostView(ctx context.Context, req *v1.PostViewReq) (res *v1.PostViewRes, err error)
|
||||
PostExport(ctx context.Context, req *v1.PostExportReq) (res *v1.PostExportRes, err error)
|
||||
QrcodeLogin(ctx context.Context, req *v1.QrcodeLoginReq) (res *v1.QrcodeLoginRes, err error)
|
||||
QrcodeLoginStatus(ctx context.Context, req *v1.QrcodeLoginStatusReq) (res *v1.QrcodeLoginStatusRes, err error)
|
||||
QrcodeBind(ctx context.Context, req *v1.QrcodeBindReq) (res *v1.QrcodeBindRes, err error)
|
||||
QrcodeBindStatus(ctx context.Context, req *v1.QrcodeBindStatusReq) (res *v1.QrcodeBindStatusRes, err error)
|
||||
QrcodeScanCallback(ctx context.Context, req *v1.QrcodeScanCallbackReq) (res *v1.QrcodeScanCallbackRes, err error)
|
||||
QrcodeRegisterAndBindOpenId(ctx context.Context, req *v1.QrcodeRegisterAndBindOpenIdReq) (res *v1.QrcodeRegisterAndBindOpenIdRes, err error)
|
||||
QrcodeLoginAndBindOpenId(ctx context.Context, req *v1.QrcodeLoginAndBindOpenIdReq) (res *v1.QrcodeLoginAndBindOpenIdRes, err error)
|
||||
QrcodeLoginSelectUser(ctx context.Context, req *v1.QrcodeLoginSelectUserReq) (res *v1.QrcodeLoginSelectUserRes, err error)
|
||||
RoleList(ctx context.Context, req *v1.RoleListReq) (res *v1.RoleListRes, err error)
|
||||
RoleAdd(ctx context.Context, req *v1.RoleAddReq) (res *v1.RoleAddRes, err error)
|
||||
RoleEdit(ctx context.Context, req *v1.RoleEditReq) (res *v1.RoleEditRes, err error)
|
||||
RoleDelete(ctx context.Context, req *v1.RoleDeleteReq) (res *v1.RoleDeleteRes, err error)
|
||||
RoleView(ctx context.Context, req *v1.RoleViewReq) (res *v1.RoleViewRes, err error)
|
||||
RoleDataScopeEdit(ctx context.Context, req *v1.RoleDataScopeEditReq) (res *v1.RoleDataScopeEditRes, err error)
|
||||
SysSocialList(ctx context.Context, req *v1.SysSocialListReq) (res *v1.SysSocialListRes, err error)
|
||||
SysSocialDelete(ctx context.Context, req *v1.SysSocialDeleteReq) (res *v1.SysSocialDeleteRes, err error)
|
||||
SysNoticeUserList(ctx context.Context, req *v1.SysNoticeUserListReq) (res *v1.SysNoticeUserListRes, err error)
|
||||
SysNoticeUserExport(ctx context.Context, req *v1.SysNoticeUserExportReq) (res *v1.SysNoticeUserExportRes, err error)
|
||||
SysNoticeUserView(ctx context.Context, req *v1.SysNoticeUserViewReq) (res *v1.SysNoticeUserViewRes, err error)
|
||||
SysNoticeUserEdit(ctx context.Context, req *v1.SysNoticeUserEditReq) (res *v1.SysNoticeUserEditRes, err error)
|
||||
SysNoticeUserDelete(ctx context.Context, req *v1.SysNoticeUserDeleteReq) (res *v1.SysNoticeUserDeleteRes, err error)
|
||||
SysNoticeUserStatus(ctx context.Context, req *v1.SysNoticeUserStatusReq) (res *v1.SysNoticeUserStatusRes, err error)
|
||||
SysNoticeUserRead(ctx context.Context, req *v1.SysNoticeUserReadReq) (res *v1.SysNoticeUserReadRes, err error)
|
||||
SysTenantList(ctx context.Context, req *v1.SysTenantListReq) (res *v1.SysTenantListRes, err error)
|
||||
SysTenantAdd(ctx context.Context, req *v1.SysTenantAddReq) (res *v1.SysTenantAddRes, err error)
|
||||
SysTenantEdit(ctx context.Context, req *v1.SysTenantEditReq) (res *v1.SysTenantEditRes, err error)
|
||||
SysTenantDelete(ctx context.Context, req *v1.SysTenantDeleteReq) (res *v1.SysTenantDeleteRes, err error)
|
||||
SysTenantStatus(ctx context.Context, req *v1.SysTenantStatusReq) (res *v1.SysTenantStatusRes, err error)
|
||||
SysTenantView(ctx context.Context, req *v1.SysTenantViewReq) (res *v1.SysTenantViewRes, err error)
|
||||
SysTenantSyncMenu(ctx context.Context, req *v1.SysTenantSyncMenuReq) (res *v1.SysTenantSyncMenuRes, err error)
|
||||
SysTenantPackageList(ctx context.Context, req *v1.SysTenantPackageListReq) (res *v1.SysTenantPackageListRes, err error)
|
||||
SysTenantPackageView(ctx context.Context, req *v1.SysTenantPackageViewReq) (res *v1.SysTenantPackageViewRes, err error)
|
||||
SysTenantPackageStatus(ctx context.Context, req *v1.SysTenantPackageStatusReq) (res *v1.SysTenantPackageStatusRes, err error)
|
||||
SysTenantPackageAdd(ctx context.Context, req *v1.SysTenantPackageAddReq) (res *v1.SysTenantPackageAddRes, err error)
|
||||
SysTenantPackageEdit(ctx context.Context, req *v1.SysTenantPackageEditReq) (res *v1.SysTenantPackageEditRes, err error)
|
||||
SysTenantPackageDelete(ctx context.Context, req *v1.SysTenantPackageDeleteReq) (res *v1.SysTenantPackageDeleteRes, err error)
|
||||
UserInfo(ctx context.Context, req *v1.UserInfoReq) (res *v1.UserInfoRes, err error)
|
||||
UserList(ctx context.Context, req *v1.UserListReq) (res *v1.UserListRes, err error)
|
||||
AddUser(ctx context.Context, req *v1.AddUserReq) (res *v1.AddUserRes, err error)
|
||||
UserProfile(ctx context.Context, req *v1.UserProfileReq) (res *v1.UserProfileRes, err error)
|
||||
UpdateCurrentUser(ctx context.Context, req *v1.UpdateCurrentUserReq) (res *v1.UpdateCurrentUserRes, err error)
|
||||
UpdateCurrentUserPassword(ctx context.Context, req *v1.UpdateCurrentUserPasswordReq) (res *v1.UpdateCurrentUserPasswordRes, err error)
|
||||
UpdateUser(ctx context.Context, req *v1.UpdateUserReq) (res *v1.UpdateUserRes, err error)
|
||||
DeleteUser(ctx context.Context, req *v1.DeleteUserReq) (res *v1.DeleteUserRes, err error)
|
||||
GetUser(ctx context.Context, req *v1.GetUserReq) (res *v1.GetUserRes, err error)
|
||||
ResetPassword(ctx context.Context, req *v1.ResetPasswordReq) (res *v1.ResetPasswordRes, err error)
|
||||
GetUserListByDeptId(ctx context.Context, req *v1.GetUserListByDeptIdReq) (res *v1.GetUserListByDeptIdRes, err error)
|
||||
UserRegister(ctx context.Context, req *v1.UserRegisterReq) (res *v1.UserRegisterRes, err error)
|
||||
UserStatus(ctx context.Context, req *v1.UserStatusReq) (res *v1.UserStatusRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type LoginReq struct {
|
||||
g.Meta `path:"/auth/login" method:"post" tags:"系统-授权" summary:"登录"`
|
||||
TenantId string `json:"tenantId" v:"required#租户ID不能为空" dc:"租户ID"`
|
||||
Username string `json:"username" v:"required#用户名不能为空" dc:"用户名"`
|
||||
Password string `json:"password" v:"required#密码不能为空" dc:"密码"`
|
||||
CaptchaID string `json:"captchaID" dc:"验证码ID"`
|
||||
CaptchaValue string `json:"captchaValue" v:"required#验证码不能为空" dc:"验证码"`
|
||||
}
|
||||
|
||||
type LoginRes struct {
|
||||
ID int64 `json:"id" dc:"用户ID"`
|
||||
Username string `json:"username" dc:"用户名"`
|
||||
NickName string `json:"nickName" dc:"昵称"`
|
||||
Avatar string `json:"avatar" dc:"头像"`
|
||||
AccessToken string `json:"accessToken" dc:"访问令牌"`
|
||||
}
|
||||
|
||||
type RefreshTokenReq struct {
|
||||
g.Meta `path:"/auth/refresh" method:"post" tags:"系统-授权" summary:"刷新访问令牌"`
|
||||
WithCredentials bool `json:"withCredentials" dc:"是否携带凭证"`
|
||||
}
|
||||
|
||||
type RefreshTokenRes struct {
|
||||
Data string `json:"data" dc:"新的访问令牌"`
|
||||
Status int `json:"status" dc:"状态码"`
|
||||
}
|
||||
|
||||
type LogoutReq struct {
|
||||
g.Meta `path:"/auth/logout" method:"post" tags:"系统-授权" summary:"退出登录"`
|
||||
WithCredentials bool `json:"withCredentials" dc:"是否携带凭证"`
|
||||
}
|
||||
|
||||
type LogoutRes struct {
|
||||
Data string `json:"data" dc:"退出登录"`
|
||||
Status int `json:"status" dc:"状态码"`
|
||||
}
|
||||
|
||||
type GetAccessCodesReq struct {
|
||||
g.Meta `path:"/auth/codes" method:"get" tags:"系统-授权" summary:"获取用户权限码"`
|
||||
IsCache bool `json:"isCache" dc:"是否从缓存中获取"`
|
||||
}
|
||||
|
||||
type GetAccessCodesRes struct {
|
||||
Data []string `json:"data" dc:"用户权限码"`
|
||||
Status int `json:"status" dc:"状态码"`
|
||||
}
|
||||
|
||||
type TenantListReq struct {
|
||||
g.Meta `path:"/auth/getTenantList" method:"get" tags:"系统-授权" summary:"获取租户列表"`
|
||||
}
|
||||
|
||||
type TenantListData struct {
|
||||
CompanyName string `json:"companyName" dc:"企业名称"`
|
||||
Domain string `json:"domain" dc:"域名"`
|
||||
TenantId string `json:"tenantId" dc:"租户ID"`
|
||||
}
|
||||
|
||||
type TenantListRes struct {
|
||||
TenantEnabled bool `json:"tenantEnabled" dc:"是否启用租户"`
|
||||
VoList []TenantListData `json:"voList" dc:"租户列表"`
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
// 获取验证码
|
||||
type GetCaptchaReq struct {
|
||||
g.Meta `path:"/captcha" method:"get" tags:"系统-授权" summary:"获取验证码"`
|
||||
}
|
||||
|
||||
type GetCaptchaRes struct {
|
||||
CaptchaID string `json:"captchaID" dc:"验证码ID"`
|
||||
CaptchaImage string `json:"captchaImage" dc:"验证码图片"`
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type SysClientListReq struct {
|
||||
g.Meta `path:"/client/list" method:"get" tags:"系统-客户端管理" summary:"获取客户端列表" x-check-permission:"cpm:system:client:list"`
|
||||
model.SysClientListParam
|
||||
}
|
||||
|
||||
type SysClientListRes struct {
|
||||
Items []*model.SysClientListModel `json:"items"`
|
||||
response.PageResult
|
||||
}
|
||||
|
||||
type SysClientViewReq struct {
|
||||
g.Meta `path:"/client/view" method:"get" tags:"系统-客户端管理" summary:"获取客户端详情" x-check-permission:"cpm:system:client:query"`
|
||||
*model.SysClientViewParam
|
||||
}
|
||||
|
||||
type SysClientViewRes struct {
|
||||
*model.SysClientViewModel
|
||||
}
|
||||
|
||||
type SysClientAddReq struct {
|
||||
g.Meta `path:"/client/add" method:"post" tags:"系统-客户端管理" summary:"添加客户端" x-check-permission:"cpm:system:client:add"`
|
||||
*model.SysClientAddParam
|
||||
}
|
||||
|
||||
type SysClientAddRes struct {
|
||||
*model.SysClientAddModel
|
||||
}
|
||||
|
||||
type SysClientEditReq struct {
|
||||
g.Meta `path:"/client/edit" method:"post" tags:"系统-客户端管理" summary:"编辑客户端" x-check-permission:"cpm:system:client:edit"`
|
||||
*model.SysClientEditParam
|
||||
}
|
||||
|
||||
type SysClientEditRes struct {
|
||||
*model.SysClientEditModel
|
||||
}
|
||||
|
||||
type SysClientDeleteReq struct {
|
||||
g.Meta `path:"/client/delete" method:"post" tags:"系统-客户端管理" summary:"删除客户端" x-check-permission:"cpm:system:client:remove"`
|
||||
*model.SysClientDeleteParam
|
||||
}
|
||||
|
||||
type SysClientDeleteRes struct {
|
||||
*model.SysClientDeleteModel
|
||||
}
|
||||
|
||||
type SysClientStatusReq struct {
|
||||
g.Meta `path:"/client/status" method:"post" tags:"系统-客户端管理" summary:"修改客户端状态" x-check-permission:"cpm:system:client:edit"`
|
||||
*model.SysClientStatusParam
|
||||
}
|
||||
|
||||
type SysClientStatusRes struct {
|
||||
*model.SysClientStatusModel
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type GetConfigListReq struct {
|
||||
g.Meta `path:"/config/list" method:"get" tags:"系统-配置管理" summary:"获取系统配置列表" x-check-permission:"cpm:system:config:list"`
|
||||
model.SysConfigListParam
|
||||
}
|
||||
|
||||
type GetConfigListRes struct {
|
||||
response.PageResult
|
||||
Data []*model.SysConfigListModel `json:"items" dc:"系统配置列表"`
|
||||
}
|
||||
|
||||
type AddConfigReq struct {
|
||||
g.Meta `path:"/config/add" method:"post" tags:"系统-配置管理" summary:"添加系统配置" x-check-permission:"cpm:system:config:add"`
|
||||
model.SysConfigAddParam
|
||||
}
|
||||
|
||||
type AddConfigRes struct {
|
||||
model.SysConfigAddModel
|
||||
}
|
||||
|
||||
type EditConfigReq struct {
|
||||
g.Meta `path:"/config/edit" method:"post" tags:"系统-配置管理" summary:"编辑系统配置" x-check-permission:"cpm:system:config:edit"`
|
||||
model.SysConfigEditParam
|
||||
}
|
||||
|
||||
type EditConfigRes struct {
|
||||
model.SysConfigEditModel
|
||||
}
|
||||
|
||||
type DeleteConfigReq struct {
|
||||
g.Meta `path:"/config/delete" method:"post" tags:"系统-配置管理" summary:"删除系统配置" x-check-permission:"cpm:system:config:remove"`
|
||||
model.SysConfigDeleteParam
|
||||
}
|
||||
|
||||
type DeleteConfigRes struct {
|
||||
model.SysConfigDeleteModel
|
||||
}
|
||||
|
||||
type GetConfigByIdReq struct {
|
||||
g.Meta `path:"/config/view" method:"get" tags:"系统-配置管理" summary:"获取系统配置详情" x-check-permission:"cpm:system:config:query"`
|
||||
model.SysConfigViewParam
|
||||
}
|
||||
|
||||
type GetConfigByIdRes struct {
|
||||
model.SysConfigViewModel
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/request"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type DeptListReq struct {
|
||||
g.Meta `path:"/dept/list" method:"get" tags:"系统-部门管理" summary:"获取部门列表" x-check-permission:"cpm:system:dept:list"`
|
||||
request.PageInfo
|
||||
model.SysDeptListParam
|
||||
}
|
||||
|
||||
type DeptListRes struct {
|
||||
response.PageResult
|
||||
Data []*model.SysDeptListModel `json:"items" dc:"部门列表"`
|
||||
}
|
||||
|
||||
type DeptTreeReq struct {
|
||||
g.Meta `path:"/dept/tree" method:"get" tags:"系统-部门管理" summary:"获取部门树" x-check-permission:"cpm:system:dept:list"`
|
||||
model.SysDeptTreeParam
|
||||
}
|
||||
|
||||
type DeptTreeRes struct {
|
||||
Data []*model.SysDeptTreeModel `json:"items" dc:"部门树"`
|
||||
}
|
||||
|
||||
type DeptAddReq struct {
|
||||
g.Meta `path:"/dept/add" method:"post" tags:"系统-部门管理" summary:"新增部门" x-check-permission:"cpm:system:dept:add"`
|
||||
model.SysDeptAddModel
|
||||
}
|
||||
|
||||
type DeptAddRes struct {
|
||||
DeptId int64 `json:"deptId" dc:"部门id"`
|
||||
}
|
||||
|
||||
type DeptEditReq struct {
|
||||
g.Meta `path:"/dept/edit" method:"post" tags:"系统-部门管理" summary:"编辑部门" x-check-permission:"cpm:system:dept:edit"`
|
||||
model.SysDeptEditModel
|
||||
}
|
||||
|
||||
type DeptEditRes struct {
|
||||
DeptId int64 `json:"deptId" dc:"部门id"`
|
||||
}
|
||||
|
||||
type DeptDeleteReq struct {
|
||||
g.Meta `path:"/dept/delete" method:"post" tags:"系统-部门管理" summary:"删除部门" x-check-permission:"cpm:system:dept:remove"`
|
||||
model.SysDeptDeleteModel
|
||||
}
|
||||
|
||||
type DeptDeleteRes struct {
|
||||
DeptId int64 `json:"deptId" dc:"部门id"`
|
||||
}
|
||||
|
||||
type DeptViewReq struct {
|
||||
g.Meta `path:"/dept/view" method:"get" tags:"系统-部门管理" summary:"获取部门详情" x-check-permission:"cpm:system:dept:query"`
|
||||
model.SysDeptViewModel
|
||||
}
|
||||
|
||||
type DeptViewRes struct {
|
||||
model.SysDeptViewModel
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/request"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type SysDictTypeListReq struct {
|
||||
g.Meta `path:"/dict/list" method:"get" tags:"系统-字典管理" summary:"字典类型列表" x-check-permission:"cpm:system:dict:list"`
|
||||
model.SysDictTypeListParam
|
||||
}
|
||||
|
||||
type SysDictTypeListRes struct {
|
||||
response.PageResult
|
||||
Items []model.SysDictTypeListModel `json:"items"`
|
||||
}
|
||||
|
||||
type SysDictTypeAddReq struct {
|
||||
g.Meta `path:"/dict-type/add" method:"post" tags:"系统-字典管理" summary:"新增字典类型" x-check-permission:"cpm:system:dict:add"`
|
||||
model.SysDictTypeAddParam
|
||||
}
|
||||
|
||||
type SysDictTypeAddRes struct {
|
||||
model.SysDictTypeAddModel
|
||||
}
|
||||
|
||||
type SysDictTypeEditReq struct {
|
||||
g.Meta `path:"/dict-type/edit" method:"post" tags:"系统-字典管理" summary:"编辑字典类型" x-check-permission:"cpm:system:dict:edit"`
|
||||
model.SysDictTypeEditParam
|
||||
}
|
||||
|
||||
type SysDictTypeEditRes struct {
|
||||
model.SysDictTypeEditModel
|
||||
}
|
||||
|
||||
type SysDictTypeDeleteReq struct {
|
||||
g.Meta `path:"/dict-type/delete" method:"post" tags:"系统-字典管理" summary:"删除字典类型" x-check-permission:"cpm:system:dict:remove"`
|
||||
model.SysDictTypeDeleteParam
|
||||
}
|
||||
|
||||
type SysDictTypeDeleteRes struct {
|
||||
model.SysDictTypeDeleteModel
|
||||
}
|
||||
|
||||
type SysDictTypeViewReq struct {
|
||||
g.Meta `path:"/dict-type/view" method:"get" tags:"系统-字典管理" summary:"字典类型详情" x-check-permission:"cpm:system:dict:query"`
|
||||
model.SysDictTypeViewParam
|
||||
}
|
||||
|
||||
type SysDictTypeViewRes struct {
|
||||
model.SysDictTypeViewModel
|
||||
}
|
||||
|
||||
type SysDictDataListReq struct {
|
||||
g.Meta `path:"/dict-data/list/{id}" method:"get" tags:"系统-字典管理" summary:"字典数据列表" `
|
||||
request.PageInfo
|
||||
model.SysDictDataListParam
|
||||
}
|
||||
|
||||
type SysDictDataListRes struct {
|
||||
response.PageResult
|
||||
Items []model.SysDictDataListModel `json:"items"`
|
||||
Type *model.SysDictTypeViewModel `json:"type"`
|
||||
}
|
||||
|
||||
type SysDictDataAddReq struct {
|
||||
g.Meta `path:"/dict-data/add" method:"post" tags:"系统-字典管理" summary:"新增字典数据" x-check-permission:"cpm:system:dict:add"`
|
||||
model.SysDictDataAddParam
|
||||
}
|
||||
|
||||
type SysDictDataAddRes struct {
|
||||
model.SysDictDataAddModel
|
||||
}
|
||||
|
||||
type SysDictDataEditReq struct {
|
||||
g.Meta `path:"/dict-data/edit" method:"post" tags:"系统-字典管理" summary:"编辑字典数据" x-check-permission:"cpm:system:dict:edit"`
|
||||
model.SysDictDataEditParam
|
||||
}
|
||||
|
||||
type SysDictDataEditRes struct {
|
||||
model.SysDictDataEditModel
|
||||
}
|
||||
|
||||
type SysDictDataDeleteReq struct {
|
||||
g.Meta `path:"/dict-data/delete" method:"post" tags:"系统-字典管理" summary:"删除字典数据" x-check-permission:"cpm:system:dict:remove"`
|
||||
model.SysDictDataDeleteParam
|
||||
}
|
||||
|
||||
type SysDictDataDeleteRes struct {
|
||||
model.SysDictDataDeleteModel
|
||||
}
|
||||
|
||||
type SysDictDataViewReq struct {
|
||||
g.Meta `path:"/dict-data/view" method:"get" tags:"系统-字典管理" summary:"字典数据详情" x-check-permission:"cpm:system:dict:query"`
|
||||
model.SysDictDataViewParam
|
||||
}
|
||||
|
||||
type SysDictDataViewRes struct {
|
||||
model.SysDictDataViewModel
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/request"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// 获取任务列表
|
||||
type SysJobListReq struct {
|
||||
g.Meta `path:"/job/list" method:"get" tags:"系统-任务管理" summary:"获取任务列表" x-check-permission:"cpm:system:job:list"`
|
||||
model.SysJobListParam
|
||||
request.PageInfo
|
||||
}
|
||||
|
||||
type SysJobListRes struct {
|
||||
Data []*model.SysJobListModel `json:"items" dc:"任务列表"`
|
||||
response.PageResult
|
||||
}
|
||||
|
||||
// 获取任务详情
|
||||
type SysJobViewReq struct {
|
||||
g.Meta `path:"/job/view" method:"get" tags:"系统-任务管理" summary:"获取任务详情" x-check-permission:"cpm:system:job:view"`
|
||||
JobId int64 `v:"required" json:"jobId" dc:"任务ID"`
|
||||
}
|
||||
|
||||
type SysJobViewRes struct {
|
||||
model.SysJobViewModel
|
||||
}
|
||||
|
||||
// 添加任务
|
||||
type SysJobAddReq struct {
|
||||
g.Meta `path:"/job/add" method:"post" tags:"系统-任务管理" summary:"添加任务" x-check-permission:"cpm:system:job:add"`
|
||||
model.SysJobAddModel
|
||||
}
|
||||
|
||||
type SysJobAddRes struct {
|
||||
model.SysJobViewModel
|
||||
}
|
||||
|
||||
// 更新任务
|
||||
type SysJobUpdateReq struct {
|
||||
g.Meta `path:"/job/update" method:"post" tags:"系统-任务管理" summary:"更新任务" x-check-permission:"cpm:system:job:update"`
|
||||
model.SysJobUpdateModel
|
||||
}
|
||||
|
||||
type SysJobUpdateRes struct {
|
||||
model.SysJobViewModel
|
||||
}
|
||||
|
||||
// 更新任务
|
||||
type SysJobUpdateStatusReq struct {
|
||||
g.Meta `path:"/job/status" method:"post" tags:"系统" summary:"更新任务状态" x-check-permission:"cpm:system:job:status"`
|
||||
model.SysJobUpdateStatusModel
|
||||
}
|
||||
|
||||
type SysJobUpdateStatusRes = SysJobUpdateRes
|
||||
|
||||
// 删除任务
|
||||
type SysJobDeleteReq struct {
|
||||
g.Meta `path:"/job/delete" method:"post" tags:"系统-任务管理" summary:"删除任务" x-check-permission:"cpm:system:job:delete"`
|
||||
JobIds []int64 `json:"jobId" dc:"任务ID"`
|
||||
}
|
||||
|
||||
type SysJobExecReq struct {
|
||||
g.Meta `path:"/job/exec" method:"post" tags:"系统" summary:"执行任务" x-check-permission:"cpm:system:job:exec"`
|
||||
JobId int64 `v:"required" json:"jobId" dc:"任务ID"`
|
||||
}
|
||||
|
||||
type SysJobDeleteRes struct {
|
||||
JobIds []int64 `json:"jobId" dc:"任务ID"`
|
||||
}
|
||||
|
||||
type SysJobExecRes struct {
|
||||
JobId int64 `json:"jobId" dc:"任务ID"`
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type ListLogininforReq struct {
|
||||
g.Meta `path:"/logininfor/list" method:"get" tags:"系统-日志管理" summary:"登录信息列表" x-check-permission:"cpm:monitor:logininfor:list"`
|
||||
model.SysLogininforListParam
|
||||
}
|
||||
|
||||
type ListLogininforRes struct {
|
||||
Items []*model.SysLogininforListModel `json:"items"`
|
||||
response.PageResult
|
||||
}
|
||||
|
||||
type DeleteLogininforReq struct {
|
||||
g.Meta `path:"/logininfor/delete" method:"post" tags:"系统-日志管理" summary:"删除登录信息" x-check-permission:"cpm:monitor:logininfor:remove"`
|
||||
model.SysLogininforDeleteParam
|
||||
}
|
||||
|
||||
type DeleteLogininforRes struct {
|
||||
model.SysLogininforDeleteModel
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// 路由菜单
|
||||
type RouteMenu struct {
|
||||
Id int64 `json:"id" dc:"路由ID"`
|
||||
ParentId int64 `json:"parentId" dc:"父路由ID"`
|
||||
Path string `json:"path" dc:"路由路径"`
|
||||
Redirect *string `json:"redirect,omitempty" dc:"重定向路径"`
|
||||
Name string `json:"name" dc:"路由名称"` // 必须唯一
|
||||
Component string `json:"component" dc:"组件路径"`
|
||||
Meta *RouteMeta `json:"meta,omitempty" dc:"路由元数据"`
|
||||
Children []*RouteMenu `json:"children,omitempty" dc:"子路由"`
|
||||
}
|
||||
|
||||
// 路由元数据
|
||||
// 对应 vue/packages/@core/base/typings/src/vue-router.d.ts
|
||||
type RouteMeta struct {
|
||||
Title string `json:"title" dc:"菜单标题"`
|
||||
Icon *string `json:"icon,omitempty" dc:"菜单图标"`
|
||||
Order *int `json:"order,omitempty" dc:"菜单排序"`
|
||||
OpenInNewWindow *bool `json:"openInNewWindow,omitempty" dc:"是否在新窗口打开"`
|
||||
NoBasicLayout *bool `json:"noBasicLayout,omitempty" dc:"是否不使用基础布局"`
|
||||
HideInMenu *bool `json:"hideInMenu,omitempty" dc:"是否隐藏菜单"`
|
||||
HideInBreadcrumb *bool `json:"hideInBreadcrumb,omitempty" dc:"是否隐藏面包屑"`
|
||||
HideChildrenInMenu *bool `json:"hideChildrenInMenu,omitempty" dc:"是否隐藏子菜单"`
|
||||
HideInTab *bool `json:"hideInTab,omitempty" dc:"是否隐藏标签页"`
|
||||
MenuVisibleWithForbidden *bool `json:"menuVisibleWithForbidden,omitempty" dc:"菜单可见但访问会被重定向到403"`
|
||||
IgnoreAccess *bool `json:"ignoreAccess,omitempty" dc:"忽略权限,直接可以访问"`
|
||||
KeepAlive *bool `json:"keepAlive,omitempty" dc:"开启KeepAlive缓存"`
|
||||
Link *string `json:"link,omitempty" dc:"外链-跳转路径"`
|
||||
Query map[string]string `json:"query,omitempty" dc:"路由所携带的参数"`
|
||||
IframeSrc *string `json:"iframeSrc,omitempty" dc:"iframe地址"`
|
||||
MaxNumOfOpenTab *int `json:"maxNumOfOpenTab,omitempty" dc:"标签页最大打开数量"`
|
||||
Badge *string `json:"badge,omitempty" dc:"徽标"`
|
||||
BadgeType *string `json:"badgeType,omitempty" dc:"徽标类型"`
|
||||
BadgeVariants *string `json:"badgeVariants,omitempty" dc:"徽标颜色"`
|
||||
Authority []string `json:"authority,omitempty" dc:"需要特定的角色标识才可以访问"`
|
||||
AffixTab *bool `json:"affixTab,omitempty" dc:"是否固定标签页"`
|
||||
AffixTabOrder *int `json:"affixTabOrder,omitempty" dc:"固定标签页的顺序"`
|
||||
ActiveIcon *string `json:"activeIcon,omitempty" dc:"激活图标"`
|
||||
ActivePath *string `json:"activePath,omitempty" dc:"当前激活的菜单"`
|
||||
}
|
||||
|
||||
// 获取用户所有菜单
|
||||
type MenuAllReq struct {
|
||||
g.Meta `path:"/menu/all" method:"get" tags:"系统-菜单管理" summary:"获取用户所有菜单" x-check-permission:""`
|
||||
}
|
||||
|
||||
// type MenuAllRes struct {
|
||||
// Data []RouteMenu `json:"data" dc:"菜单列表"`
|
||||
// }
|
||||
type MenuAllRes = []*RouteMenu
|
||||
|
||||
type MenuListReq struct {
|
||||
g.Meta `path:"/menu/list" method:"get" tags:"系统-菜单管理" summary:"获取菜单列表" x-check-permission:"cpm:system:menu:list"`
|
||||
model.SysMenuListParam
|
||||
}
|
||||
|
||||
type MenuListRes struct {
|
||||
Data []*model.SysMenuListModel `json:"items" dc:"菜单列表"`
|
||||
Total int `json:"total" dc:"总数"`
|
||||
}
|
||||
|
||||
type MenuViewReq struct {
|
||||
g.Meta `path:"/menu/view" method:"get" tags:"系统-菜单管理" summary:"获取菜单详情" x-check-permission:"cpm:system:menu:query"`
|
||||
MenuId int64 `json:"menuId" dc:"菜单ID"`
|
||||
}
|
||||
|
||||
type MenuViewRes struct {
|
||||
model.SysMenuViewModel
|
||||
}
|
||||
|
||||
type MenuAddReq struct {
|
||||
g.Meta `path:"/menu/add" method:"post" tags:"系统-菜单管理" summary:"添加菜单" x-check-permission:"cpm:system:menu:add"`
|
||||
model.SysMenuAddModel
|
||||
}
|
||||
|
||||
type MenuAddRes struct {
|
||||
model.SysMenuViewModel
|
||||
}
|
||||
|
||||
type MenuUpdateReq struct {
|
||||
g.Meta `path:"/menu/update" method:"post" tags:"系统-菜单管理" summary:"更新菜单" x-check-permission:"cpm:system:menu:edit"`
|
||||
model.SysMenuUpdateModel
|
||||
}
|
||||
|
||||
type MenuUpdateRes struct {
|
||||
model.SysMenuViewModel
|
||||
}
|
||||
|
||||
type MenuDeleteReq struct {
|
||||
g.Meta `path:"/menu/delete" method:"post" tags:"系统-菜单管理" summary:"删除菜单" x-check-permission:"cpm:system:menu:remove"`
|
||||
MenuId int64 `json:"menuId" dc:"菜单ID"`
|
||||
}
|
||||
|
||||
type MenuDeleteRes struct {
|
||||
}
|
||||
|
||||
type MenuTreeReq struct {
|
||||
g.Meta `path:"/menu/tree" method:"get" tags:"系统-菜单管理" summary:"获取菜单树" x-check-permission:""`
|
||||
}
|
||||
|
||||
type MenuTreeRes struct {
|
||||
Data []*model.SysMenuTreeModel `json:"items" dc:"菜单树"`
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type SysNoticeListReq struct {
|
||||
g.Meta `path:"/notice/list" method:"get" tags:"系统-公告管理" summary:"公告列表" x-check-permission:"cpm:system:notice:list"`
|
||||
*model.SysNoticeListParam
|
||||
}
|
||||
|
||||
type SysNoticeListRes struct {
|
||||
response.PageResult
|
||||
Items []*model.SysNoticeListModel `json:"items"`
|
||||
}
|
||||
|
||||
type SysNoticeAddReq struct {
|
||||
g.Meta `path:"/notice/add" method:"post" tags:"系统-公告管理" summary:"新增公告" x-check-permission:"cpm:system:notice:add"`
|
||||
*model.SysNoticeAddParam
|
||||
}
|
||||
|
||||
type SysNoticeAddRes struct {
|
||||
*model.SysNoticeAddModel
|
||||
}
|
||||
|
||||
type SysNoticeEditReq struct {
|
||||
g.Meta `path:"/notice/edit" method:"post" tags:"系统-公告管理" summary:"编辑公告" x-check-permission:"cpm:system:notice:edit"`
|
||||
*model.SysNoticeEditParam
|
||||
}
|
||||
|
||||
type SysNoticeEditRes struct {
|
||||
*model.SysNoticeEditModel
|
||||
}
|
||||
|
||||
type SysNoticeDeleteReq struct {
|
||||
g.Meta `path:"/notice/delete" method:"post" tags:"系统-公告管理" summary:"删除公告" x-check-permission:"cpm:system:notice:remove"`
|
||||
*model.SysNoticeDeleteParam
|
||||
}
|
||||
|
||||
type SysNoticeDeleteRes struct {
|
||||
*model.SysNoticeDeleteModel
|
||||
}
|
||||
|
||||
type SysNoticeViewReq struct {
|
||||
g.Meta `path:"/notice/view" method:"get" tags:"系统-公告管理" summary:"查看公告" x-check-permission:"cpm:system:notice:query"`
|
||||
*model.SysNoticeViewParam
|
||||
}
|
||||
|
||||
type SysNoticeViewRes struct {
|
||||
*model.SysNoticeViewModel
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/request"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type SysUserOnlineListReq struct {
|
||||
g.Meta `path:"/user-online/list" method:"get" tags:"监控-在线用户管理" summary:"系统用户在线列表" x-check-permission:"cpm:monitor:online:list"`
|
||||
request.PageInfo
|
||||
model.SysUserOnlineListParam
|
||||
}
|
||||
|
||||
type SysUserOnlineListRes struct {
|
||||
Items []*model.SysUserOnlineListModel `json:"items"`
|
||||
response.PageResult
|
||||
}
|
||||
|
||||
type SysUserOnlineDeleteReq struct {
|
||||
g.Meta `path:"/user-online/delete" method:"post" tags:"监控-在线用户管理" summary:"系统用户在线删除" x-check-permission:"cpm:monitor:online:remove"`
|
||||
Ids []int64 `json:"ids"`
|
||||
}
|
||||
|
||||
type SysUserOnlineDeleteRes struct {
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/request"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type GetOperLogListReq struct {
|
||||
g.Meta `path:"/oper-log/list" method:"get" tags:"系统-日志管理" summary:"操作日志列表" x-check-permission:"cpm:monitor:operlog:list"`
|
||||
model.SysOperLogListParam
|
||||
request.PageInfo
|
||||
}
|
||||
|
||||
type GetOperLogListRes struct {
|
||||
Items []*model.SysOperLogListModel `json:"items"`
|
||||
response.PageResult
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/request"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type SysOssListReq struct {
|
||||
g.Meta `path:"/oss/list" method:"get" tags:"系统-存储管理" summary:"获取OSS列表" x-check-permission:"cpm:system:oss:list"`
|
||||
model.SysOssListParam
|
||||
request.PageInfo
|
||||
}
|
||||
|
||||
type SysOssListRes struct {
|
||||
Items []*model.SysOssListModel `json:"items"`
|
||||
response.PageResult
|
||||
}
|
||||
|
||||
type SysOssViewReq struct {
|
||||
g.Meta `path:"/oss/view" method:"get" tags:"系统-存储管理" summary:"查看文件" x-check-permission:"cpm:system:oss:query"`
|
||||
*model.SysOssViewParam
|
||||
}
|
||||
|
||||
type SysOssViewRes struct {
|
||||
*model.SysOssViewModel
|
||||
}
|
||||
|
||||
type SysOssDeleteReq struct {
|
||||
g.Meta `path:"/oss/delete" method:"post" tags:"系统-存储管理" summary:"删除文件" x-check-permission:"cpm:system:oss:remove"`
|
||||
*model.SysOssDeleteParam
|
||||
}
|
||||
|
||||
type SysOssDeleteRes struct {
|
||||
*model.SysOssDeleteModel
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type SysOssConfigListReq struct {
|
||||
g.Meta `path:"/oss-config/list" method:"get" tags:"系统-存储管理" summary:"获取存储配置列表" x-check-permission:"cpm:system:ossConfig:list"`
|
||||
*model.SysOssConfigListParam
|
||||
}
|
||||
type SysOssConfigListRes struct {
|
||||
response.PageResult
|
||||
Items []*model.SysOssConfigListModel `json:"items"`
|
||||
}
|
||||
|
||||
type SysOssConfigViewReq struct {
|
||||
g.Meta `path:"/oss-config/view" method:"get" tags:"系统-存储管理" summary:"获取存储配置详情" x-check-permission:"cpm:system:ossConfig:list"`
|
||||
*model.SysOssConfigViewParam
|
||||
}
|
||||
type SysOssConfigViewRes struct {
|
||||
*model.SysOssConfigViewModel
|
||||
}
|
||||
|
||||
type SysOssConfigAddReq struct {
|
||||
g.Meta `path:"/oss-config/add" method:"post" tags:"系统-存储管理" summary:"新增存储配置" x-check-permission:"cpm:system:ossConfig:add"`
|
||||
*model.SysOssConfigAddParam
|
||||
}
|
||||
type SysOssConfigAddRes struct {
|
||||
*model.SysOssConfigAddModel
|
||||
}
|
||||
|
||||
type SysOssConfigEditReq struct {
|
||||
g.Meta `path:"/oss-config/edit" method:"post" tags:"系统-存储管理" summary:"编辑存储配置" x-check-permission:"cpm:system:ossConfig:edit"`
|
||||
*model.SysOssConfigEditParam
|
||||
}
|
||||
type SysOssConfigEditRes struct {
|
||||
*model.SysOssConfigEditModel
|
||||
}
|
||||
|
||||
type SysOssConfigDeleteReq struct {
|
||||
g.Meta `path:"/oss-config/delete" method:"post" tags:"系统-存储管理" summary:"删除存储配置" x-check-permission:"cpm:system:ossConfig:remove"`
|
||||
*model.SysOssConfigDeleteParam
|
||||
}
|
||||
type SysOssConfigDeleteRes struct {
|
||||
*model.SysOssConfigDeleteModel
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type PostListReq struct {
|
||||
g.Meta `path:"/post/list" method:"get" tags:"系统-岗位管理" summary:"获取岗位列表" x-check-permission:"cpm:system:post:list"`
|
||||
*model.SysPostListParam
|
||||
}
|
||||
|
||||
type PostListRes struct {
|
||||
response.PageResult
|
||||
Data []*model.SysPostListModel `json:"items" dc:"岗位列表"`
|
||||
}
|
||||
|
||||
type PostAddReq struct {
|
||||
g.Meta `path:"/post/add" method:"post" tags:"系统-岗位管理" summary:"新增岗位" x-check-permission:"cpm:system:post:add"`
|
||||
*model.SysPostAddParam
|
||||
}
|
||||
|
||||
type PostAddRes struct {
|
||||
*model.SysPostAddModel
|
||||
}
|
||||
|
||||
type PostEditReq struct {
|
||||
g.Meta `path:"/post/edit" method:"post" tags:"系统-岗位管理" summary:"编辑岗位" x-check-permission:"cpm:system:post:edit"`
|
||||
*model.SysPostEditParam
|
||||
}
|
||||
|
||||
type PostEditRes struct {
|
||||
*model.SysPostEditModel
|
||||
}
|
||||
|
||||
type PostDeleteReq struct {
|
||||
g.Meta `path:"/post/delete" method:"post" tags:"系统-岗位管理" summary:"删除岗位"`
|
||||
*model.SysPostDeleteParam
|
||||
}
|
||||
|
||||
type PostDeleteRes struct {
|
||||
*model.SysPostDeleteModel
|
||||
}
|
||||
|
||||
type PostViewReq struct {
|
||||
g.Meta `path:"/post/view" method:"get" tags:"系统-岗位管理" summary:"获取岗位详情" x-check-permission:"cpm:system:post:list"`
|
||||
*model.SysPostViewParam
|
||||
}
|
||||
|
||||
type PostViewRes struct {
|
||||
*model.SysPostViewModel
|
||||
}
|
||||
|
||||
type PostExportReq struct {
|
||||
g.Meta `path:"/post/export" method:"post" tags:"系统-岗位管理" summary:"导出岗位" x-check-permission:"cpm:system:post:export"`
|
||||
*model.SysPostExportParam
|
||||
}
|
||||
|
||||
type PostExportRes struct {
|
||||
*model.SysPostExportModel
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// 获取登录二维码
|
||||
type QrcodeLoginReq struct {
|
||||
g.Meta `path:"/qrcode/login" method:"get" tags:"系统-二维码" summary:"获取登录二维码"`
|
||||
}
|
||||
|
||||
type QrcodeLoginRes struct {
|
||||
model.QrcodeLoginModel
|
||||
}
|
||||
|
||||
// 获取登录二维码扫码结果
|
||||
type QrcodeLoginStatusReq struct {
|
||||
g.Meta `path:"/qrcode/login/status" method:"get" tags:"系统-二维码" summary:"获取登录二维码扫码状态"`
|
||||
TempUserId string `json:"tempUserId" dc:"临时用户ID" v:"required#临时用户ID不能为空"`
|
||||
}
|
||||
|
||||
type QrcodeLoginStatusRes struct {
|
||||
model.QrcodeLoginModel
|
||||
}
|
||||
|
||||
// 获取绑定二维码
|
||||
type QrcodeBindReq struct {
|
||||
g.Meta `path:"/qrcode/bind" method:"get" tags:"系统-二维码" summary:"获取绑定二维码"`
|
||||
}
|
||||
|
||||
type QrcodeBindRes struct {
|
||||
model.QrcodeCacheModel
|
||||
}
|
||||
|
||||
// 获取绑定二维码扫码结果
|
||||
type QrcodeBindStatusReq struct {
|
||||
g.Meta `path:"/qrcode/bind/status" method:"get" tags:"系统-二维码" summary:"获取绑定二维码扫码状态"`
|
||||
}
|
||||
|
||||
type QrcodeBindStatusRes struct {
|
||||
model.QrcodeBindStatusModel
|
||||
}
|
||||
|
||||
// 扫码成功回调
|
||||
type QrcodeScanCallbackReq struct {
|
||||
g.Meta `path:"/qrcode/scan/callback" method:"post" tags:"系统-二维码" summary:"扫码成功回调"`
|
||||
model.QrcodeScanCallbackParam
|
||||
}
|
||||
|
||||
type QrcodeScanCallbackRes struct {
|
||||
}
|
||||
|
||||
// 注册并关联OpenId
|
||||
type QrcodeRegisterAndBindOpenIdReq struct {
|
||||
g.Meta `path:"/qrcode/registerAndBindOpenId" method:"post" tags:"系统-二维码" summary:"注册并关联OpenId"`
|
||||
model.QrcodeRegisterAndBindOpenIdParam
|
||||
}
|
||||
|
||||
type QrcodeRegisterAndBindOpenIdRes struct {
|
||||
model.QrcodeLoginAndBindOpenIdModel
|
||||
}
|
||||
|
||||
// 登录并关联OpenId
|
||||
type QrcodeLoginAndBindOpenIdReq struct {
|
||||
g.Meta `path:"/qrcode/loginAndBindOpenId" method:"post" tags:"系统-二维码" summary:"登录并关联OpenId"`
|
||||
model.QrcodeLoginAndBindOpenIdParam
|
||||
}
|
||||
|
||||
type QrcodeLoginAndBindOpenIdRes struct {
|
||||
model.QrcodeLoginAndBindOpenIdModel
|
||||
}
|
||||
|
||||
// 扫码后选择用户登录
|
||||
type QrcodeLoginSelectUserReq struct {
|
||||
g.Meta `path:"/qrcode/loginSelectUser" method:"post" tags:"系统-二维码" summary:"扫码后选择用户登录"`
|
||||
model.QrcodeLoginSelectUserIdParam
|
||||
}
|
||||
|
||||
type QrcodeLoginSelectUserRes struct {
|
||||
model.QrcodeLoginAndBindOpenIdModel
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/request"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type RoleListReq struct {
|
||||
g.Meta `path:"/role/list" method:"get" tags:"系统-角色管理" summary:"获取角色列表" x-check-permission:"cpm:system:role:list"`
|
||||
request.PageInfo
|
||||
model.SysRoleListParam
|
||||
}
|
||||
|
||||
type RoleListRes struct {
|
||||
response.PageResult
|
||||
Data []*model.SysRoleListModel `json:"items" dc:"角色列表"`
|
||||
}
|
||||
|
||||
type RoleAddReq struct {
|
||||
g.Meta `path:"/role/add" method:"post" tags:"系统-角色管理" summary:"新增角色" x-check-permission:"cpm:system:role:add"`
|
||||
model.SysRoleAddParam
|
||||
}
|
||||
|
||||
type RoleAddRes struct {
|
||||
model.SysRoleAddModel
|
||||
}
|
||||
|
||||
type RoleEditReq struct {
|
||||
g.Meta `path:"/role/edit" method:"post" tags:"系统-角色管理" summary:"编辑角色" x-check-permission:"cpm:system:role:edit"`
|
||||
model.SysRoleEditParam
|
||||
}
|
||||
|
||||
type RoleEditRes struct {
|
||||
model.SysRoleEditModel
|
||||
}
|
||||
|
||||
type RoleDeleteReq struct {
|
||||
g.Meta `path:"/role/delete" method:"post" tags:"系统-角色管理" summary:"删除角色" x-check-permission:"cpm:system:role:remove"`
|
||||
model.SysRoleDeleteParam
|
||||
}
|
||||
|
||||
type RoleDeleteRes struct {
|
||||
model.SysRoleDeleteModel
|
||||
}
|
||||
|
||||
type RoleViewReq struct {
|
||||
g.Meta `path:"/role/view" method:"get" tags:"系统-角色管理" summary:"获取角色详情" x-check-permission:"cpm:system:role:query"`
|
||||
model.SysRoleViewParam
|
||||
}
|
||||
|
||||
type RoleViewRes struct {
|
||||
model.SysRoleViewModel
|
||||
}
|
||||
|
||||
type RoleDataScopeEditReq struct {
|
||||
g.Meta `path:"/role/dataScope" method:"post" tags:"系统-角色管理" summary:"编辑角色数据权限" x-check-permission:"cpm:system:role:edit"`
|
||||
model.SysRoleDataScopeEditParam
|
||||
}
|
||||
|
||||
type RoleDataScopeEditRes struct {
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/request"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type SysSocialListReq struct {
|
||||
g.Meta `path:"/social/list" method:"get" tags:"系统-第三方授权管理" summary:"社交列表" x-check-permission:"cpc:current:user"`
|
||||
model.SysSocialListParam
|
||||
request.PageInfo
|
||||
}
|
||||
|
||||
type SysSocialListRes struct {
|
||||
Items []*model.SysSocialListModel `json:"items"`
|
||||
response.PageResult
|
||||
}
|
||||
|
||||
// 删除绑定关系
|
||||
type SysSocialDeleteReq struct {
|
||||
g.Meta `path:"/social/delete" method:"post" tags:"系统-第三方授权管理" summary:"删除社交" x-check-permission:"cpc:current:user"`
|
||||
Id int64 `json:"id" dc:"主键"`
|
||||
}
|
||||
|
||||
type SysSocialDeleteRes struct {
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
// Package sysnoticeuser
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
// @AutoGenerate Version
|
||||
package v1 //sysnoticeuser
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// ListReq 查询用户通知公告表列表
|
||||
type SysNoticeUserListReq struct {
|
||||
g.Meta `path:"/sysNoticeUser/list" method:"get" tags:"系统-用户通知公告表" summary:"获取用户通知公告表列表" x-check-permission:"cpm:system:sysNoticeUser:list,cpc:current:user"`
|
||||
model.SysNoticeUserListParam
|
||||
}
|
||||
|
||||
type SysNoticeUserListRes struct {
|
||||
response.PageResult
|
||||
Items []*model.SysNoticeUserListModel `json:"items" dc:"数据列表"`
|
||||
}
|
||||
|
||||
// ExportReq 导出用户通知公告表列表
|
||||
type SysNoticeUserExportReq struct {
|
||||
g.Meta `path:"/sysNoticeUser/export" method:"post" tags:"系统-用户通知公告表" summary:"导出用户通知公告表列表" x-check-permission:"cpm:system:sysNoticeUser:export,cpc:current:user"`
|
||||
model.SysNoticeUserListParam
|
||||
}
|
||||
|
||||
type SysNoticeUserExportRes struct{}
|
||||
|
||||
// ViewReq 获取用户通知公告表指定信息
|
||||
type SysNoticeUserViewReq struct {
|
||||
g.Meta `path:"/sysNoticeUser/view" method:"get" tags:"系统-用户通知公告表" summary:"获取用户通知公告表指定信息" x-check-permission:"cpm:system:sysNoticeUser:view,cpc:current:user"`
|
||||
model.SysNoticeUserViewParam
|
||||
}
|
||||
|
||||
type SysNoticeUserViewRes struct {
|
||||
*model.SysNoticeUserViewModel
|
||||
}
|
||||
|
||||
// EditReq 修改/新增用户通知公告表
|
||||
type SysNoticeUserEditReq struct {
|
||||
g.Meta `path:"/sysNoticeUser/edit" method:"post" tags:"系统-用户通知公告表" summary:"修改/新增用户通知公告表" x-check-permission:"cpm:system:sysNoticeUser:edit,cpc:current:user"`
|
||||
model.SysNoticeUserEditParam
|
||||
}
|
||||
|
||||
type SysNoticeUserEditRes struct{}
|
||||
|
||||
// DeleteReq 删除用户通知公告表
|
||||
type SysNoticeUserDeleteReq struct {
|
||||
g.Meta `path:"/sysNoticeUser/delete" method:"post" tags:"系统-用户通知公告表" summary:"删除用户通知公告表" x-check-permission:"cpm:system:sysNoticeUser:delete,cpc:current:user"`
|
||||
model.SysNoticeUserDeleteParam
|
||||
}
|
||||
|
||||
type SysNoticeUserDeleteRes struct{}
|
||||
|
||||
// StatusReq 更新用户通知公告表状态
|
||||
type SysNoticeUserStatusReq struct {
|
||||
g.Meta `path:"/sysNoticeUser/status" method:"post" tags:"系统-用户通知公告表" summary:"更新用户通知公告表状态" x-check-permission:"cpm:system:sysNoticeUser:status,cpc:current:user"`
|
||||
model.SysNoticeUserStatusParam
|
||||
}
|
||||
|
||||
type SysNoticeUserStatusRes struct{}
|
||||
|
||||
// ReadReq 已读
|
||||
type SysNoticeUserReadReq struct {
|
||||
g.Meta `path:"/sysNoticeUser/read" method:"post" tags:"系统-用户通知公告表" summary:"已读" x-check-permission:"cpm:system:sysNoticeUser:read,cpc:current:user"`
|
||||
model.SysNoticeUserReadParam
|
||||
}
|
||||
|
||||
type SysNoticeUserReadRes struct{}
|
||||
@@ -0,0 +1,135 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/request"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type SysTenantListReq struct {
|
||||
g.Meta `path:"/tenant/list" method:"get" tags:"系统-租户管理" summary:"租户列表" x-check-permission:"cpm:system:tenant:list"`
|
||||
request.PageInfo
|
||||
*model.SysTenantListParam
|
||||
}
|
||||
|
||||
type SysTenantListRes struct {
|
||||
response.PageResult
|
||||
Items []*model.SysTenantListModel `json:"items"`
|
||||
}
|
||||
|
||||
type SysTenantAddReq struct {
|
||||
g.Meta `path:"/tenant/add" method:"post" tags:"系统-租户管理" summary:"租户添加" x-check-permission:"cpm:system:tenant:add"`
|
||||
*model.SysTenantAddParam
|
||||
}
|
||||
|
||||
type SysTenantAddRes struct {
|
||||
*model.SysTenantAddModel
|
||||
}
|
||||
|
||||
type SysTenantEditReq struct {
|
||||
g.Meta `path:"/tenant/edit" method:"post" tags:"系统-租户管理" summary:"租户编辑" x-check-permission:"cpm:system:tenant:edit"`
|
||||
*model.SysTenantEditParam
|
||||
}
|
||||
|
||||
type SysTenantEditRes struct {
|
||||
*model.SysTenantEditModel
|
||||
}
|
||||
|
||||
type SysTenantDeleteReq struct {
|
||||
g.Meta `path:"/tenant/delete" method:"post" tags:"系统-租户管理" summary:"租户删除" x-check-permission:"cpm:system:tenant:remove"`
|
||||
*model.SysTenantDeleteParam
|
||||
}
|
||||
|
||||
type SysTenantDeleteRes struct {
|
||||
*model.SysTenantDeleteModel
|
||||
}
|
||||
|
||||
type SysTenantStatusReq struct {
|
||||
g.Meta `path:"/tenant/status" method:"post" tags:"系统-租户管理" summary:"租户状态" x-check-permission:"cpm:system:tenant:edit"`
|
||||
*model.SysTenantStatusParam
|
||||
}
|
||||
|
||||
type SysTenantStatusRes struct {
|
||||
*model.SysTenantStatusModel
|
||||
}
|
||||
|
||||
type SysTenantViewReq struct {
|
||||
g.Meta `path:"/tenant/view" method:"get" tags:"系统-租户管理" summary:"租户详情" x-check-permission:"cpm:system:tenant:query"`
|
||||
*model.SysTenantViewParam
|
||||
}
|
||||
|
||||
type SysTenantViewRes struct {
|
||||
*model.SysTenantViewModel
|
||||
}
|
||||
|
||||
type SysTenantSyncMenuReq struct {
|
||||
g.Meta `path:"/tenant/syncmenu" method:"post" tags:"系统-租户管理" summary:"同步租户菜单" x-check-permission:"cpm:system:tenant:syncmenu"`
|
||||
*model.SysTenantSyncMenuParam
|
||||
}
|
||||
|
||||
type SysTenantSyncMenuRes struct {
|
||||
*model.SysTenantSyncMenuModel
|
||||
}
|
||||
|
||||
type SysTenantPackageListReq struct {
|
||||
g.Meta `path:"/tenant/package/list" method:"get" tags:"系统-租户管理" summary:"租户套餐列表" x-check-permission:"cpm:system:tenant:package:list"`
|
||||
request.PageInfo
|
||||
model.SysTenantPackageListParam
|
||||
}
|
||||
|
||||
type SysTenantPackageListRes struct {
|
||||
response.PageResult
|
||||
Items []*model.SysTenantPackageListModel `json:"items"`
|
||||
}
|
||||
|
||||
type SysTenantPackageViewReq struct {
|
||||
g.Meta `path:"/tenant/package/view" method:"get" tags:"系统-租户管理" summary:"租户套餐详情" x-check-permission:"cpm:system:tenantPackage:query"`
|
||||
*model.SysTenantPackageViewParam
|
||||
}
|
||||
|
||||
type SysTenantPackageViewRes struct {
|
||||
*model.SysTenantPackageViewModel
|
||||
}
|
||||
|
||||
type SysTenantPackageStatusReq struct {
|
||||
g.Meta `path:"/tenant/package/status" method:"post" tags:"系统-租户管理" summary:"租户套餐状态" x-check-permission:"cpm:system:tenantPackage:edit"`
|
||||
*model.SysTenantPackageStatusParam
|
||||
}
|
||||
|
||||
type SysTenantPackageStatusRes struct {
|
||||
*model.SysTenantPackageStatusModel
|
||||
}
|
||||
|
||||
type SysTenantPackageAddReq struct {
|
||||
g.Meta `path:"/tenant/package/add" method:"post" tags:"系统-租户管理" summary:"租户套餐添加" x-check-permission:"cpm:system:tenantPackage:add"`
|
||||
*model.SysTenantPackageAddParam
|
||||
}
|
||||
|
||||
type SysTenantPackageAddRes struct {
|
||||
*model.SysTenantPackageAddModel
|
||||
}
|
||||
|
||||
type SysTenantPackageEditReq struct {
|
||||
g.Meta `path:"/tenant/package/edit" method:"post" tags:"系统-租户管理" summary:"租户套餐编辑" x-check-permission:"cpm:system:tenantPackage:edit"`
|
||||
*model.SysTenantPackageEditParam
|
||||
}
|
||||
|
||||
type SysTenantPackageEditRes struct {
|
||||
*model.SysTenantPackageEditModel
|
||||
}
|
||||
|
||||
type SysTenantPackageDeleteReq struct {
|
||||
g.Meta `path:"/tenant/package/delete" method:"post" tags:"系统-租户管理" summary:"租户套餐删除" x-check-permission:"cpm:system:tenantPackage:remove"`
|
||||
*model.SysTenantPackageDeleteParam
|
||||
}
|
||||
|
||||
type SysTenantPackageDeleteRes struct {
|
||||
*model.SysTenantPackageDeleteModel
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/request"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type UserInfo struct {
|
||||
Id int64 `json:"id" dc:"用户ID"`
|
||||
Username string `json:"userName" dc:"用户名"`
|
||||
Nickname string `json:"realName" dc:"昵称"`
|
||||
Avatar string `json:"avatar" dc:"头像"`
|
||||
Email string `json:"email" dc:"邮箱"`
|
||||
HomePath string `json:"homePath" dc:"首页路径"`
|
||||
}
|
||||
|
||||
type UserInfoReq struct {
|
||||
g.Meta `path:"/user/info" method:"get" tags:"系统-用户管理" summary:"获取当前用户信息" x-check-permission:"cpc:current:user"`
|
||||
}
|
||||
|
||||
type UserInfoRes struct {
|
||||
UserInfo
|
||||
}
|
||||
|
||||
type UserListReq struct {
|
||||
g.Meta `path:"/user/list" method:"get" tags:"系统-用户管理" summary:"获取用户列表" x-check-permission:"cpm:system:user:list"`
|
||||
request.PageInfo
|
||||
model.UserListParam
|
||||
}
|
||||
|
||||
type UserListRes struct {
|
||||
response.PageResult
|
||||
Data []*model.SysUserListModel `json:"items" dc:"用户列表"`
|
||||
}
|
||||
|
||||
type AddUserReq struct {
|
||||
g.Meta `path:"/user/add" method:"post" tags:"系统-用户管理" summary:"新增用户" x-check-permission:"cpm:system:user:add"`
|
||||
model.SysUserAddModel
|
||||
}
|
||||
|
||||
type AddUserRes struct {
|
||||
Data *model.SysUserViewModel `json:"data" dc:"用户信息"`
|
||||
}
|
||||
|
||||
type UserProfileReq struct {
|
||||
g.Meta `path:"/user/profile" method:"get" tags:"系统-用户管理" summary:"获取当前用户信息" x-check-permission:"cpc:current:user"`
|
||||
}
|
||||
|
||||
type UserProfileRes struct {
|
||||
User *model.UserProfileModel `json:"user" dc:"用户信息"`
|
||||
}
|
||||
|
||||
type UpdateCurrentUserReq struct {
|
||||
g.Meta `path:"/user/profile/update" method:"post" tags:"系统-用户管理" summary:"更新当前用户信息" x-check-permission:"cpc:current:user"`
|
||||
model.UpdateCurrentUserModel
|
||||
}
|
||||
|
||||
type UpdateCurrentUserRes struct {
|
||||
UserInfo
|
||||
}
|
||||
|
||||
type UpdateCurrentUserPasswordReq struct {
|
||||
g.Meta `path:"/user/profile/password" method:"post" tags:"系统-用户管理" summary:"更新当前用户密码" x-check-permission:"cpc:current:user"`
|
||||
model.UpdateCurrentUserPasswordModel
|
||||
}
|
||||
|
||||
type UpdateCurrentUserPasswordRes struct {
|
||||
}
|
||||
|
||||
type UpdateUserReq struct {
|
||||
g.Meta `path:"/user/update" method:"post" tags:"系统-用户管理" summary:"更新用户信息" x-check-permission:"cpm:system:user:edit"`
|
||||
model.SysUserUpdateModel
|
||||
}
|
||||
|
||||
type UpdateUserRes struct {
|
||||
model.SysUserViewModel
|
||||
}
|
||||
|
||||
type DeleteUserReq struct {
|
||||
g.Meta `path:"/user/delete" method:"post" tags:"系统-用户管理" summary:"删除用户" x-check-permission:"cpm:system:user:remove"`
|
||||
UserId int64 `json:"userId" dc:"用户ID"`
|
||||
UserIds []int64 `json:"userIds" dc:"用户ID列表"`
|
||||
}
|
||||
|
||||
type DeleteUserRes struct {
|
||||
}
|
||||
|
||||
type GetUserReq struct {
|
||||
g.Meta `path:"/user/view" method:"get" tags:"系统-用户管理" summary:"获取用户信息" x-check-permission:"cpm:system:user:query"`
|
||||
UserId int64 `json:"userId" dc:"用户ID"`
|
||||
}
|
||||
|
||||
type GetUserRes struct {
|
||||
model.SysUserViewModel
|
||||
}
|
||||
|
||||
type ResetPasswordReq struct {
|
||||
g.Meta `path:"/user/resetPassword" method:"post" tags:"系统-用户管理" summary:"重置用户密码" x-check-permission:"cpm:system:user:resetPwd"`
|
||||
UserId int64 `json:"userId" dc:"用户ID"`
|
||||
Password string `json:"password" dc:"新密码"`
|
||||
}
|
||||
|
||||
type ResetPasswordRes struct {
|
||||
}
|
||||
|
||||
type GetUserListByDeptIdReq struct {
|
||||
g.Meta `path:"/user/listByDeptId" method:"get" tags:"系统-用户管理" summary:"获取部门用户列表" x-check-permission:"cpm:system:user:list"`
|
||||
DeptId int64 `json:"deptId" dc:"部门ID"`
|
||||
request.PageInfo
|
||||
}
|
||||
|
||||
type GetUserListByDeptIdRes struct {
|
||||
response.PageResult
|
||||
Items []*model.SysUserMiniModel `json:"items" dc:"用户列表"`
|
||||
}
|
||||
|
||||
// 用户注册
|
||||
type UserRegisterReq struct {
|
||||
g.Meta `path:"/user/register" method:"post" tags:"系统-用户管理" summary:"用户注册" x-check-permission:"cpm:system:user:register"`
|
||||
model.SysUserRegisterModel
|
||||
}
|
||||
|
||||
type UserRegisterRes struct {
|
||||
}
|
||||
|
||||
// StatusReq 更新用户状态
|
||||
type UserStatusReq struct {
|
||||
g.Meta `path:"/user/status" method:"post" tags:"系统-用户管理" summary:"更新用户状态" x-check-permission:"cpm:system:user:edit"`
|
||||
model.SysUserStatusParam
|
||||
}
|
||||
|
||||
type UserStatusRes struct {
|
||||
}
|
||||
Reference in New Issue
Block a user