feat(app): update
This commit is contained in:
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module servicebase
|
||||
module gitea.ddegame.cn/open/servicebase
|
||||
|
||||
go 1.24.0
|
||||
|
||||
|
||||
3
pkg/cache/redis_client.go
vendored
3
pkg/cache/redis_client.go
vendored
@ -2,7 +2,8 @@ package cache
|
||||
|
||||
import (
|
||||
"context"
|
||||
logs "servicebase/pkg/log"
|
||||
|
||||
logs "gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
|
||||
redis "github.com/redis/go-redis/v9"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
3
pkg/cache/redis_lock.go
vendored
3
pkg/cache/redis_lock.go
vendored
@ -2,8 +2,9 @@ package cache
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"servicebase/pkg/log"
|
||||
"time"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
)
|
||||
|
||||
func Lock(key string) (e error) {
|
||||
|
||||
5
pkg/cache/user/user.go
vendored
5
pkg/cache/user/user.go
vendored
@ -2,11 +2,12 @@ package cache_user
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"servicebase/pkg/cache"
|
||||
"servicebase/pkg/tools"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/cache"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/tools"
|
||||
|
||||
"github.com/anxpp/beego/logs"
|
||||
"github.com/anxpp/common-utils/str"
|
||||
)
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
package http_api
|
||||
|
||||
import (
|
||||
"servicebase/pkg/log"
|
||||
"servicebase/pkg/res"
|
||||
"servicebase/pkg/utils"
|
||||
"errors"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/res"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/utils"
|
||||
|
||||
"github.com/go-resty/resty/v2"
|
||||
)
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"servicebase/pkg/common/req"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common/req"
|
||||
|
||||
"github.com/spf13/viper"
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
package Netease
|
||||
|
||||
import (
|
||||
"servicebase/pkg/common/HyTools"
|
||||
"encoding/json"
|
||||
"net/url"
|
||||
"time"
|
||||
|
||||
Netease "servicebase/pkg/common/netease"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common/HyTools"
|
||||
|
||||
Netease "gitea.ddegame.cn/open/servicebase/pkg/common/netease"
|
||||
|
||||
"github.com/anxpp/beego"
|
||||
"github.com/anxpp/beego/logs"
|
||||
|
||||
@ -2,7 +2,8 @@ package Netease
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"servicebase/pkg/log"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
@ -10,12 +10,13 @@ import (
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"servicebase/pkg/log"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/viper"
|
||||
"github.com/tjfoc/gmsm/sm3"
|
||||
|
||||
@ -2,7 +2,8 @@ package client
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"servicebase/pkg/tools"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/tools"
|
||||
|
||||
rtctokenbuilder "github.com/AgoraIO/Tools/DynamicKey/AgoraDynamicKey/go/src/rtctokenbuilder2"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
@ -3,10 +3,11 @@ package client
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"servicebase/pkg/helper"
|
||||
"servicebase/pkg/log"
|
||||
"sync"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/helper"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
|
||||
openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client"
|
||||
dysmsapi20170525 "github.com/alibabacloud-go/dysmsapi-20170525/v3/client"
|
||||
util "github.com/alibabacloud-go/tea-utils/v2/service"
|
||||
|
||||
@ -1,13 +1,14 @@
|
||||
package ess
|
||||
|
||||
import (
|
||||
"servicebase/pkg/common/es/document"
|
||||
"servicebase/pkg/common/messages"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"reflect"
|
||||
"time"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common/es/document"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common/messages"
|
||||
|
||||
"github.com/anxpp/beego/logs"
|
||||
"github.com/olivere/elastic/v7"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
package ess
|
||||
|
||||
import (
|
||||
"servicebase/pkg/common/messages"
|
||||
"context"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common/messages"
|
||||
|
||||
"github.com/anxpp/beego/logs"
|
||||
"github.com/olivere/elastic/v7"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package response
|
||||
|
||||
import "servicebase/pkg/common/http/dto"
|
||||
import "gitea.ddegame.cn/open/servicebase/pkg/common/http/dto"
|
||||
|
||||
type CommonResponse struct {
|
||||
Code string
|
||||
|
||||
@ -4,13 +4,14 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"servicebase/pkg/common"
|
||||
"servicebase/pkg/common/HyTools"
|
||||
yunxin "servicebase/pkg/common/netease/dto"
|
||||
"servicebase/pkg/htools"
|
||||
"servicebase/pkg/log"
|
||||
"strings"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common/HyTools"
|
||||
yunxin "gitea.ddegame.cn/open/servicebase/pkg/common/netease/dto"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/htools"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/cast"
|
||||
|
||||
@ -501,7 +502,6 @@ func (client *ImClient) ChangeChatroomStat(parameters map[string]string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
//{"desc":"parameter roomid should be long","code":414}
|
||||
var resData struct {
|
||||
Code int `json:"code"`
|
||||
Desc string `json:"desc"`
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"servicebase/pkg/common"
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common"
|
||||
)
|
||||
|
||||
func Test_processTimeStr(t *testing.T) {
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
package datasource
|
||||
|
||||
import (
|
||||
"servicebase/pkg/log"
|
||||
"servicebase/pkg/repo"
|
||||
"servicebase/pkg/utils"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/repo"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/utils"
|
||||
|
||||
"github.com/spf13/viper"
|
||||
"gorm.io/driver/mysql"
|
||||
"gorm.io/gorm"
|
||||
|
||||
@ -8,9 +8,10 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"servicebase/pkg/common/HyTools"
|
||||
"time"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common/HyTools"
|
||||
|
||||
"github.com/anxpp/beego/logs"
|
||||
"github.com/dgrijalva/jwt-go"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
@ -6,15 +6,16 @@ import (
|
||||
"encoding/xml"
|
||||
"errors"
|
||||
"net/http"
|
||||
"servicebase/pkg/common"
|
||||
"servicebase/pkg/htools"
|
||||
"servicebase/pkg/log"
|
||||
"servicebase/pkg/partner/wxpay_utility"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/htools"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/partner/wxpay_utility"
|
||||
|
||||
"github.com/spf13/viper"
|
||||
"github.com/wechatpay-apiv3/wechatpay-go/core"
|
||||
"github.com/wechatpay-apiv3/wechatpay-go/core/auth/verifiers"
|
||||
|
||||
@ -7,11 +7,12 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"servicebase/pkg/common/HyTools"
|
||||
"sort"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common/HyTools"
|
||||
|
||||
"github.com/anxpp/beego/logs"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
@ -4,7 +4,8 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"net/url"
|
||||
"servicebase/pkg/htools"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/htools"
|
||||
|
||||
"github.com/anxpp/beego/logs"
|
||||
)
|
||||
|
||||
@ -2,9 +2,10 @@ package ali_auth
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"servicebase/pkg/log"
|
||||
"strings"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
package mq_http
|
||||
|
||||
import (
|
||||
"servicebase/pkg/htools"
|
||||
"servicebase/pkg/partner/mq/message"
|
||||
"servicebase/pkg/partner/mq/pusher"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/htools"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/partner/mq/message"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/partner/mq/pusher"
|
||||
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
|
||||
@ -1,14 +1,15 @@
|
||||
package mq
|
||||
|
||||
import (
|
||||
"servicebase/pkg/common/HyTools"
|
||||
mq_http "servicebase/pkg/partner/mq/http"
|
||||
message2 "servicebase/pkg/partner/mq/message"
|
||||
"servicebase/pkg/partner/mq/pusher"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common/HyTools"
|
||||
mq_http "gitea.ddegame.cn/open/servicebase/pkg/partner/mq/http"
|
||||
message2 "gitea.ddegame.cn/open/servicebase/pkg/partner/mq/message"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/partner/mq/pusher"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package pusher
|
||||
|
||||
import "servicebase/pkg/partner/mq/message"
|
||||
import "gitea.ddegame.cn/open/servicebase/pkg/partner/mq/message"
|
||||
|
||||
type PushClient interface {
|
||||
PushRegisterMessage(m message.RegisterMessage) (e error)
|
||||
|
||||
@ -1,15 +1,16 @@
|
||||
package rocket
|
||||
|
||||
import (
|
||||
"servicebase/pkg/common"
|
||||
"servicebase/pkg/partner/mq/message"
|
||||
"servicebase/pkg/partner/mq/pusher"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/partner/mq/message"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/partner/mq/pusher"
|
||||
|
||||
"github.com/anxpp/beego/logs"
|
||||
"github.com/apache/rocketmq-client-go/v2"
|
||||
"github.com/apache/rocketmq-client-go/v2/primitive"
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
package mq
|
||||
|
||||
import (
|
||||
"servicebase/pkg/common"
|
||||
"servicebase/pkg/partner/mq/message"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/common"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/partner/mq/message"
|
||||
|
||||
"github.com/anxpp/beego"
|
||||
)
|
||||
|
||||
|
||||
@ -1,13 +1,14 @@
|
||||
package recommend
|
||||
|
||||
import (
|
||||
"servicebase/pkg/cache"
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/cache"
|
||||
|
||||
"github.com/anxpp/beego"
|
||||
"github.com/anxpp/beego/logs"
|
||||
redis "github.com/redis/go-redis/v9"
|
||||
|
||||
@ -2,9 +2,10 @@ package submail
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"servicebase/pkg/utils"
|
||||
"sort"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/utils"
|
||||
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ import (
|
||||
|
||||
"gorm.io/plugin/dbresolver"
|
||||
|
||||
"servicebase/pkg/model"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/model"
|
||||
)
|
||||
|
||||
func newAdminPrivilege(db *gorm.DB, opts ...gen.DOOption) adminPrivilege {
|
||||
|
||||
@ -16,7 +16,7 @@ import (
|
||||
|
||||
"gorm.io/plugin/dbresolver"
|
||||
|
||||
"servicebase/pkg/model"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/model"
|
||||
)
|
||||
|
||||
func newAdminRole(db *gorm.DB, opts ...gen.DOOption) adminRole {
|
||||
|
||||
@ -16,7 +16,7 @@ import (
|
||||
|
||||
"gorm.io/plugin/dbresolver"
|
||||
|
||||
"servicebase/pkg/model"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/model"
|
||||
)
|
||||
|
||||
func newAdminRolePrivilege(db *gorm.DB, opts ...gen.DOOption) adminRolePrivilege {
|
||||
|
||||
@ -16,7 +16,7 @@ import (
|
||||
|
||||
"gorm.io/plugin/dbresolver"
|
||||
|
||||
"servicebase/pkg/model"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/model"
|
||||
)
|
||||
|
||||
func newAdminUser(db *gorm.DB, opts ...gen.DOOption) adminUser {
|
||||
|
||||
@ -16,7 +16,7 @@ import (
|
||||
|
||||
"gorm.io/plugin/dbresolver"
|
||||
|
||||
"servicebase/pkg/model"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/model"
|
||||
)
|
||||
|
||||
func newAdminUserRole(db *gorm.DB, opts ...gen.DOOption) adminUserRole {
|
||||
|
||||
@ -16,7 +16,7 @@ import (
|
||||
|
||||
"gorm.io/plugin/dbresolver"
|
||||
|
||||
"servicebase/pkg/model"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/model"
|
||||
)
|
||||
|
||||
func newDataAttach(db *gorm.DB, opts ...gen.DOOption) dataAttach {
|
||||
|
||||
@ -16,7 +16,7 @@ import (
|
||||
|
||||
"gorm.io/plugin/dbresolver"
|
||||
|
||||
"servicebase/pkg/model"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/model"
|
||||
)
|
||||
|
||||
func newGame(db *gorm.DB, opts ...gen.DOOption) game {
|
||||
|
||||
@ -16,7 +16,7 @@ import (
|
||||
|
||||
"gorm.io/plugin/dbresolver"
|
||||
|
||||
"servicebase/pkg/model"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/model"
|
||||
)
|
||||
|
||||
func newTradeCommodity(db *gorm.DB, opts ...gen.DOOption) tradeCommodity {
|
||||
|
||||
@ -16,7 +16,7 @@ import (
|
||||
|
||||
"gorm.io/plugin/dbresolver"
|
||||
|
||||
"servicebase/pkg/model"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/model"
|
||||
)
|
||||
|
||||
func newUser(db *gorm.DB, opts ...gen.DOOption) user {
|
||||
|
||||
@ -16,7 +16,7 @@ import (
|
||||
|
||||
"gorm.io/plugin/dbresolver"
|
||||
|
||||
"servicebase/pkg/model"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/model"
|
||||
)
|
||||
|
||||
func newUserGameRole(db *gorm.DB, opts ...gen.DOOption) userGameRole {
|
||||
|
||||
@ -16,7 +16,7 @@ import (
|
||||
|
||||
"gorm.io/plugin/dbresolver"
|
||||
|
||||
"servicebase/pkg/model"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/model"
|
||||
)
|
||||
|
||||
func newUserGameRoleProp(db *gorm.DB, opts ...gen.DOOption) userGameRoleProp {
|
||||
|
||||
@ -1,10 +1,11 @@
|
||||
package req
|
||||
|
||||
import (
|
||||
"servicebase/pkg/constant"
|
||||
"servicebase/pkg/tools"
|
||||
"errors"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/constant"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/tools"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package req
|
||||
|
||||
import "servicebase/pkg/datasource/fields"
|
||||
import "gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
|
||||
type News struct {
|
||||
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:业务ID" json:"id"` // 业务ID
|
||||
|
||||
@ -2,7 +2,8 @@ package req
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"servicebase/pkg/datasource/fields"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
)
|
||||
|
||||
type SystemSettingPageReq struct {
|
||||
|
||||
@ -2,7 +2,8 @@ package req
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"servicebase/pkg/datasource/fields"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
)
|
||||
|
||||
// 登录请求对象
|
||||
|
||||
@ -2,7 +2,8 @@ package req
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"servicebase/pkg/datasource/fields"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
)
|
||||
|
||||
@ -3,7 +3,8 @@ package req
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"servicebase/pkg/log"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
)
|
||||
|
||||
type CommonAuthReq struct {
|
||||
|
||||
@ -3,9 +3,10 @@ package res
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"servicebase/pkg/cerrors"
|
||||
"servicebase/pkg/log"
|
||||
"servicebase/pkg/req"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/cerrors"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/req"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package res
|
||||
|
||||
import "servicebase/pkg/datasource/fields"
|
||||
import "gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
|
||||
type ActNewsAll struct {
|
||||
ListType []ActNewsType `gorm:"-" json:"list_type"`
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package res
|
||||
|
||||
import "servicebase/pkg/datasource/fields"
|
||||
import "gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
|
||||
type News struct {
|
||||
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:业务ID" json:"id"` // 业务ID
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package res
|
||||
|
||||
import "servicebase/pkg/datasource/fields"
|
||||
import "gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
|
||||
type UserGameRole struct {
|
||||
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:业务ID" json:"id"` // 业务ID
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package res
|
||||
|
||||
import "servicebase/pkg/datasource/fields"
|
||||
import "gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
|
||||
type UserRes struct {
|
||||
IDBody
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package res
|
||||
|
||||
import "servicebase/pkg/datasource/fields"
|
||||
import "gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
|
||||
type UserClanRes struct {
|
||||
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:ID" json:"id"`
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package res
|
||||
|
||||
import (
|
||||
"servicebase/pkg/datasource/fields"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package res
|
||||
|
||||
import "servicebase/pkg/datasource/fields"
|
||||
import "gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
|
||||
type UserFriendRes struct {
|
||||
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:ID" json:"id"`
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package res
|
||||
|
||||
import "servicebase/pkg/datasource/fields"
|
||||
import "gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
|
||||
type UserMomentRes struct {
|
||||
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:ID" json:"id"`
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package res
|
||||
|
||||
import (
|
||||
"servicebase/pkg/datasource/fields"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package res
|
||||
|
||||
import "servicebase/pkg/datasource/fields"
|
||||
import "gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
|
||||
type CategoryTreeRes struct {
|
||||
IDBody
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package res
|
||||
|
||||
import (
|
||||
"servicebase/pkg/datasource/fields"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/datasource/fields"
|
||||
)
|
||||
|
||||
type AdminUserAuthRes struct {
|
||||
|
||||
@ -3,16 +3,17 @@ package picture
|
||||
import (
|
||||
"context"
|
||||
//cache "ServiceAll/modules/company/internal/client/redis"
|
||||
"servicebase/pkg/datasource"
|
||||
"servicebase/pkg/log"
|
||||
"servicebase/pkg/repo"
|
||||
"servicebase/pkg/tools"
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/datasource"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/repo"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/tools"
|
||||
|
||||
"github.com/disintegration/imaging"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
package picture
|
||||
|
||||
import (
|
||||
"servicebase/pkg/datasource"
|
||||
"servicebase/pkg/log"
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/datasource"
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
|
||||
"github.com/disintegration/imaging"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
@ -2,7 +2,8 @@ package tools
|
||||
|
||||
import (
|
||||
"runtime/debug"
|
||||
"servicebase/pkg/log"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/log"
|
||||
)
|
||||
|
||||
func Recover(cleanups ...func()) {
|
||||
|
||||
@ -5,11 +5,12 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"servicebase/pkg/constant"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/constant"
|
||||
|
||||
"github.com/anxpp/common-utils/str"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user