mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 05:12:32 +08:00
add golangci-lint.
This commit is contained in:
@@ -144,7 +144,6 @@ func (s *sSysAttachment) List(ctx context.Context, in sysin.AttachmentListInp) (
|
||||
v.SizeFormat = format.FileSize(v.Size)
|
||||
v.FileUrl = service.CommonUpload().LastUrl(ctx, conf, v.FileUrl, v.Drive)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
@@ -25,33 +25,6 @@ import (
|
||||
"hotgo/utility/simple"
|
||||
)
|
||||
|
||||
// MaskDemoField 演示环境下需要隐藏的配置
|
||||
var MaskDemoField = []string{
|
||||
// 邮箱
|
||||
"smtpUser", "smtpPass",
|
||||
|
||||
// 云存储
|
||||
"uploadUCloudPublicKey", "uploadUCloudPrivateKey",
|
||||
"uploadCosSecretId", "uploadCosSecretKey",
|
||||
"uploadOssSecretId", "uploadOssSecretKey",
|
||||
"uploadQiNiuAccessKey", "uploadQiNiuSecretKey",
|
||||
|
||||
// 地图
|
||||
"geoAmapWebKey",
|
||||
|
||||
// 短信
|
||||
"smsAliYunAccessKeyID", "smsAliYunAccessKeySecret",
|
||||
"smsTencentSecretId", "smsTencentSecretKey",
|
||||
|
||||
// 支付
|
||||
"payWxPayMchId", "payWxPaySerialNo", "payWxPayAPIv3Key",
|
||||
"payWxPayPrivateKey", "payQQPayMchId", "payQQPayApiKey",
|
||||
|
||||
// 微信
|
||||
"officialAccountAppSecret", "officialAccountToken", "officialAccountEncodingAESKey",
|
||||
"openPlatformAppSecret", "openPlatformToken", "openPlatformEncodingAESKey",
|
||||
}
|
||||
|
||||
type sSysConfig struct{}
|
||||
|
||||
func NewSysConfig() *sSysConfig {
|
||||
|
@@ -291,7 +291,8 @@ func (s *sSysGenCodes) Preview(ctx context.Context, in sysin.GenCodesPreviewInp)
|
||||
// Build 提交生成
|
||||
func (s *sSysGenCodes) Build(ctx context.Context, in sysin.GenCodesBuildInp) (err error) {
|
||||
// 先保存配置
|
||||
if _, err = s.Edit(ctx, sysin.GenCodesEditInp{SysGenCodes: in.SysGenCodes}); err != nil {
|
||||
ein := in.SysGenCodes
|
||||
if _, err = s.Edit(ctx, sysin.GenCodesEditInp{SysGenCodes: ein}); err != nil {
|
||||
err = gerror.Wrap(err, consts.ErrorORM)
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user