This commit is contained in:
eson 2023-06-19 10:12:58 +08:00
parent c5ecca3da2
commit 038d2d36a4
225 changed files with 419 additions and 314 deletions

View File

@ -115,7 +115,7 @@ func GenFromPath(mdir string, cols []Column, tableName string, tableComment stri
// 匹配到主键定义
fcontent := "package model\n"
fcontent := "package gmodel\n"
structstr := "// %s %s\ntype %s struct {%s\n}\n"
@ -210,7 +210,7 @@ func GenFromPath(mdir string, cols []Column, tableName string, tableComment stri
panic(err)
}
fcontent = "package model\n// TODO: 使用model的属性做你想做的"
fcontent = "package gmodel\n// TODO: 使用model的属性做你想做的"
genGoLogicFileName := fmt.Sprintf("%s/%s_logic.go", mdir, tableName)
// 使用 os.Stat 函数获取文件信息

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"errors"

View File

@ -1,5 +1,5 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,4 +1,4 @@
package model
package gmodel
{{if .Cache}}import (
"github.com/zeromicro/go-zero/core/stores/cache"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"time"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"context"

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,8 +1,9 @@
package model
package gmodel
import (
"context"
"fmt"
"github.com/zeromicro/go-zero/core/stores/sqlx"
)

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"context"

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import "github.com/zeromicro/go-zero/core/stores/sqlx"

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import "github.com/zeromicro/go-zero/core/stores/sqlx"

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"context"

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import "github.com/zeromicro/go-zero/core/stores/sqlx"

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import "github.com/zeromicro/go-zero/core/stores/sqlx"

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import "github.com/zeromicro/go-zero/core/stores/sqlx"

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import "github.com/zeromicro/go-zero/core/stores/sqlx"

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import "github.com/zeromicro/go-zero/core/stores/sqlx"

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import "github.com/zeromicro/go-zero/core/stores/sqlx"

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,10 +1,11 @@
package model
package gmodel
import (
"context"
"fmt"
"github.com/zeromicro/go-zero/core/stores/sqlx"
"strings"
"github.com/zeromicro/go-zero/core/stores/sqlx"
)
var _ FsProductModel = (*customFsProductModel)(nil)

View File

@ -1,10 +1,11 @@
package model
package gmodel
import (
"context"
"fmt"
"github.com/zeromicro/go-zero/core/stores/sqlx"
"strings"
"github.com/zeromicro/go-zero/core/stores/sqlx"
)
var _ FsProductModel3dLightModel = (*customFsProductModel3dLightModel)(nil)

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,10 +1,11 @@
package model
package gmodel
import (
"context"
"fmt"
"github.com/zeromicro/go-zero/core/stores/sqlx"
"strings"
"github.com/zeromicro/go-zero/core/stores/sqlx"
)
var _ FsProductModel3dModel = (*customFsProductModel3dModel)(nil)

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,11 +1,12 @@
package model
package gmodel
import (
"context"
"fmt"
"strings"
"github.com/zeromicro/go-zero/core/stores/sqlc"
"github.com/zeromicro/go-zero/core/stores/sqlx"
"strings"
)
var _ FsProductPriceModel = (*customFsProductPriceModel)(nil)

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,10 +1,11 @@
package model
package gmodel
import (
"context"
"fmt"
"github.com/zeromicro/go-zero/core/stores/sqlx"
"strings"
"github.com/zeromicro/go-zero/core/stores/sqlx"
)
var _ FsProductSizeModel = (*customFsProductSizeModel)(nil)

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,8 +1,9 @@
package model
package gmodel
import (
"context"
"fmt"
"github.com/zeromicro/go-zero/core/stores/sqlx"
)

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,10 +1,11 @@
package model
package gmodel
import (
"context"
"fmt"
"github.com/zeromicro/go-zero/core/stores/sqlx"
"strings"
"github.com/zeromicro/go-zero/core/stores/sqlx"
)
var _ FsProductTemplateV2Model = (*customFsProductTemplateV2Model)(nil)

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,8 +1,9 @@
package model
package gmodel
import (
"context"
"fmt"
"github.com/zeromicro/go-zero/core/stores/sqlx"
)

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,8 +1,9 @@
package model
package gmodel
import (
"context"
"fmt"
"github.com/zeromicro/go-zero/core/stores/sqlx"
)

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,10 +1,11 @@
package model
package gmodel
import (
"context"
"fmt"
"github.com/zeromicro/go-zero/core/stores/sqlx"
"strings"
"github.com/zeromicro/go-zero/core/stores/sqlx"
)
var _ FsTagsModel = (*customFsTagsModel)(nil)

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"context"

View File

@ -1,6 +1,6 @@
// Code generated by goctl. DO NOT EDIT.
package model
package gmodel
import (
"context"

View File

@ -3,6 +3,7 @@ package gmodel
import (
"context"
"errors"
"gorm.io/gorm"
)

View File

@ -3,9 +3,10 @@ package gmodel
import (
"context"
"fusenapi/utils/auth"
"time"
"github.com/zeromicro/go-zero/core/logx"
"gorm.io/gorm"
"time"
)
func (m *FsGuestModel) GenerateGuestID(ctx context.Context, AccessSecret *string) (authKey string, err error) {

View File

@ -3,6 +3,7 @@ package gmodel
import (
"context"
"errors"
"gorm.io/gorm"
)

View File

@ -3,6 +3,7 @@ package gmodel
import (
"context"
"errors"
"gorm.io/gorm"
)

View File

@ -3,6 +3,7 @@ package gmodel
import (
"context"
"errors"
"gorm.io/gorm"
)

View File

@ -3,6 +3,7 @@ package gmodel
import (
"context"
"errors"
"gorm.io/gorm"
)

View File

@ -3,6 +3,7 @@ package gmodel
import (
"context"
"errors"
"gorm.io/gorm"
)

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,8 +1,9 @@
package model
package gmodel
import (
"gorm.io/gorm"
"time"
"gorm.io/gorm"
)
// fs_cart 购物车

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -1,4 +1,4 @@
package model
package gmodel
import (
"gorm.io/gorm"

View File

@ -1,2 +1,3 @@
package model
// TODO: 使用model的属性做你想做的
package gmodel
// TODO: 使用model的属性做你想做的

Some files were not shown because too many files have changed in this diff Show More