mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-21 12:32:25 +00:00
feat:fix go mod
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
package captcha
|
||||
|
||||
import (
|
||||
"gin-vue-admin/global"
|
||||
"time"
|
||||
|
||||
"github.com/flipped-aurora/gin-vue-admin/global"
|
||||
|
||||
"github.com/mojocn/base64Captcha"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"gin-vue-admin/global"
|
||||
systemReq "gin-vue-admin/model/system/request"
|
||||
"github.com/flipped-aurora/gin-vue-admin/global"
|
||||
systemReq "github.com/flipped-aurora/gin-vue-admin/model/system/request"
|
||||
"github.com/gin-gonic/gin"
|
||||
uuid "github.com/satori/go.uuid"
|
||||
)
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"gin-vue-admin/global"
|
||||
"go.uber.org/zap"
|
||||
"os"
|
||||
|
||||
"github.com/flipped-aurora/gin-vue-admin/global"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
//@author: [piexlmax](https://github.com/piexlmax)
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"net/smtp"
|
||||
"strings"
|
||||
|
||||
"gin-vue-admin/global"
|
||||
"github.com/flipped-aurora/gin-vue-admin/global"
|
||||
|
||||
"github.com/jordan-wright/email"
|
||||
)
|
||||
|
||||
@@ -17,8 +17,8 @@ import (
|
||||
//@return: error
|
||||
|
||||
const (
|
||||
startComment = "Code generated by gin-vue-admin Begin; DO NOT EDIT."
|
||||
endComment = "Code generated by gin-vue-admin End; DO NOT EDIT."
|
||||
startComment = "Code generated by github.com/flipped-aurora/gin-vue-admin Begin; DO NOT EDIT."
|
||||
endComment = "Code generated by github.com/flipped-aurora/gin-vue-admin End; DO NOT EDIT."
|
||||
)
|
||||
|
||||
//@author: [LeonardWang](https://github.com/WangLeonard)
|
||||
|
||||
@@ -3,12 +3,13 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"gin-vue-admin/global"
|
||||
zaprotatelogs "github.com/lestrrat-go/file-rotatelogs"
|
||||
"go.uber.org/zap/zapcore"
|
||||
"os"
|
||||
"path"
|
||||
"time"
|
||||
|
||||
"github.com/flipped-aurora/gin-vue-admin/global"
|
||||
zaprotatelogs "github.com/lestrrat-go/file-rotatelogs"
|
||||
"go.uber.org/zap/zapcore"
|
||||
)
|
||||
|
||||
//@author: [SliverHorn](https://github.com/SliverHorn)
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"gin-vue-admin/global"
|
||||
zaprotatelogs "github.com/lestrrat-go/file-rotatelogs"
|
||||
"go.uber.org/zap/zapcore"
|
||||
"os"
|
||||
"path"
|
||||
"time"
|
||||
|
||||
"github.com/flipped-aurora/gin-vue-admin/global"
|
||||
zaprotatelogs "github.com/lestrrat-go/file-rotatelogs"
|
||||
"go.uber.org/zap/zapcore"
|
||||
)
|
||||
|
||||
//@author: [SliverHorn](https://github.com/SliverHorn)
|
||||
|
||||
@@ -2,11 +2,12 @@ package upload
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"gin-vue-admin/global"
|
||||
"github.com/aliyun/aliyun-oss-go-sdk/oss"
|
||||
"go.uber.org/zap"
|
||||
"mime/multipart"
|
||||
"time"
|
||||
|
||||
"github.com/aliyun/aliyun-oss-go-sdk/oss"
|
||||
"github.com/flipped-aurora/gin-vue-admin/global"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
type AliyunOSS struct{}
|
||||
|
||||
@@ -2,15 +2,16 @@ package upload
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"gin-vue-admin/global"
|
||||
"gin-vue-admin/utils"
|
||||
"go.uber.org/zap"
|
||||
"io"
|
||||
"mime/multipart"
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/flipped-aurora/gin-vue-admin/global"
|
||||
"github.com/flipped-aurora/gin-vue-admin/utils"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
type Local struct{}
|
||||
|
||||
@@ -4,12 +4,13 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"gin-vue-admin/global"
|
||||
"mime/multipart"
|
||||
"time"
|
||||
|
||||
"github.com/flipped-aurora/gin-vue-admin/global"
|
||||
"github.com/qiniu/api.v7/v7/auth/qbox"
|
||||
"github.com/qiniu/api.v7/v7/storage"
|
||||
"go.uber.org/zap"
|
||||
"mime/multipart"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Qiniu struct{}
|
||||
@@ -38,7 +39,7 @@ func (*Qiniu) UploadFile(file *multipart.FileHeader) (string, string, error) {
|
||||
|
||||
return "", "", errors.New("function file.Open() Filed, err:" + openError.Error())
|
||||
}
|
||||
defer f.Close() // 创建文件 defer 关闭
|
||||
defer f.Close() // 创建文件 defer 关闭
|
||||
fileKey := fmt.Sprintf("%d%s", time.Now().Unix(), file.Filename) // 文件名格式 自己可以改 建议保证唯一性
|
||||
putErr := formUploader.Put(context.Background(), &ret, upToken, fileKey, f, file.Size, &putExtra)
|
||||
if putErr != nil {
|
||||
|
||||
@@ -4,12 +4,13 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"gin-vue-admin/global"
|
||||
"mime/multipart"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"time"
|
||||
|
||||
"github.com/flipped-aurora/gin-vue-admin/global"
|
||||
|
||||
"github.com/tencentyun/cos-go-sdk-v5"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
package upload
|
||||
|
||||
import (
|
||||
"gin-vue-admin/global"
|
||||
"mime/multipart"
|
||||
|
||||
"github.com/flipped-aurora/gin-vue-admin/global"
|
||||
)
|
||||
|
||||
//@author: [ccfish86](https://github.com/ccfish86)
|
||||
|
||||
Reference in New Issue
Block a user