作者 yangfu

fix import

... ... @@ -2,7 +2,6 @@ package controllers
import (
"fmt"
"github.com/prometheus/client_golang/prometheus"
"strconv"
"strings"
"crypto/sha256"
... ... @@ -10,13 +9,14 @@ import (
"gitlab.fjmaimaimai.com/mmm-go/ability/protocol"
s_auth "gitlab.fjmaimaimai.com/mmm-go/ability/services/auth"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/common"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/mybeego"
"github.com/astaxie/beego"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego/validation"
"github.com/prometheus/client_golang/prometheus"
)
var(
... ...
... ... @@ -2,11 +2,12 @@ package controllers
import (
"fmt"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/common"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/mybeego"
"log"
"reflect"
"testing"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/mybeego"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/common"
)
func Test_GenMessage(t *testing.T){
... ...
... ... @@ -2,9 +2,11 @@ package v1
import (
"encoding/json"
"gitlab.fjmaimaimai.com/mmm-go/ability/controllers"
"gitlab.fjmaimaimai.com/mmm-go/ability/protocol"
s_auth "gitlab.fjmaimaimai.com/mmm-go/ability/services/auth"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/mybeego"
)
... ...
... ... @@ -4,6 +4,7 @@ import (
"gitlab.fjmaimaimai.com/mmm-go/ability/controllers"
"gitlab.fjmaimaimai.com/mmm-go/ability/protocol"
"gitlab.fjmaimaimai.com/mmm-go/ability/services/upload"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/mybeego"
)
... ...
... ... @@ -2,13 +2,14 @@ package v1
import (
"encoding/json"
"gitlab.fjmaimaimai.com/mmm-go/ability/controllers"
"gitlab.fjmaimaimai.com/mmm-go/ability/protocol"
"gitlab.fjmaimaimai.com/mmm-go/ability/services/version"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/mybeego"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log"
"gitlab.fjmaimaimai.com/mmm-go/ability/services/version"
)
type VersionController struct {
... ...
... ... @@ -2,20 +2,22 @@ package auth
import (
"bytes"
"encoding/json"
"fmt"
"github.com/astaxie/beego"
"html/template"
"strings"
"time"
"gitlab.fjmaimaimai.com/mmm-go/ability/internal/repository"
"gitlab.fjmaimaimai.com/mmm-go/ability/models"
"gitlab.fjmaimaimai.com/mmm-go/ability/protocol"
s_sms "gitlab.fjmaimaimai.com/mmm-go/ability/services/sms"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/common"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/redis"
s_sms "gitlab.fjmaimaimai.com/mmm-go/ability/services/sms"
comm_time "gitlab.fjmaimaimai.com/mmm-go/gocomm/time"
"html/template"
"strings"
"encoding/json"
"time"
"github.com/astaxie/beego"
)
type IAuthService interface {
... ...
package auth
import (
"testing"
"gitlab.fjmaimaimai.com/mmm-go/ability/protocol"
"gitlab.fjmaimaimai.com/mmm-go/ability/tests"
"testing"
)
func init(){
... ...
package sms
import (
"gitlab.fjmaimaimai.com/mmm-go/ability/protocol"
"github.com/astaxie/beego"
"github.com/astaxie/beego/httplib"
"gitlab.fjmaimaimai.com/mmm-go/ability/protocol"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/common"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log"
)
... ...
... ... @@ -2,17 +2,19 @@ package upload
import (
"fmt"
"github.com/astaxie/beego"
"gitlab.fjmaimaimai.com/mmm-go/ability/protocol"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/common"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log"
comm_time "gitlab.fjmaimaimai.com/mmm-go/gocomm/time"
"io"
"mime/multipart"
"os"
"path"
"path/filepath"
"time"
"gitlab.fjmaimaimai.com/mmm-go/ability/protocol"
"github.com/astaxie/beego"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/common"
"gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/log"
comm_time "gitlab.fjmaimaimai.com/mmm-go/gocomm/time"
)
//上传图片
... ...
package upload
import (
"testing"
"mime/multipart"
"bytes"
"gitlab.fjmaimaimai.com/mmm-go/ability/protocol"
"gitlab.fjmaimaimai.com/mmm-go/ability/tests"
"mime/multipart"
"testing"
)
func init(){
... ...
package version
import (
"strconv"
"gitlab.fjmaimaimai.com/mmm-go/ability/models"
"gitlab.fjmaimaimai.com/mmm-go/ability/protocol"
"strconv"
)
func GetLatestVersionInfo(request *protocol.GetLatestVersionInfoRequest)(rsp *protocol.GetLatestVersionInfoResponse,err error){
... ...