Administrator 1 jaar geleden
bovenliggende
commit
0f9cf7468a
10 gewijzigde bestanden met toevoegingen van 1599 en 178 verwijderingen
  1. 6 0
      .idea/vcs.xml
  2. 3 0
      create/CreateFile.go
  3. 45 0
      create/api.ts.tmpl
  4. 2 0
      main.go
  5. 0 70
      output/dao/Dao.go
  6. 0 10
      output/domain/Domain.go
  7. 0 96
      output/router/Router.go
  8. 1431 0
      output/vue/BaseApi.ts
  9. 72 0
      sqlload/SqlLoad.go
  10. 40 2
      util/BaseTemplateFunc.go

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

+ 3 - 0
create/CreateFile.go

@@ -49,3 +49,6 @@ func RouterCreate(outputPath string) {
 func DaoCreate(outputPath string) {
 	BaseCreate(outputPath, "./create/dao.go.tmpl")
 }
+func ApiTsCreate(outputPath string) {
+	BaseCreate(outputPath, "./create/api.ts.tmpl")
+}

+ 45 - 0
create/api.ts.tmpl

@@ -0,0 +1,45 @@
+import api, {ResponseData} from "../api.ts";
+import {BaseListVo} from "../detail/DetailApi.ts";
+
+{{range .gens}}
+export function GetBase{{.table.name}}ById(id: number | string) {
+    return api.GetDataByPath("/back/base/{{.table.routerName}}?id=" + id, {}, true) as Promise<ResponseData<{{.table.name}}>>;
+}
+
+export function GetBase{{.table.name}}ListBy{{.table.name}}(param: {{.table.name}}, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/{{.table.routerName}}/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<{{.table.name}}>>>;
+}
+
+export function GetBase{{.table.name}}ListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/{{.table.routerName}}/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<{{.table.name}}[]>>;
+}
+
+export function SaveBase{{.table.name}}({{.table.name}}: {{.table.name}}) {
+    return api.PostDataByPath("/back/base/{{.table.routerName}}", { {{.table.routerName}}: {{.table.name}}}, true) as Promise<ResponseData<{{.table.name}}>>;
+}
+
+export function UpdateBase{{.table.name}}({{.table.name}}: {{.table.name}}, id: number | string) {
+    return api.PutDataByPath("/back/base/{{.table.routerName}}", { {{.table.routerName}}: {{.table.name}}, id: id}, true) as Promise<ResponseData<{{.table.name}}>>;
+}
+
+export function DeleteBase{{.table.name}}ById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/{{.table.routerName}}?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+{{end}}
+
+{{range .gens}}
+export class {{.table.name}}{
+    {{range .tableColumns}}
+    {{smallHump .goField}}: {{formatSqlToVueType .columnType}}{{end}}
+	static Create(){
+        return new {{.table.name}}({{range .tableColumns}}null,{{end}});
+    }
+
+	constructor(    {{range .tableColumns}}{{smallHump .goField}}: {{formatSqlToVueType .columnType}},{{end}}) {
+		 {{range .tableColumns}}this.{{smallHump .goField}} = {{smallHump .goField}};
+		 {{end}}
+	}
+}
+{{end}}

+ 2 - 0
main.go

@@ -14,4 +14,6 @@ func main() {
 	create.DomainCreate("./output/domain/Domain.go")
 	create.RouterCreate("./output/router/Router.go")
 	create.DaoCreate("./output/dao/Dao.go")
+	create.ApiTsCreate("./output/vue/BaseApi.ts")
+
 }

+ 0 - 70
output/dao/Dao.go

@@ -1546,76 +1546,6 @@ func DeleteUserWallet(id int64) bool {
 	return i > 0
 }
 
-func GetAuthorityById(id int64) (domain.Authority, error) {
-	var authority domain.Authority
-	_, err := configs.Engine.Table("authority").Where("id = ?", id).Get(&authority)
-	if err != nil {
-		return authority, err
-	}
-	return authority, nil
-}
-
-func GetAuthorityListInId(ids []int64) ([]domain.Authority, error) {
-	rows, err := configs.Engine.Table("authority").In("id", ids).Rows(&domain.Authority{})
-	if err != nil {
-		return make([]domain.Authority, 0), err
-	}
-	defer rows.Close()
-	var list []domain.Authority
-	for rows.Next() {
-		var u domain.Authority
-		rows.Scan(&u)
-		list = append(list, u)
-	}
-	return list, nil
-}
-
-func GetAuthorityList(authority domain.Authority, pageNum, pageSize int) (vo.BaseListVo, error) {
-	var arr []domain.Authority
-	Count, err := configs.Engine.Table("authority").Limit(pageSize, (pageNum-1)*pageSize).FindAndCount(&arr, &authority)
-	var vo vo.BaseListVo
-	if err != nil {
-		return vo, err
-	}
-	if err != nil {
-		return vo, err
-	}
-	vo.PageNum = pageNum
-	vo.PageSize = pageSize
-	vo.List = make([]any, len(arr))
-	for i, v := range arr {
-		vo.List[i] = v
-	}
-	vo.Total = int(Count)
-	return vo, nil
-}
-
-func SaveAuthority(authority *domain.Authority) (domain.Authority, error) {
-	_, err := configs.Engine.Table("authority").Insert(&authority)
-	if err != nil {
-		return *authority, err
-	}
-	return *authority, nil
-}
-
-func SetAuthority(authorityMap map[string]interface{}, id int64) (domain.Authority, bool, error) {
-	var authority domain.Authority
-	_, err := configs.Engine.Table("authority").Where("id = ?", id).Update(authorityMap)
-	if err != nil {
-		return authority, false, err
-	}
-	return authority, true, nil
-}
-
-func DeleteAuthority(id int64) bool {
-	var authority domain.Authority
-	i, err := configs.Engine.Table("authority").Where("id = ?", id).Delete(&authority)
-	if err != nil {
-		return false
-	}
-	return i > 0
-}
-
 func GetDictDataById(id int64) (domain.DictData, error) {
 	var dictData domain.DictData
 	_, err := configs.Engine.Table("dictData").Where("id = ?", id).Get(&dictData)

+ 0 - 10
output/domain/Domain.go

@@ -317,16 +317,6 @@ func (receiver UserWallet) String() string {
 	return fmt.Sprint("UserWallet{","Id:",receiver.Id,"UserId:",receiver.UserId,"Balance:",receiver.Balance,"PromotionAmount:",receiver.PromotionAmount,"RechargeAmount:",receiver.RechargeAmount,"}")
 }
 
-type Authority struct { 
-	Id int64 `xorm:"id" json:"id"` //注释:
-	AuthorityName string `xorm:"authority_name" json:"authorityName"` //注释:
-	AuthorityPath string `xorm:"authority_path" json:"authorityPath"` //注释:
-}
-
-func (receiver Authority) String() string {
-	return fmt.Sprint("Authority{","Id:",receiver.Id,"AuthorityName:",receiver.AuthorityName,"AuthorityPath:",receiver.AuthorityPath,"}")
-}
-
 type DictData struct { 
 	Id int64 `xorm:"id" json:"id"` //注释:字典编码
 	Sort int64 `xorm:"sort" json:"sort"` //注释:排序

+ 0 - 96
output/router/Router.go

@@ -253,16 +253,6 @@ func BaseUserWalletRouter(group *gin.RouterGroup) {
 	PushRouter(BaseArticleGroup, "DELETE", "/userWallet", DeleteBaseUserWallet)
 }
 
-func BaseAuthorityRouter(group *gin.RouterGroup) {
-	BaseArticleGroup := group.Group("/back/base")
-	PushRouter(BaseArticleGroup, "GET", "/authority", GetBaseAuthorityById)
-	PushRouter(BaseArticleGroup, "POST", "/authority/list", GetBaseAuthorityList)
-	PushRouter(BaseArticleGroup, "POST", "/authority/in", GetBaseAuthorityListInId)
-	PushRouter(BaseArticleGroup, "POST", "/authority", SaveBaseAuthority)
-	PushRouter(BaseArticleGroup, "PUT", "/authority", UpdateBaseAuthority)
-	PushRouter(BaseArticleGroup, "DELETE", "/authority", DeleteBaseAuthority)
-}
-
 func BaseDictDataRouter(group *gin.RouterGroup) {
 	BaseArticleGroup := group.Group("/back/base")
 	PushRouter(BaseArticleGroup, "GET", "/dictData", GetBaseDictDataById)
@@ -2218,92 +2208,6 @@ func DeleteBaseUserWallet(c *gin.Context) {
 	c.JSON(200, CreateResult())
 }
  
-//================Authority ==============================
-func GetBaseAuthorityById(c *gin.Context) {
-	id := c.Query("id")
-	authority, err := manage.GetAuthorityById(cast.ToInt64(id))
-	if err != nil {
-		c.JSON(200, CreateResultError(500, "用户查询不存在"))
-		return
-	}
-	c.JSON(200, CreateResultData(authority))
-	return
-}
-
-func GetBaseAuthorityList(c *gin.Context) {
-	data := share.GetJsonAnyParam(c)
-	param, _ := data("param")
-	pageNum, _ := data("pageNum")
-	pageSize, _ := data("pageSize")
-	authority := domain.Authority{}
-	err := mapstructure.Decode(param, &authority)
-	if err != nil {
-		c.JSON(200, CreateResultError(500, "json转换错误"))
-		return
-	}
-	list, err := manage.GetAuthorityList(authority, cast.ToInt(pageNum), cast.ToInt(pageSize))
-	if err != nil {
-		c.JSON(200, CreateResultError(500, "查询错误"))
-		return
-	}
-	c.JSON(200, CreateResultData(list))
-}
-
-func GetBaseAuthorityListInId(c *gin.Context) {
-	data := share.GetJsonAnyParam(c)
-	idsString, _ := data("ids")
-	var ids []int64
-	err := mapstructure.Decode([]byte(cast.ToString(idsString)), &ids)
-	list, err := manage.GetAuthorityListInId(ids)
-	if err != nil {
-		c.JSON(200, CreateResultError(500, "查询错误"))
-		return
-	}
-	c.JSON(200, CreateResultData(list))
-}
-
-func SaveBaseAuthority(c *gin.Context) {
-	data := share.GetJsonAnyParam(c)
-	authorityParam, _ := data("authority")
-	authority := domain.Authority{}
-	err := mapstructure.Decode(authorityParam, &authority)
-	
-	
-	saveAuthority, err := manage.SaveAuthority(&authority)
-	if err != nil {
-		c.JSON(200, CreateResultError(500, "保存错误"))
-		return
-	}
-	c.JSON(200, CreateResultData(saveAuthority))
-}
-
-func UpdateBaseAuthority(c *gin.Context) {
-	data := share.GetJsonAnyParam(c)
-	authority, _ := data("authority")
-	id, _ := data("id")
-	toMap := UtilStructToMap(cast.ToStringMap(authority))
-	
-    
-    
-    
-	setAuthority, b, err := manage.SetAuthority(toMap, cast.ToInt64(id))
-	if err != nil || !b {
-		c.JSON(200, CreateResultError(500, "修改错误"))
-		return
-	}
-	c.JSON(200, CreateResultData(setAuthority))
-}
-
-func DeleteBaseAuthority(c *gin.Context) {
-	id := c.Query("id")
-	res := manage.DeleteAuthority(cast.ToInt64(id))
-	if !res {
-		c.JSON(200, CreateResultError(500, "删除错误"))
-		return
-	}
-	c.JSON(200, CreateResult())
-}
- 
 //================DictData 字典数据==============================
 func GetBaseDictDataById(c *gin.Context) {
 	id := c.Query("id")

+ 1431 - 0
output/vue/BaseApi.ts

@@ -0,0 +1,1431 @@
+import api, {ResponseData} from "../api.ts";
+import {BaseListVo} from "../detail/DetailApi.ts";
+
+
+export function GetBaseArticleById(id: number | string) {
+    return api.GetDataByPath("/back/base/article?id=" + id, {}, true) as Promise<ResponseData<Article>>;
+}
+
+export function GetBaseArticleListByArticle(param: Article, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/article/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<Article>>>;
+}
+
+export function GetBaseArticleListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/article/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<Article[]>>;
+}
+
+export function SaveBaseArticle(Article: Article) {
+    return api.PostDataByPath("/back/base/article", { article: Article}, true) as Promise<ResponseData<Article>>;
+}
+
+export function UpdateBaseArticle(Article: Article, id: number | string) {
+    return api.PutDataByPath("/back/base/article", { article: Article, id: id}, true) as Promise<ResponseData<Article>>;
+}
+
+export function DeleteBaseArticleById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/article?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseArticleTagById(id: number | string) {
+    return api.GetDataByPath("/back/base/articleTag?id=" + id, {}, true) as Promise<ResponseData<ArticleTag>>;
+}
+
+export function GetBaseArticleTagListByArticleTag(param: ArticleTag, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/articleTag/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<ArticleTag>>>;
+}
+
+export function GetBaseArticleTagListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/articleTag/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<ArticleTag[]>>;
+}
+
+export function SaveBaseArticleTag(ArticleTag: ArticleTag) {
+    return api.PostDataByPath("/back/base/articleTag", { articleTag: ArticleTag}, true) as Promise<ResponseData<ArticleTag>>;
+}
+
+export function UpdateBaseArticleTag(ArticleTag: ArticleTag, id: number | string) {
+    return api.PutDataByPath("/back/base/articleTag", { articleTag: ArticleTag, id: id}, true) as Promise<ResponseData<ArticleTag>>;
+}
+
+export function DeleteBaseArticleTagById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/articleTag?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseArticleTopicById(id: number | string) {
+    return api.GetDataByPath("/back/base/articleTopic?id=" + id, {}, true) as Promise<ResponseData<ArticleTopic>>;
+}
+
+export function GetBaseArticleTopicListByArticleTopic(param: ArticleTopic, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/articleTopic/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<ArticleTopic>>>;
+}
+
+export function GetBaseArticleTopicListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/articleTopic/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<ArticleTopic[]>>;
+}
+
+export function SaveBaseArticleTopic(ArticleTopic: ArticleTopic) {
+    return api.PostDataByPath("/back/base/articleTopic", { articleTopic: ArticleTopic}, true) as Promise<ResponseData<ArticleTopic>>;
+}
+
+export function UpdateBaseArticleTopic(ArticleTopic: ArticleTopic, id: number | string) {
+    return api.PutDataByPath("/back/base/articleTopic", { articleTopic: ArticleTopic, id: id}, true) as Promise<ResponseData<ArticleTopic>>;
+}
+
+export function DeleteBaseArticleTopicById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/articleTopic?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseBackAuthorityById(id: number | string) {
+    return api.GetDataByPath("/back/base/backAuthority?id=" + id, {}, true) as Promise<ResponseData<BackAuthority>>;
+}
+
+export function GetBaseBackAuthorityListByBackAuthority(param: BackAuthority, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/backAuthority/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<BackAuthority>>>;
+}
+
+export function GetBaseBackAuthorityListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/backAuthority/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<BackAuthority[]>>;
+}
+
+export function SaveBaseBackAuthority(BackAuthority: BackAuthority) {
+    return api.PostDataByPath("/back/base/backAuthority", { backAuthority: BackAuthority}, true) as Promise<ResponseData<BackAuthority>>;
+}
+
+export function UpdateBaseBackAuthority(BackAuthority: BackAuthority, id: number | string) {
+    return api.PutDataByPath("/back/base/backAuthority", { backAuthority: BackAuthority, id: id}, true) as Promise<ResponseData<BackAuthority>>;
+}
+
+export function DeleteBaseBackAuthorityById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/backAuthority?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseBackMenuById(id: number | string) {
+    return api.GetDataByPath("/back/base/backMenu?id=" + id, {}, true) as Promise<ResponseData<BackMenu>>;
+}
+
+export function GetBaseBackMenuListByBackMenu(param: BackMenu, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/backMenu/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<BackMenu>>>;
+}
+
+export function GetBaseBackMenuListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/backMenu/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<BackMenu[]>>;
+}
+
+export function SaveBaseBackMenu(BackMenu: BackMenu) {
+    return api.PostDataByPath("/back/base/backMenu", { backMenu: BackMenu}, true) as Promise<ResponseData<BackMenu>>;
+}
+
+export function UpdateBaseBackMenu(BackMenu: BackMenu, id: number | string) {
+    return api.PutDataByPath("/back/base/backMenu", { backMenu: BackMenu, id: id}, true) as Promise<ResponseData<BackMenu>>;
+}
+
+export function DeleteBaseBackMenuById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/backMenu?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseBackRoleById(id: number | string) {
+    return api.GetDataByPath("/back/base/backRole?id=" + id, {}, true) as Promise<ResponseData<BackRole>>;
+}
+
+export function GetBaseBackRoleListByBackRole(param: BackRole, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/backRole/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<BackRole>>>;
+}
+
+export function GetBaseBackRoleListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/backRole/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<BackRole[]>>;
+}
+
+export function SaveBaseBackRole(BackRole: BackRole) {
+    return api.PostDataByPath("/back/base/backRole", { backRole: BackRole}, true) as Promise<ResponseData<BackRole>>;
+}
+
+export function UpdateBaseBackRole(BackRole: BackRole, id: number | string) {
+    return api.PutDataByPath("/back/base/backRole", { backRole: BackRole, id: id}, true) as Promise<ResponseData<BackRole>>;
+}
+
+export function DeleteBaseBackRoleById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/backRole?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseBackRoleAuthorityById(id: number | string) {
+    return api.GetDataByPath("/back/base/backRoleAuthority?id=" + id, {}, true) as Promise<ResponseData<BackRoleAuthority>>;
+}
+
+export function GetBaseBackRoleAuthorityListByBackRoleAuthority(param: BackRoleAuthority, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/backRoleAuthority/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<BackRoleAuthority>>>;
+}
+
+export function GetBaseBackRoleAuthorityListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/backRoleAuthority/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<BackRoleAuthority[]>>;
+}
+
+export function SaveBaseBackRoleAuthority(BackRoleAuthority: BackRoleAuthority) {
+    return api.PostDataByPath("/back/base/backRoleAuthority", { backRoleAuthority: BackRoleAuthority}, true) as Promise<ResponseData<BackRoleAuthority>>;
+}
+
+export function UpdateBaseBackRoleAuthority(BackRoleAuthority: BackRoleAuthority, id: number | string) {
+    return api.PutDataByPath("/back/base/backRoleAuthority", { backRoleAuthority: BackRoleAuthority, id: id}, true) as Promise<ResponseData<BackRoleAuthority>>;
+}
+
+export function DeleteBaseBackRoleAuthorityById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/backRoleAuthority?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseBackRoleMenuById(id: number | string) {
+    return api.GetDataByPath("/back/base/backRoleMenu?id=" + id, {}, true) as Promise<ResponseData<BackRoleMenu>>;
+}
+
+export function GetBaseBackRoleMenuListByBackRoleMenu(param: BackRoleMenu, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/backRoleMenu/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<BackRoleMenu>>>;
+}
+
+export function GetBaseBackRoleMenuListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/backRoleMenu/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<BackRoleMenu[]>>;
+}
+
+export function SaveBaseBackRoleMenu(BackRoleMenu: BackRoleMenu) {
+    return api.PostDataByPath("/back/base/backRoleMenu", { backRoleMenu: BackRoleMenu}, true) as Promise<ResponseData<BackRoleMenu>>;
+}
+
+export function UpdateBaseBackRoleMenu(BackRoleMenu: BackRoleMenu, id: number | string) {
+    return api.PutDataByPath("/back/base/backRoleMenu", { backRoleMenu: BackRoleMenu, id: id}, true) as Promise<ResponseData<BackRoleMenu>>;
+}
+
+export function DeleteBaseBackRoleMenuById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/backRoleMenu?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseGenTableById(id: number | string) {
+    return api.GetDataByPath("/back/base/genTable?id=" + id, {}, true) as Promise<ResponseData<GenTable>>;
+}
+
+export function GetBaseGenTableListByGenTable(param: GenTable, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/genTable/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GenTable>>>;
+}
+
+export function GetBaseGenTableListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/genTable/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<GenTable[]>>;
+}
+
+export function SaveBaseGenTable(GenTable: GenTable) {
+    return api.PostDataByPath("/back/base/genTable", { genTable: GenTable}, true) as Promise<ResponseData<GenTable>>;
+}
+
+export function UpdateBaseGenTable(GenTable: GenTable, id: number | string) {
+    return api.PutDataByPath("/back/base/genTable", { genTable: GenTable, id: id}, true) as Promise<ResponseData<GenTable>>;
+}
+
+export function DeleteBaseGenTableById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/genTable?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseGenTableColumnById(id: number | string) {
+    return api.GetDataByPath("/back/base/genTableColumn?id=" + id, {}, true) as Promise<ResponseData<GenTableColumn>>;
+}
+
+export function GetBaseGenTableColumnListByGenTableColumn(param: GenTableColumn, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/genTableColumn/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GenTableColumn>>>;
+}
+
+export function GetBaseGenTableColumnListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/genTableColumn/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<GenTableColumn[]>>;
+}
+
+export function SaveBaseGenTableColumn(GenTableColumn: GenTableColumn) {
+    return api.PostDataByPath("/back/base/genTableColumn", { genTableColumn: GenTableColumn}, true) as Promise<ResponseData<GenTableColumn>>;
+}
+
+export function UpdateBaseGenTableColumn(GenTableColumn: GenTableColumn, id: number | string) {
+    return api.PutDataByPath("/back/base/genTableColumn", { genTableColumn: GenTableColumn, id: id}, true) as Promise<ResponseData<GenTableColumn>>;
+}
+
+export function DeleteBaseGenTableColumnById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/genTableColumn?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseGoodsById(id: number | string) {
+    return api.GetDataByPath("/back/base/goods?id=" + id, {}, true) as Promise<ResponseData<Goods>>;
+}
+
+export function GetBaseGoodsListByGoods(param: Goods, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/goods/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<Goods>>>;
+}
+
+export function GetBaseGoodsListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/goods/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<Goods[]>>;
+}
+
+export function SaveBaseGoods(Goods: Goods) {
+    return api.PostDataByPath("/back/base/goods", { goods: Goods}, true) as Promise<ResponseData<Goods>>;
+}
+
+export function UpdateBaseGoods(Goods: Goods, id: number | string) {
+    return api.PutDataByPath("/back/base/goods", { goods: Goods, id: id}, true) as Promise<ResponseData<Goods>>;
+}
+
+export function DeleteBaseGoodsById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/goods?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseGoodsCommodityAreaById(id: number | string) {
+    return api.GetDataByPath("/back/base/goodsCommodityArea?id=" + id, {}, true) as Promise<ResponseData<GoodsCommodityArea>>;
+}
+
+export function GetBaseGoodsCommodityAreaListByGoodsCommodityArea(param: GoodsCommodityArea, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/goodsCommodityArea/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsCommodityArea>>>;
+}
+
+export function GetBaseGoodsCommodityAreaListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/goodsCommodityArea/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<GoodsCommodityArea[]>>;
+}
+
+export function SaveBaseGoodsCommodityArea(GoodsCommodityArea: GoodsCommodityArea) {
+    return api.PostDataByPath("/back/base/goodsCommodityArea", { goodsCommodityArea: GoodsCommodityArea}, true) as Promise<ResponseData<GoodsCommodityArea>>;
+}
+
+export function UpdateBaseGoodsCommodityArea(GoodsCommodityArea: GoodsCommodityArea, id: number | string) {
+    return api.PutDataByPath("/back/base/goodsCommodityArea", { goodsCommodityArea: GoodsCommodityArea, id: id}, true) as Promise<ResponseData<GoodsCommodityArea>>;
+}
+
+export function DeleteBaseGoodsCommodityAreaById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/goodsCommodityArea?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseGoodsCouponById(id: number | string) {
+    return api.GetDataByPath("/back/base/goodsCoupon?id=" + id, {}, true) as Promise<ResponseData<GoodsCoupon>>;
+}
+
+export function GetBaseGoodsCouponListByGoodsCoupon(param: GoodsCoupon, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/goodsCoupon/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsCoupon>>>;
+}
+
+export function GetBaseGoodsCouponListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/goodsCoupon/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<GoodsCoupon[]>>;
+}
+
+export function SaveBaseGoodsCoupon(GoodsCoupon: GoodsCoupon) {
+    return api.PostDataByPath("/back/base/goodsCoupon", { goodsCoupon: GoodsCoupon}, true) as Promise<ResponseData<GoodsCoupon>>;
+}
+
+export function UpdateBaseGoodsCoupon(GoodsCoupon: GoodsCoupon, id: number | string) {
+    return api.PutDataByPath("/back/base/goodsCoupon", { goodsCoupon: GoodsCoupon, id: id}, true) as Promise<ResponseData<GoodsCoupon>>;
+}
+
+export function DeleteBaseGoodsCouponById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/goodsCoupon?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseGoodsCouponUserById(id: number | string) {
+    return api.GetDataByPath("/back/base/goodsCouponUser?id=" + id, {}, true) as Promise<ResponseData<GoodsCouponUser>>;
+}
+
+export function GetBaseGoodsCouponUserListByGoodsCouponUser(param: GoodsCouponUser, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/goodsCouponUser/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsCouponUser>>>;
+}
+
+export function GetBaseGoodsCouponUserListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/goodsCouponUser/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<GoodsCouponUser[]>>;
+}
+
+export function SaveBaseGoodsCouponUser(GoodsCouponUser: GoodsCouponUser) {
+    return api.PostDataByPath("/back/base/goodsCouponUser", { goodsCouponUser: GoodsCouponUser}, true) as Promise<ResponseData<GoodsCouponUser>>;
+}
+
+export function UpdateBaseGoodsCouponUser(GoodsCouponUser: GoodsCouponUser, id: number | string) {
+    return api.PutDataByPath("/back/base/goodsCouponUser", { goodsCouponUser: GoodsCouponUser, id: id}, true) as Promise<ResponseData<GoodsCouponUser>>;
+}
+
+export function DeleteBaseGoodsCouponUserById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/goodsCouponUser?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseGoodsIntroductionById(id: number | string) {
+    return api.GetDataByPath("/back/base/goodsIntroduction?id=" + id, {}, true) as Promise<ResponseData<GoodsIntroduction>>;
+}
+
+export function GetBaseGoodsIntroductionListByGoodsIntroduction(param: GoodsIntroduction, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/goodsIntroduction/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsIntroduction>>>;
+}
+
+export function GetBaseGoodsIntroductionListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/goodsIntroduction/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<GoodsIntroduction[]>>;
+}
+
+export function SaveBaseGoodsIntroduction(GoodsIntroduction: GoodsIntroduction) {
+    return api.PostDataByPath("/back/base/goodsIntroduction", { goodsIntroduction: GoodsIntroduction}, true) as Promise<ResponseData<GoodsIntroduction>>;
+}
+
+export function UpdateBaseGoodsIntroduction(GoodsIntroduction: GoodsIntroduction, id: number | string) {
+    return api.PutDataByPath("/back/base/goodsIntroduction", { goodsIntroduction: GoodsIntroduction, id: id}, true) as Promise<ResponseData<GoodsIntroduction>>;
+}
+
+export function DeleteBaseGoodsIntroductionById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/goodsIntroduction?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseGoodsOrderById(id: number | string) {
+    return api.GetDataByPath("/back/base/goodsOrder?id=" + id, {}, true) as Promise<ResponseData<GoodsOrder>>;
+}
+
+export function GetBaseGoodsOrderListByGoodsOrder(param: GoodsOrder, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/goodsOrder/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsOrder>>>;
+}
+
+export function GetBaseGoodsOrderListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/goodsOrder/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<GoodsOrder[]>>;
+}
+
+export function SaveBaseGoodsOrder(GoodsOrder: GoodsOrder) {
+    return api.PostDataByPath("/back/base/goodsOrder", { goodsOrder: GoodsOrder}, true) as Promise<ResponseData<GoodsOrder>>;
+}
+
+export function UpdateBaseGoodsOrder(GoodsOrder: GoodsOrder, id: number | string) {
+    return api.PutDataByPath("/back/base/goodsOrder", { goodsOrder: GoodsOrder, id: id}, true) as Promise<ResponseData<GoodsOrder>>;
+}
+
+export function DeleteBaseGoodsOrderById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/goodsOrder?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseGoodsSkuById(id: number | string) {
+    return api.GetDataByPath("/back/base/goodsSku?id=" + id, {}, true) as Promise<ResponseData<GoodsSku>>;
+}
+
+export function GetBaseGoodsSkuListByGoodsSku(param: GoodsSku, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/goodsSku/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsSku>>>;
+}
+
+export function GetBaseGoodsSkuListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/goodsSku/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<GoodsSku[]>>;
+}
+
+export function SaveBaseGoodsSku(GoodsSku: GoodsSku) {
+    return api.PostDataByPath("/back/base/goodsSku", { goodsSku: GoodsSku}, true) as Promise<ResponseData<GoodsSku>>;
+}
+
+export function UpdateBaseGoodsSku(GoodsSku: GoodsSku, id: number | string) {
+    return api.PutDataByPath("/back/base/goodsSku", { goodsSku: GoodsSku, id: id}, true) as Promise<ResponseData<GoodsSku>>;
+}
+
+export function DeleteBaseGoodsSkuById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/goodsSku?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseGoodsSkuCardById(id: number | string) {
+    return api.GetDataByPath("/back/base/goodsSkuCard?id=" + id, {}, true) as Promise<ResponseData<GoodsSkuCard>>;
+}
+
+export function GetBaseGoodsSkuCardListByGoodsSkuCard(param: GoodsSkuCard, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/goodsSkuCard/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsSkuCard>>>;
+}
+
+export function GetBaseGoodsSkuCardListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/goodsSkuCard/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<GoodsSkuCard[]>>;
+}
+
+export function SaveBaseGoodsSkuCard(GoodsSkuCard: GoodsSkuCard) {
+    return api.PostDataByPath("/back/base/goodsSkuCard", { goodsSkuCard: GoodsSkuCard}, true) as Promise<ResponseData<GoodsSkuCard>>;
+}
+
+export function UpdateBaseGoodsSkuCard(GoodsSkuCard: GoodsSkuCard, id: number | string) {
+    return api.PutDataByPath("/back/base/goodsSkuCard", { goodsSkuCard: GoodsSkuCard, id: id}, true) as Promise<ResponseData<GoodsSkuCard>>;
+}
+
+export function DeleteBaseGoodsSkuCardById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/goodsSkuCard?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseGoodsTagById(id: number | string) {
+    return api.GetDataByPath("/back/base/goodsTag?id=" + id, {}, true) as Promise<ResponseData<GoodsTag>>;
+}
+
+export function GetBaseGoodsTagListByGoodsTag(param: GoodsTag, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/goodsTag/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsTag>>>;
+}
+
+export function GetBaseGoodsTagListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/goodsTag/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<GoodsTag[]>>;
+}
+
+export function SaveBaseGoodsTag(GoodsTag: GoodsTag) {
+    return api.PostDataByPath("/back/base/goodsTag", { goodsTag: GoodsTag}, true) as Promise<ResponseData<GoodsTag>>;
+}
+
+export function UpdateBaseGoodsTag(GoodsTag: GoodsTag, id: number | string) {
+    return api.PutDataByPath("/back/base/goodsTag", { goodsTag: GoodsTag, id: id}, true) as Promise<ResponseData<GoodsTag>>;
+}
+
+export function DeleteBaseGoodsTagById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/goodsTag?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseGoodsTypeById(id: number | string) {
+    return api.GetDataByPath("/back/base/goodsType?id=" + id, {}, true) as Promise<ResponseData<GoodsType>>;
+}
+
+export function GetBaseGoodsTypeListByGoodsType(param: GoodsType, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/goodsType/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<GoodsType>>>;
+}
+
+export function GetBaseGoodsTypeListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/goodsType/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<GoodsType[]>>;
+}
+
+export function SaveBaseGoodsType(GoodsType: GoodsType) {
+    return api.PostDataByPath("/back/base/goodsType", { goodsType: GoodsType}, true) as Promise<ResponseData<GoodsType>>;
+}
+
+export function UpdateBaseGoodsType(GoodsType: GoodsType, id: number | string) {
+    return api.PutDataByPath("/back/base/goodsType", { goodsType: GoodsType, id: id}, true) as Promise<ResponseData<GoodsType>>;
+}
+
+export function DeleteBaseGoodsTypeById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/goodsType?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseUserById(id: number | string) {
+    return api.GetDataByPath("/back/base/user?id=" + id, {}, true) as Promise<ResponseData<User>>;
+}
+
+export function GetBaseUserListByUser(param: User, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/user/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<User>>>;
+}
+
+export function GetBaseUserListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/user/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<User[]>>;
+}
+
+export function SaveBaseUser(User: User) {
+    return api.PostDataByPath("/back/base/user", { user: User}, true) as Promise<ResponseData<User>>;
+}
+
+export function UpdateBaseUser(User: User, id: number | string) {
+    return api.PutDataByPath("/back/base/user", { user: User, id: id}, true) as Promise<ResponseData<User>>;
+}
+
+export function DeleteBaseUserById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/user?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseUserWalletById(id: number | string) {
+    return api.GetDataByPath("/back/base/userWallet?id=" + id, {}, true) as Promise<ResponseData<UserWallet>>;
+}
+
+export function GetBaseUserWalletListByUserWallet(param: UserWallet, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/userWallet/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<UserWallet>>>;
+}
+
+export function GetBaseUserWalletListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/userWallet/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<UserWallet[]>>;
+}
+
+export function SaveBaseUserWallet(UserWallet: UserWallet) {
+    return api.PostDataByPath("/back/base/userWallet", { userWallet: UserWallet}, true) as Promise<ResponseData<UserWallet>>;
+}
+
+export function UpdateBaseUserWallet(UserWallet: UserWallet, id: number | string) {
+    return api.PutDataByPath("/back/base/userWallet", { userWallet: UserWallet, id: id}, true) as Promise<ResponseData<UserWallet>>;
+}
+
+export function DeleteBaseUserWalletById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/userWallet?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseDictDataById(id: number | string) {
+    return api.GetDataByPath("/back/base/dictData?id=" + id, {}, true) as Promise<ResponseData<DictData>>;
+}
+
+export function GetBaseDictDataListByDictData(param: DictData, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/dictData/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<DictData>>>;
+}
+
+export function GetBaseDictDataListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/dictData/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<DictData[]>>;
+}
+
+export function SaveBaseDictData(DictData: DictData) {
+    return api.PostDataByPath("/back/base/dictData", { dictData: DictData}, true) as Promise<ResponseData<DictData>>;
+}
+
+export function UpdateBaseDictData(DictData: DictData, id: number | string) {
+    return api.PutDataByPath("/back/base/dictData", { dictData: DictData, id: id}, true) as Promise<ResponseData<DictData>>;
+}
+
+export function DeleteBaseDictDataById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/dictData?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseDictTypeById(id: number | string) {
+    return api.GetDataByPath("/back/base/dictType?id=" + id, {}, true) as Promise<ResponseData<DictType>>;
+}
+
+export function GetBaseDictTypeListByDictType(param: DictType, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/dictType/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<DictType>>>;
+}
+
+export function GetBaseDictTypeListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/dictType/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<DictType[]>>;
+}
+
+export function SaveBaseDictType(DictType: DictType) {
+    return api.PostDataByPath("/back/base/dictType", { dictType: DictType}, true) as Promise<ResponseData<DictType>>;
+}
+
+export function UpdateBaseDictType(DictType: DictType, id: number | string) {
+    return api.PutDataByPath("/back/base/dictType", { dictType: DictType, id: id}, true) as Promise<ResponseData<DictType>>;
+}
+
+export function DeleteBaseDictTypeById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/dictType?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseManageUserById(id: number | string) {
+    return api.GetDataByPath("/back/base/manageUser?id=" + id, {}, true) as Promise<ResponseData<ManageUser>>;
+}
+
+export function GetBaseManageUserListByManageUser(param: ManageUser, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/manageUser/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<ManageUser>>>;
+}
+
+export function GetBaseManageUserListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/manageUser/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<ManageUser[]>>;
+}
+
+export function SaveBaseManageUser(ManageUser: ManageUser) {
+    return api.PostDataByPath("/back/base/manageUser", { manageUser: ManageUser}, true) as Promise<ResponseData<ManageUser>>;
+}
+
+export function UpdateBaseManageUser(ManageUser: ManageUser, id: number | string) {
+    return api.PutDataByPath("/back/base/manageUser", { manageUser: ManageUser, id: id}, true) as Promise<ResponseData<ManageUser>>;
+}
+
+export function DeleteBaseManageUserById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/manageUser?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseShopTopicById(id: number | string) {
+    return api.GetDataByPath("/back/base/shopTopic?id=" + id, {}, true) as Promise<ResponseData<ShopTopic>>;
+}
+
+export function GetBaseShopTopicListByShopTopic(param: ShopTopic, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/shopTopic/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<ShopTopic>>>;
+}
+
+export function GetBaseShopTopicListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/shopTopic/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<ShopTopic[]>>;
+}
+
+export function SaveBaseShopTopic(ShopTopic: ShopTopic) {
+    return api.PostDataByPath("/back/base/shopTopic", { shopTopic: ShopTopic}, true) as Promise<ResponseData<ShopTopic>>;
+}
+
+export function UpdateBaseShopTopic(ShopTopic: ShopTopic, id: number | string) {
+    return api.PutDataByPath("/back/base/shopTopic", { shopTopic: ShopTopic, id: id}, true) as Promise<ResponseData<ShopTopic>>;
+}
+
+export function DeleteBaseShopTopicById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/shopTopic?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseShopAdviceCarouselById(id: number | string) {
+    return api.GetDataByPath("/back/base/shopAdviceCarousel?id=" + id, {}, true) as Promise<ResponseData<ShopAdviceCarousel>>;
+}
+
+export function GetBaseShopAdviceCarouselListByShopAdviceCarousel(param: ShopAdviceCarousel, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/shopAdviceCarousel/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<ShopAdviceCarousel>>>;
+}
+
+export function GetBaseShopAdviceCarouselListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/shopAdviceCarousel/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<ShopAdviceCarousel[]>>;
+}
+
+export function SaveBaseShopAdviceCarousel(ShopAdviceCarousel: ShopAdviceCarousel) {
+    return api.PostDataByPath("/back/base/shopAdviceCarousel", { shopAdviceCarousel: ShopAdviceCarousel}, true) as Promise<ResponseData<ShopAdviceCarousel>>;
+}
+
+export function UpdateBaseShopAdviceCarousel(ShopAdviceCarousel: ShopAdviceCarousel, id: number | string) {
+    return api.PutDataByPath("/back/base/shopAdviceCarousel", { shopAdviceCarousel: ShopAdviceCarousel, id: id}, true) as Promise<ResponseData<ShopAdviceCarousel>>;
+}
+
+export function DeleteBaseShopAdviceCarouselById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/shopAdviceCarousel?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+export function GetBaseShopTopicSkuById(id: number | string) {
+    return api.GetDataByPath("/back/base/shopTopicSku?id=" + id, {}, true) as Promise<ResponseData<ShopTopicSku>>;
+}
+
+export function GetBaseShopTopicSkuListByShopTopicSku(param: ShopTopicSku, pageNum = 1, pageSize = 10) {
+    return api.PostDataByPath("/back/base/shopTopicSku/list", {param: param,pageNum: pageNum,pageSize: pageSize}, true) as Promise<ResponseData<BaseListVo<ShopTopicSku>>>;
+}
+
+export function GetBaseShopTopicSkuListByIds(ids: number[] | string[]) {
+    return api.PostDataByPath("/back/base/shopTopicSku/in", {
+        ids: ids
+    }, true) as Promise<ResponseData<ShopTopicSku[]>>;
+}
+
+export function SaveBaseShopTopicSku(ShopTopicSku: ShopTopicSku) {
+    return api.PostDataByPath("/back/base/shopTopicSku", { shopTopicSku: ShopTopicSku}, true) as Promise<ResponseData<ShopTopicSku>>;
+}
+
+export function UpdateBaseShopTopicSku(ShopTopicSku: ShopTopicSku, id: number | string) {
+    return api.PutDataByPath("/back/base/shopTopicSku", { shopTopicSku: ShopTopicSku, id: id}, true) as Promise<ResponseData<ShopTopicSku>>;
+}
+
+export function DeleteBaseShopTopicSkuById(id: number | string) {
+    return api.DeleteDataByPath("/back/base/shopTopicSku?id=" + id, {}, true) as Promise<ResponseData<any>>;
+}
+
+
+
+export class Article{
+    
+    id: number
+    articletitle: string
+    articlecontent: string
+    state: string
+    articletagids: string
+    articletopicid: number
+    image: string
+    publishtime: string
+    eyefill: number
+    likecount: number
+    createby: string
+    createtime: string
+    updateby: string
+    updatetime: string
+	static Create(){
+        return new Article(null,null,null,null,null,null,null,null,null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,articletitle: string,articlecontent: string,state: string,articletagids: string,articletopicid: number,image: string,publishtime: string,eyefill: number,likecount: number,createby: string,createtime: string,updateby: string,updatetime: string,) {
+		 this.id = id;
+		 this.articletitle = articletitle;
+		 this.articlecontent = articlecontent;
+		 this.state = state;
+		 this.articletagids = articletagids;
+		 this.articletopicid = articletopicid;
+		 this.image = image;
+		 this.publishtime = publishtime;
+		 this.eyefill = eyefill;
+		 this.likecount = likecount;
+		 this.createby = createby;
+		 this.createtime = createtime;
+		 this.updateby = updateby;
+		 this.updatetime = updatetime;
+		 
+	}
+}
+
+export class ArticleTag{
+    
+    id: number
+    tagname: string
+    tagdesc: string
+	static Create(){
+        return new ArticleTag(null,null,null,);
+    }
+
+	constructor(    id: number,tagname: string,tagdesc: string,) {
+		 this.id = id;
+		 this.tagname = tagname;
+		 this.tagdesc = tagdesc;
+		 
+	}
+}
+
+export class ArticleTopic{
+    
+    id: number
+    image: string
+    topicname: string
+    topicdesc: string
+	static Create(){
+        return new ArticleTopic(null,null,null,null,);
+    }
+
+	constructor(    id: number,image: string,topicname: string,topicdesc: string,) {
+		 this.id = id;
+		 this.image = image;
+		 this.topicname = topicname;
+		 this.topicdesc = topicdesc;
+		 
+	}
+}
+
+export class BackAuthority{
+    
+    id: number
+    authorityname: string
+    authoritypath: string
+    method: string
+    state: string
+    authorityverification: string
+    createtime: string
+	static Create(){
+        return new BackAuthority(null,null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,authorityname: string,authoritypath: string,method: string,state: string,authorityverification: string,createtime: string,) {
+		 this.id = id;
+		 this.authorityname = authorityname;
+		 this.authoritypath = authoritypath;
+		 this.method = method;
+		 this.state = state;
+		 this.authorityverification = authorityverification;
+		 this.createtime = createtime;
+		 
+	}
+}
+
+export class BackMenu{
+    
+    id: number
+    backmenuname: string
+    backmenupater: number
+    sort: number
+    icon: string
+    remark: string
+    backrouterpath: string
+    state: string
+	static Create(){
+        return new BackMenu(null,null,null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,backmenuname: string,backmenupater: number,sort: number,icon: string,remark: string,backrouterpath: string,state: string,) {
+		 this.id = id;
+		 this.backmenuname = backmenuname;
+		 this.backmenupater = backmenupater;
+		 this.sort = sort;
+		 this.icon = icon;
+		 this.remark = remark;
+		 this.backrouterpath = backrouterpath;
+		 this.state = state;
+		 
+	}
+}
+
+export class BackRole{
+    
+    id: number
+    rolename: string
+	static Create(){
+        return new BackRole(null,null,);
+    }
+
+	constructor(    id: number,rolename: string,) {
+		 this.id = id;
+		 this.rolename = rolename;
+		 
+	}
+}
+
+export class BackRoleAuthority{
+    
+    id: number
+    roleid: number
+    authorityid: number
+	static Create(){
+        return new BackRoleAuthority(null,null,null,);
+    }
+
+	constructor(    id: number,roleid: number,authorityid: number,) {
+		 this.id = id;
+		 this.roleid = roleid;
+		 this.authorityid = authorityid;
+		 
+	}
+}
+
+export class BackRoleMenu{
+    
+    id: number
+    roleid: number
+    menuid: number
+	static Create(){
+        return new BackRoleMenu(null,null,null,);
+    }
+
+	constructor(    id: number,roleid: number,menuid: number,) {
+		 this.id = id;
+		 this.roleid = roleid;
+		 this.menuid = menuid;
+		 
+	}
+}
+
+export class GenTable{
+    
+    id: number
+    tablename: string
+    tablecomment: string
+    name: string
+    routername: string
+    remark: string
+	static Create(){
+        return new GenTable(null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,tablename: string,tablecomment: string,name: string,routername: string,remark: string,) {
+		 this.id = id;
+		 this.tablename = tablename;
+		 this.tablecomment = tablecomment;
+		 this.name = name;
+		 this.routername = routername;
+		 this.remark = remark;
+		 
+	}
+}
+
+export class GenTableColumn{
+    
+    id: number
+    tableid: number
+    sort: number
+    columnname: string
+    columncomment: string
+    columntype: string
+    gotype: string
+    gofield: string
+    iskey: string
+    isincrement: string
+    isrequired: string
+    querytype: string
+    vueshowtype: string
+    dicttype: string
+	static Create(){
+        return new GenTableColumn(null,null,null,null,null,null,null,null,null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,tableid: number,sort: number,columnname: string,columncomment: string,columntype: string,gotype: string,gofield: string,iskey: string,isincrement: string,isrequired: string,querytype: string,vueshowtype: string,dicttype: string,) {
+		 this.id = id;
+		 this.tableid = tableid;
+		 this.sort = sort;
+		 this.columnname = columnname;
+		 this.columncomment = columncomment;
+		 this.columntype = columntype;
+		 this.gotype = gotype;
+		 this.gofield = gofield;
+		 this.iskey = iskey;
+		 this.isincrement = isincrement;
+		 this.isrequired = isrequired;
+		 this.querytype = querytype;
+		 this.vueshowtype = vueshowtype;
+		 this.dicttype = dicttype;
+		 
+	}
+}
+
+export class Goods{
+    
+    id: number
+    typeid: number
+    goodsname: string
+    introductionid: number
+    salesvolume: number
+    tagids: string
+	static Create(){
+        return new Goods(null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,typeid: number,goodsname: string,introductionid: number,salesvolume: number,tagids: string,) {
+		 this.id = id;
+		 this.typeid = typeid;
+		 this.goodsname = goodsname;
+		 this.introductionid = introductionid;
+		 this.salesvolume = salesvolume;
+		 this.tagids = tagids;
+		 
+	}
+}
+
+export class GoodsCommodityArea{
+    
+    id: number
+    goodsid: number
+    commodityareaname: string
+    detailimage: string
+    detailintroductionid: number
+	static Create(){
+        return new GoodsCommodityArea(null,null,null,null,null,);
+    }
+
+	constructor(    id: number,goodsid: number,commodityareaname: string,detailimage: string,detailintroductionid: number,) {
+		 this.id = id;
+		 this.goodsid = goodsid;
+		 this.commodityareaname = commodityareaname;
+		 this.detailimage = detailimage;
+		 this.detailintroductionid = detailintroductionid;
+		 
+	}
+}
+
+export class GoodsCoupon{
+    
+    id: number
+    couponname: string
+    coupondesc: string
+    cashbackpoint: number
+    cashbackprice: number
+    conditionbytopic: string
+    conditionbytype: string
+    conditionbygoods: string
+    grantcount: string
+    count: number
+    receivetype: string
+    validity: string
+    validityperiod: string
+	static Create(){
+        return new GoodsCoupon(null,null,null,null,null,null,null,null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,couponname: string,coupondesc: string,cashbackpoint: number,cashbackprice: number,conditionbytopic: string,conditionbytype: string,conditionbygoods: string,grantcount: string,count: number,receivetype: string,validity: string,validityperiod: string,) {
+		 this.id = id;
+		 this.couponname = couponname;
+		 this.coupondesc = coupondesc;
+		 this.cashbackpoint = cashbackpoint;
+		 this.cashbackprice = cashbackprice;
+		 this.conditionbytopic = conditionbytopic;
+		 this.conditionbytype = conditionbytype;
+		 this.conditionbygoods = conditionbygoods;
+		 this.grantcount = grantcount;
+		 this.count = count;
+		 this.receivetype = receivetype;
+		 this.validity = validity;
+		 this.validityperiod = validityperiod;
+		 
+	}
+}
+
+export class GoodsCouponUser{
+    
+    id: number
+    userid: number
+    couponid: number
+    collectiontime: string
+    state: string
+	static Create(){
+        return new GoodsCouponUser(null,null,null,null,null,);
+    }
+
+	constructor(    id: number,userid: number,couponid: number,collectiontime: string,state: string,) {
+		 this.id = id;
+		 this.userid = userid;
+		 this.couponid = couponid;
+		 this.collectiontime = collectiontime;
+		 this.state = state;
+		 
+	}
+}
+
+export class GoodsIntroduction{
+    
+    id: number
+    goodsarticlename: string
+    goodsarticle: string
+    createby: string
+    createtime: string
+    updateby: string
+    updatetime: string
+	static Create(){
+        return new GoodsIntroduction(null,null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,goodsarticlename: string,goodsarticle: string,createby: string,createtime: string,updateby: string,updatetime: string,) {
+		 this.id = id;
+		 this.goodsarticlename = goodsarticlename;
+		 this.goodsarticle = goodsarticle;
+		 this.createby = createby;
+		 this.createtime = createtime;
+		 this.updateby = updateby;
+		 this.updatetime = updatetime;
+		 
+	}
+}
+
+export class GoodsOrder{
+    
+    id: number
+    ordername: string
+    skuid: number
+    count: number
+    price: number
+    totalprice: number
+    contactinformation: string
+    couponuserid: number
+    state: string
+    createby: number
+    createtime: string
+	static Create(){
+        return new GoodsOrder(null,null,null,null,null,null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,ordername: string,skuid: number,count: number,price: number,totalprice: number,contactinformation: string,couponuserid: number,state: string,createby: number,createtime: string,) {
+		 this.id = id;
+		 this.ordername = ordername;
+		 this.skuid = skuid;
+		 this.count = count;
+		 this.price = price;
+		 this.totalprice = totalprice;
+		 this.contactinformation = contactinformation;
+		 this.couponuserid = couponuserid;
+		 this.state = state;
+		 this.createby = createby;
+		 this.createtime = createtime;
+		 
+	}
+}
+
+export class GoodsSku{
+    
+    id: number
+    skuimage: string
+    skuname: string
+    price: number
+    historicalprices: number
+    inventorynumber: number
+    commodityareaid: number
+    goodsid: number
+    createby: string
+    createtime: string
+	static Create(){
+        return new GoodsSku(null,null,null,null,null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,skuimage: string,skuname: string,price: number,historicalprices: number,inventorynumber: number,commodityareaid: number,goodsid: number,createby: string,createtime: string,) {
+		 this.id = id;
+		 this.skuimage = skuimage;
+		 this.skuname = skuname;
+		 this.price = price;
+		 this.historicalprices = historicalprices;
+		 this.inventorynumber = inventorynumber;
+		 this.commodityareaid = commodityareaid;
+		 this.goodsid = goodsid;
+		 this.createby = createby;
+		 this.createtime = createtime;
+		 
+	}
+}
+
+export class GoodsSkuCard{
+    
+    id: number
+    cardname: string
+    state: string
+    count: number
+    totalcount: string
+    cardkey: string
+    use: string
+    uploadtime: string
+    skuid: number
+    sort: string
+	static Create(){
+        return new GoodsSkuCard(null,null,null,null,null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,cardname: string,state: string,count: number,totalcount: string,cardkey: string,use: string,uploadtime: string,skuid: number,sort: string,) {
+		 this.id = id;
+		 this.cardname = cardname;
+		 this.state = state;
+		 this.count = count;
+		 this.totalcount = totalcount;
+		 this.cardkey = cardkey;
+		 this.use = use;
+		 this.uploadtime = uploadtime;
+		 this.skuid = skuid;
+		 this.sort = sort;
+		 
+	}
+}
+
+export class GoodsTag{
+    
+    id: number
+    name: string
+    iconurl: string
+    tag: string
+	static Create(){
+        return new GoodsTag(null,null,null,null,);
+    }
+
+	constructor(    id: number,name: string,iconurl: string,tag: string,) {
+		 this.id = id;
+		 this.name = name;
+		 this.iconurl = iconurl;
+		 this.tag = tag;
+		 
+	}
+}
+
+export class GoodsType{
+    
+    id: number
+    sort: number
+    typeimage: string
+    typename: string
+    createtime: string
+	static Create(){
+        return new GoodsType(null,null,null,null,null,);
+    }
+
+	constructor(    id: number,sort: number,typeimage: string,typename: string,createtime: string,) {
+		 this.id = id;
+		 this.sort = sort;
+		 this.typeimage = typeimage;
+		 this.typename = typename;
+		 this.createtime = createtime;
+		 
+	}
+}
+
+export class User{
+    
+    id: number
+    username: string
+    password: string
+    creationtime: number
+    logintime: number
+    status: string
+    roleid: number
+    phone: string
+    email: string
+    name: string
+    avatar: string
+    recommendcode: string
+	static Create(){
+        return new User(null,null,null,null,null,null,null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,username: string,password: string,creationtime: number,logintime: number,status: string,roleid: number,phone: string,email: string,name: string,avatar: string,recommendcode: string,) {
+		 this.id = id;
+		 this.username = username;
+		 this.password = password;
+		 this.creationtime = creationtime;
+		 this.logintime = logintime;
+		 this.status = status;
+		 this.roleid = roleid;
+		 this.phone = phone;
+		 this.email = email;
+		 this.name = name;
+		 this.avatar = avatar;
+		 this.recommendcode = recommendcode;
+		 
+	}
+}
+
+export class UserWallet{
+    
+    id: number
+    userid: number
+    balance: number
+    promotionamount: number
+    rechargeamount: number
+	static Create(){
+        return new UserWallet(null,null,null,null,null,);
+    }
+
+	constructor(    id: number,userid: number,balance: number,promotionamount: number,rechargeamount: number,) {
+		 this.id = id;
+		 this.userid = userid;
+		 this.balance = balance;
+		 this.promotionamount = promotionamount;
+		 this.rechargeamount = rechargeamount;
+		 
+	}
+}
+
+export class DictData{
+    
+    id: number
+    sort: number
+    dictlabel: string
+    dictvalue: string
+    dicttype: string
+    status: string
+    cssstyle: string
+    isdefault: string
+    remark: string
+	static Create(){
+        return new DictData(null,null,null,null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,sort: number,dictlabel: string,dictvalue: string,dicttype: string,status: string,cssstyle: string,isdefault: string,remark: string,) {
+		 this.id = id;
+		 this.sort = sort;
+		 this.dictlabel = dictlabel;
+		 this.dictvalue = dictvalue;
+		 this.dicttype = dicttype;
+		 this.status = status;
+		 this.cssstyle = cssstyle;
+		 this.isdefault = isdefault;
+		 this.remark = remark;
+		 
+	}
+}
+
+export class DictType{
+    
+    id: number
+    dictname: string
+    dicttype: string
+    status: string
+    remark: string
+	static Create(){
+        return new DictType(null,null,null,null,null,);
+    }
+
+	constructor(    id: number,dictname: string,dicttype: string,status: string,remark: string,) {
+		 this.id = id;
+		 this.dictname = dictname;
+		 this.dicttype = dicttype;
+		 this.status = status;
+		 this.remark = remark;
+		 
+	}
+}
+
+export class ManageUser{
+    
+    id: number
+    name: string
+    username: string
+    password: string
+    creationtime: number
+    logintime: number
+    status: string
+    roleid: number
+    phone: string
+    email: string
+    avatar: string
+	static Create(){
+        return new ManageUser(null,null,null,null,null,null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,name: string,username: string,password: string,creationtime: number,logintime: number,status: string,roleid: number,phone: string,email: string,avatar: string,) {
+		 this.id = id;
+		 this.name = name;
+		 this.username = username;
+		 this.password = password;
+		 this.creationtime = creationtime;
+		 this.logintime = logintime;
+		 this.status = status;
+		 this.roleid = roleid;
+		 this.phone = phone;
+		 this.email = email;
+		 this.avatar = avatar;
+		 
+	}
+}
+
+export class ShopTopic{
+    
+    id: number
+    rolename: string
+	static Create(){
+        return new ShopTopic(null,null,);
+    }
+
+	constructor(    id: number,rolename: string,) {
+		 this.id = id;
+		 this.rolename = rolename;
+		 
+	}
+}
+
+export class ShopAdviceCarousel{
+    
+    authorityid: number
+    roleid: number
+	static Create(){
+        return new ShopAdviceCarousel(null,null,);
+    }
+
+	constructor(    authorityid: number,roleid: number,) {
+		 this.authorityid = authorityid;
+		 this.roleid = roleid;
+		 
+	}
+}
+
+export class ShopTopicSku{
+    
+    id: number
+    sort: string
+    imageurl: string
+    skuid: number
+    show: string
+    createby: string
+    createtime: string
+    updateby: string
+    updatetime: string
+	static Create(){
+        return new ShopTopicSku(null,null,null,null,null,null,null,null,null,);
+    }
+
+	constructor(    id: number,sort: string,imageurl: string,skuid: number,show: string,createby: string,createtime: string,updateby: string,updatetime: string,) {
+		 this.id = id;
+		 this.sort = sort;
+		 this.imageurl = imageurl;
+		 this.skuid = skuid;
+		 this.show = show;
+		 this.createby = createby;
+		 this.createtime = createtime;
+		 this.updateby = updateby;
+		 this.updatetime = updatetime;
+		 
+	}
+}

+ 72 - 0
sqlload/SqlLoad.go

@@ -1,7 +1,9 @@
 package sqlload
 
 import (
+	"fmt"
 	"go-create-template/configs"
+	"go-create-template/util"
 )
 
 var CTables []CTable
@@ -42,6 +44,7 @@ func Load() {
 	}
 
 	LoadGenTableAndGenTableColumn()
+	LoadGenTableData()
 }
 
 // LoadGenTableAndGenTableColumn 加载数据库中的表格和列字段生成
@@ -72,3 +75,72 @@ func LoadGenTableAndGenTableColumn() {
 	}
 	CGans = gens
 }
+
+// LoadGenTableData 去重补漏
+func LoadGenTableData() {
+	//查询表格是否重复
+	ct := make(map[string]CTable)
+	cg := make(map[string]Gen)
+	for i := range CTables {
+		ct[CTables[i].Name] = CTables[i]
+	}
+	for i := range CGans {
+		cg[CGans[i].Table.TableName] = CGans[i]
+	}
+	notAddedCG := make(map[string]Gen)
+	addedCG := make(map[string]CTable)
+	for s := range cg {
+		_, ok := ct[s]
+		if ok {
+			addedCG[s] = ct[s]
+		} else {
+			fmt.Println(cg[s])
+			notAddedCG[s] = cg[s]
+		}
+	}
+
+	for s := range notAddedCG {
+		configs.Engine.Insert(GenTable{
+			TableName:    notAddedCG[s].Table.TableName,
+			TableComment: notAddedCG[s].Table.TableComment,
+			Name:         util.BigHump(notAddedCG[s].Table.TableName),
+			RouterName:   util.SmallHump(notAddedCG[s].Table.TableName),
+			Remark:       notAddedCG[s].Table.TableComment})
+	}
+	//删除多余表格
+	for s := range ct {
+		_, ok := cg[s]
+		if !ok {
+			configs.Engine.Table("gen_table").Where("id = ?", cg[s].Table.Id).Delete(ct[s])
+		}
+	}
+	LoadGenTableAndGenTableColumn()
+	for i := range CTables {
+		ct[CTables[i].Name] = CTables[i]
+	}
+	for i := range CGans {
+		cg[CGans[i].Table.TableName] = CGans[i]
+	}
+	for s := range cg {
+		for i := 0; i < len(cg[s].TableColumns); i++ {
+			//字段添加
+			//addColumn := GenTableColumn{
+			//	TableId:       cg[s].Table.Id,
+			//	ColumnName:    cg[s].TableColumns[i].ColumnName,
+			//	ColumnComment: cg[s].TableColumns[i].,
+			//	ColumnType:    cg[s].TableColumns[i].SQLType.Name,
+			//	GoField:       util.BigHump(cg[s].TableColumns[i].ColumnName),
+			//	GoType:        util.ToGoType(cg[s].TableColumns[i].SQLType.Name),
+			//}
+			//字段对比
+			for j := 0; j < len(ct[s].CTableColumns); j++ {
+				if cg[s].TableColumns[i].ColumnName == ct[s].CTableColumns[j].Name {
+					continue
+				} else {
+
+				}
+			}
+		}
+	}
+
+}

+ 40 - 2
util/BaseTemplateFunc.go

@@ -6,8 +6,11 @@ import (
 )
 
 var FuncMap = template.FuncMap{
-	"toGoType":       ToGoType,
-	"formatJsonName": FormatJsonName,
+	"toGoType":           ToGoType,
+	"formatJsonName":     FormatJsonName,
+	"formatSqlToVueType": formatSqlToVueType,
+	"smallHump":          SmallHump,
+	"bigHump":            BigHump,
 }
 
 // ToGoType sql类型转go类型
@@ -38,3 +41,38 @@ func FormatJsonName(sqlName string) string {
 	}
 	return str
 }
+func formatSqlToVueType(str string) string {
+	str = strings.ToLower(str)
+	switch str {
+	case "varchar":
+		return "string"
+	case "char":
+		return "string"
+	case "int":
+		return "number"
+	case "decimal":
+		return "number"
+	case "datetime":
+		return "string"
+	case "longblob":
+		return "string"
+	default:
+		panic("未定义的类型:" + str)
+	}
+}
+func BigHump(str string) string {
+	split := strings.Split(str, "_")
+	res := strings.Title(split[0])
+	for i := 1; i < len(split); i++ {
+		res += split[i]
+	}
+	return res
+}
+func SmallHump(str string) string {
+	split := strings.Split(str, "_")
+	res := strings.ToLower(split[0][0:1]) + strings.ToLower(split[0][1:])
+	for i := 1; i < len(split); i++ {
+		res += split[i]
+	}
+	return res
+}