Browse Source

Merge branch 'feature_yf' of HolaBIP/youngee_mc_api into master

houyunfeng 2 years ago
parent
commit
1af13b113d
100 changed files with 3473 additions and 3021 deletions
  1. 0 66
      app/api/backstage_api/accoun_api.go
  2. 0 68
      app/api/backstage_api/bilibili_api.go
  3. 0 96
      app/api/backstage_api/brand_api.go
  4. 0 78
      app/api/backstage_api/dianping_api.go
  5. 0 67
      app/api/backstage_api/expert_api.go
  6. 0 49
      app/api/backstage_api/finance_api.go
  7. 0 78
      app/api/backstage_api/kuaishou_api.go
  8. 0 73
      app/api/backstage_api/little_red_api.go
  9. 0 182
      app/api/backstage_api/login_api.go
  10. 0 234
      app/api/backstage_api/order_api.go
  11. 0 41
      app/api/backstage_api/product_api.go
  12. 0 345
      app/api/backstage_api/task_api.go
  13. 0 73
      app/api/backstage_api/tiktok_api.go
  14. 0 67
      app/api/backstage_api/weibo_api.go
  15. 0 73
      app/api/backstage_api/zhihu_api.go
  16. 0 199
      app/api/talent_api/talent_auth_get_api.go
  17. 0 161
      app/api/talent_api/talent_auth_post_api.go
  18. 0 60
      app/api/talent_api/talent_get_api.go
  19. 0 29
      app/api/talent_api/talent_post_api.go
  20. 221 0
      app/api/youngee_talent_api/talent_auth_get_api.go
  21. 101 0
      app/api/youngee_talent_api/talent_auth_post_api.go
  22. 1 13
      app/api/youngee_talent_api/talent_get_api.go
  23. 0 61
      app/dao/backstage_dao/brand_dao.go
  24. 0 115
      app/dao/backstage_dao/product_dao.go
  25. 0 106
      app/dao/backstage_dao/user_dao.go
  26. 24 0
      app/dao/enterprise_pay_record.go
  27. 24 0
      app/dao/info_auto_default_handle.go
  28. 24 0
      app/dao/info_auto_task.go
  29. 28 0
      app/dao/info_bank.go
  30. 24 0
      app/dao/info_message.go
  31. 24 0
      app/dao/info_pricing_strategy.go
  32. 24 0
      app/dao/info_product_type.go
  33. 24 0
      app/dao/info_task_stage.go
  34. 7 1
      app/dao/internal/enterprise.go
  35. 71 0
      app/dao/internal/enterprise_pay_record.go
  36. 89 0
      app/dao/internal/info_auto_default_handle.go
  37. 81 0
      app/dao/internal/info_auto_task.go
  38. 59 0
      app/dao/internal/info_bank.go
  39. 59 0
      app/dao/internal/info_message.go
  40. 83 0
      app/dao/internal/info_pricing_strategy.go
  41. 59 0
      app/dao/internal/info_product_type.go
  42. 59 0
      app/dao/internal/info_task_stage.go
  43. 66 32
      app/dao/internal/project_info.go
  44. 30 0
      app/dao/internal/recruit_strategy.go
  45. 73 0
      app/dao/internal/youngee_contract_info.go
  46. 69 0
      app/dao/internal/youngee_contract_set.go
  47. 0 2
      app/dao/internal/youngee_talent_delivery_address.go
  48. 4 4
      app/dao/internal/youngee_talent_info.go
  49. 49 5
      app/dao/internal/youngee_task_info.go
  50. 85 0
      app/dao/internal/youngee_task_logistics.go
  51. 77 0
      app/dao/internal/youngee_task_pay.go
  52. 89 0
      app/dao/internal/younggee_data_info.go
  53. 69 0
      app/dao/internal/younggee_invoice_address.go
  54. 77 0
      app/dao/internal/younggee_invoice_info.go
  55. 77 0
      app/dao/internal/younggee_invoice_record.go
  56. 85 0
      app/dao/internal/younggee_link_info.go
  57. 71 0
      app/dao/internal/younggee_message_info.go
  58. 75 0
      app/dao/internal/younggee_recharge_record.go
  59. 85 0
      app/dao/internal/younggee_script_info.go
  60. 87 0
      app/dao/internal/younggee_sketch_info.go
  61. 67 0
      app/dao/internal/younggee_sketch_photo.go
  62. 81 0
      app/dao/internal/younggee_talent_bank.go
  63. 63 0
      app/dao/internal/younggee_task_log.go
  64. 59 0
      app/dao/internal/younggee_task_message.go
  65. 75 0
      app/dao/internal/younggee_withdraw_record.go
  66. 24 0
      app/dao/youngee_contract_info.go
  67. 24 0
      app/dao/youngee_contract_set.go
  68. 24 0
      app/dao/youngee_task_logistics.go
  69. 24 0
      app/dao/youngee_task_pay.go
  70. 24 0
      app/dao/younggee_data_info.go
  71. 24 0
      app/dao/younggee_invoice_address.go
  72. 24 0
      app/dao/younggee_invoice_info.go
  73. 24 0
      app/dao/younggee_invoice_record.go
  74. 24 0
      app/dao/younggee_link_info.go
  75. 24 0
      app/dao/younggee_message_info.go
  76. 24 0
      app/dao/younggee_recharge_record.go
  77. 24 0
      app/dao/younggee_script_info.go
  78. 24 0
      app/dao/younggee_sketch_info.go
  79. 24 0
      app/dao/younggee_sketch_photo.go
  80. 28 0
      app/dao/younggee_talent_bank.go
  81. 24 0
      app/dao/younggee_task_log.go
  82. 24 0
      app/dao/younggee_task_message.go
  83. 24 0
      app/dao/younggee_withdraw_record.go
  84. 438 46
      app/model/model.go
  85. 0 51
      app/model/talent_model/bobocoin.go
  86. 0 25
      app/model/talent_model/delivery_address.go
  87. 0 25
      app/model/talent_model/info_tables.go
  88. 0 161
      app/model/talent_model/order_info.go
  89. 0 20
      app/model/talent_model/platform_bilibili.go
  90. 0 17
      app/model/talent_model/platform_dianping.go
  91. 0 22
      app/model/talent_model/platform_kuaishou.go
  92. 0 24
      app/model/talent_model/platform_little_red_book.go
  93. 0 25
      app/model/talent_model/platform_tiktok.go
  94. 0 23
      app/model/talent_model/platform_weibo.go
  95. 0 20
      app/model/talent_model/platform_zhihu.go
  96. 0 6
      app/model/talent_model/search_result.go
  97. 0 9
      app/model/talent_model/signup_info.go
  98. 0 8
      app/model/talent_model/talent_brief_info.go
  99. 0 12
      app/model/talent_model/talent_info.go
  100. 0 149
      app/model/talent_model/talent_platform_brief.go

+ 0 - 66
app/api/backstage_api/accoun_api.go

@@ -1,66 +0,0 @@
-package backstage_api
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"github.com/gogf/gf/util/gconv"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-var Account = accountApi{}
-
-type accountApi struct {
-}
-
-// FindAll 查询所有
-func (account *accountApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.AccountFindAll
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, num, err := backstage_service.Account.FindAll(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result, "num": num,
-	})
-}
-
-// FindTimeRange 带有时间范围查询的请求
-func (account *accountApi) FindTimeRange(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestAccount
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, num, err := backstage_service.Account.FindTimeRange(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	var result []*backstage_model.AccountManagement
-	err = gconv.Structs(res, &result)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result, "num": num,
-	})
-}
-
-// ChangeListStatus 批量审核成功或失败
-func (account *accountApi) ChangeListStatus(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestAccountList
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Account.ChangeListStatus(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "0")
-}
-
-// 根据达人ID 查询单个达人信息

+ 0 - 68
app/api/backstage_api/bilibili_api.go

@@ -1,68 +0,0 @@
-package backstage_api
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-// 写统一接口处理小红书,抖音,微博,快手,B站,大众点评,知乎,
-
-var Bilibili = bilibiliApi{}
-
-type bilibiliApi struct {
-}
-
-// FindAll 查询所有
-func (bilibili *bilibiliApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.BilibiliFind
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, num, err := backstage_service.Bilibili.FindByConditionBilibili(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result, "num": num,
-	})
-}
-
-// RemoveAccount  下架
-func (bilibili *bilibiliApi) RemoveAccount(r *ghttp.Request) {
-	var apiReq *backstage_model.RemoveAccountBilibili
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Bilibili.RemoveAccount(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "0")
-}
-
-// FindAllById 单个查询所有信息
-func (bilibili *bilibiliApi) FindAllById(r *ghttp.Request) {
-	// 只需要接收一个id即可
-	var apiReq *backstage_model.RemoveAccountBilibili
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, err := backstage_service.Bilibili.FindAllById(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	// 查找失败原因及失败时间
-	reason, err := backstage_service.Account.FindFailReason(5, apiReq.PlatformAccountId)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result,
-		"reason": reason,
-	})
-}

+ 0 - 96
app/api/backstage_api/brand_api.go

@@ -1,96 +0,0 @@
-package backstage_api
-
-// 品牌信息
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"github.com/gogf/gf/util/gconv"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-var Brand = brandApi{}
-
-type brandApi struct {
-}
-
-// CreatBrand  创建品牌信息接口
-func (brand *brandApi) CreatBrand(r *ghttp.Request) {
-	var apiReq *backstage_model.BrandReq
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Brand.CreatBrand(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "品牌创建成功")
-}
-
-// DeleteBrand 根据ID删除品牌信息
-func (brand *brandApi) DeleteBrand(r *ghttp.Request) {
-	var apiReq *backstage_model.BrandDelete
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Brand.DeleteBrand(apiReq.Id)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "删除成功")
-}
-
-// FindByIdBrand  根据ID查询品牌信息
-func (brand *brandApi) FindByIdBrand(r *ghttp.Request) {
-	var apiReq *backstage_model.BrandDelete
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, err := backstage_service.Brand.FindByIdBrand(apiReq.Id)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	var result *backstage_model.BrandResp
-	err = gconv.Structs(res, &result)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, "数据查询失败,请重试")
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", result)
-}
-
-// FindAll  品牌查询所有信息接口
-func (brand *brandApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.BrandFind
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, err := backstage_service.Brand.FindAllBrand(apiReq.IndexPage, apiReq.PageSize)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	var result []*backstage_model.BrandResp
-	err = gconv.Structs(res, &result)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result,
-	})
-}
-
-// UpdateBrand 更新数据
-func (brand *brandApi) UpdateBrand(r *ghttp.Request) {
-	var apiReq *backstage_model.BrandResp
-	err := r.ParseForm(&apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err = backstage_service.Brand.UpdateBrand(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "更新成功")
-}

+ 0 - 78
app/api/backstage_api/dianping_api.go

@@ -1,78 +0,0 @@
-package backstage_api
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"github.com/gogf/gf/util/gconv"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-// 写统一接口处理小红书,抖音,微博,快手,B站,大众点评,知乎,
-
-var Dianping = dianpingApi{}
-
-type dianpingApi struct {
-}
-
-// FindAll 查询所有
-func (dianping *dianpingApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.DianpingFind
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, num, err := backstage_service.Dianping.FindByConditionDianping(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	var result []*backstage_model.ResponseRedFind
-	err = gconv.Structs(res, &result)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result, "num": num,
-	})
-}
-
-// RemoveAccount  下架
-func (dianping *dianpingApi) RemoveAccount(r *ghttp.Request) {
-	var apiReq *backstage_model.RemoveAccountDianping
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Dianping.RemoveAccount(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "0")
-}
-
-// FindAllById 单个查询所有信息
-func (bilibili *dianpingApi) FindAllById(r *ghttp.Request) {
-	// 只需要接收一个id即可
-	var apiReq *backstage_model.RemoveAccountDianping
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, err := backstage_service.Dianping.FindAllById(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	var result *backstage_model.ResponsePlatformDianpingAccountInfo
-	err = gconv.Structs(res, &result)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	// 查找失败原因及失败时间
-	reason, err := backstage_service.Account.FindFailReason(6, apiReq.PlatformAccountId)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result,
-		"reason": reason,
-	})
-}

+ 0 - 67
app/api/backstage_api/expert_api.go

@@ -1,67 +0,0 @@
-package backstage_api
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"github.com/gogf/gf/util/gconv"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-var Expert = expertApi{}
-
-type expertApi struct {
-}
-
-func (expert *expertApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.ExpertFind
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, num, err := backstage_service.Expert.FindAllExpert(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	var result []*backstage_model.ExpertRequest
-	err = gconv.Structs(res, &result)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result, "num": num,
-	})
-}
-
-func (expert *expertApi) FindAddressById(r *ghttp.Request) {
-	var apiReq *backstage_model.TalentDeliveryAddress
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, err := backstage_service.Expert.FindAddressById(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	var result []*backstage_model.TalentDeliveryAddress
-	err = gconv.Structs(res, &result)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result,
-	})
-}
-
-// ChangeStatus  用户状态,禁用,正常
-func (expert *expertApi) ChangeStatus(r *ghttp.Request) {
-	var apiReq *backstage_model.ChangeBlack
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Expert.ChangeStatus(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "0")
-}

+ 0 - 49
app/api/backstage_api/finance_api.go

@@ -1,49 +0,0 @@
-package backstage_api
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"github.com/gogf/gf/util/gconv"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-var Finance = financeApi{}
-
-type financeApi struct {
-}
-
-// FindAll  账户查询所有信息接口
-func (account *financeApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.FinanceFind
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, num, err := backstage_service.Finance.FindAllFinance(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	var result []*backstage_model.FinanceFindAll
-	err = gconv.Structs(res, &result)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result, "num": num,
-	})
-}
-
-// ChangeListStatus 批量打款成功
-func (account *financeApi) ChangeListStatus(r *ghttp.Request) {
-	var apiReq *backstage_model.ChangeMoneyListStatus
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Finance.ChangeListStatus(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "0")
-}

+ 0 - 78
app/api/backstage_api/kuaishou_api.go

@@ -1,78 +0,0 @@
-package backstage_api
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"github.com/gogf/gf/util/gconv"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-// 写统一接口处理小红书,抖音,微博,快手,B站,大众点评,知乎,
-
-var Kuaishou = kuaishouApi{}
-
-type kuaishouApi struct {
-}
-
-// FindAll 查询所有
-func (kuaishou *kuaishouApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.KuaishouFind
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, num, err := backstage_service.Kuaishou.FindByConditionKuaishou(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	var result []*backstage_model.ResponseRedFind
-	err = gconv.Structs(res, &result)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result, "num": num,
-	})
-}
-
-// RemoveAccount  下架
-func (kuaishou *kuaishouApi) RemoveAccount(r *ghttp.Request) {
-	var apiReq *backstage_model.RemoveAccountKuaishou
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Kuaishou.RemoveAccount(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "0")
-}
-
-// FindAllById 单个查询所有信息
-func (kuaishou *kuaishouApi) FindAllById(r *ghttp.Request) {
-	// 只需要接收一个id即可
-	var apiReq *backstage_model.RemoveAccountKuaishou
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, err := backstage_service.Kuaishou.FindAllById(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	var result *backstage_model.ResponsePlatformKuaishouAccountInfo
-	err = gconv.Structs(res, &result)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	// 查找失败原因及失败时间
-	reason, err := backstage_service.Account.FindFailReason(4, apiReq.PlatformAccountId)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result,
-		"reason": reason,
-	})
-}

+ 0 - 73
app/api/backstage_api/little_red_api.go

@@ -1,73 +0,0 @@
-package backstage_api
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"github.com/gogf/gf/util/gconv"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-// 写统一接口处理小红书,抖音,微博,快手,B站,大众点评,知乎,
-
-var LittleRed = littleRedApi{}
-
-type littleRedApi struct {
-}
-
-// FindAll 查询所有
-func (littleRed *littleRedApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.LittleRedFind
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, num, err := backstage_service.LittleRed.FindByConditionLittleRed(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	var result []*backstage_model.ResponseRedFind
-	err = gconv.Structs(res, &result)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result, "num": num,
-	})
-}
-
-// RemoveAccount  下架
-func (littleRed *littleRedApi) RemoveAccount(r *ghttp.Request) {
-	var apiReq *backstage_model.RemoveAccountLittleRed
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.LittleRed.RemoveAccount(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "0")
-}
-
-// FindAllById 单个查询所有信息
-func (littleRed *littleRedApi) FindAllById(r *ghttp.Request) {
-	// 只需要接收一个id即可
-	var apiReq *backstage_model.RemoveAccountLittleRed
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, err := backstage_service.LittleRed.FindAllById(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	// 查找失败原因及失败时间
-	reason, err := backstage_service.Account.FindFailReason(1, apiReq.PlatformAccountId)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result,
-		"reason": reason,
-	})
-}

+ 0 - 182
app/api/backstage_api/login_api.go

@@ -1,182 +0,0 @@
-package backstage_api
-
-import (
-	"fmt"
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"net/http"
-	"strconv"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-var Login = loginApi{}
-
-type loginApi struct {
-}
-
-// Refresh 用于前台页面刷新
-func (account *loginApi) Refresh(r *ghttp.Request) {
-	response.JsonExit(r, http.StatusForbidden, "页面刷新成功")
-}
-
-// Creat 创建用户
-func (account *loginApi) Creat(r *ghttp.Request) {
-	var apiReq *backstage_model.CreatUser
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.User.CreatUser(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "用户创建成功")
-}
-
-// Account 账号登录
-func (account *loginApi) Account(r *ghttp.Request) {
-	var apiReq *backstage_model.SysUsersServiceSignReq
-	// 用户名密码判空校验
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	// 判断用户名存在,密码是否正确
-	user, err := backstage_service.User.GetUserInfo(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	createToken, err := backstage_service.Token.TokenCreate(apiReq, nil, r)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	// 返回登录成功状态码,并且携带token返回
-	response.JsonExit(r, http.StatusOK, "登录成功", g.Map{
-		"createToken": createToken,
-		"userName":    user.UserName,
-		"userCode":    user.User,
-	})
-}
-
-// LeaveAccount 用户注销
-func (account *loginApi) LeaveAccount(r *ghttp.Request) {
-	authorization := r.Header.Get("Authorization")
-	_, err := g.Redis().Do("DEL", authorization)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "注销成功")
-}
-
-// FindAccount 查询账号是否在数据库中存在
-func (account *loginApi) FindAccount(r *ghttp.Request) {
-	user := r.Get("user")
-	str := fmt.Sprintf("%v", user)
-	if str == "" || str == "<nil>" {
-		response.JsonExit(r, http.StatusBadRequest, "请输入用户账号")
-	}
-	email, err := backstage_service.User.CheckName(str)
-	if err != nil {
-		// 没有这个用户为501
-		response.JsonExit(r, http.StatusNotImplemented, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, email)
-}
-
-// SetEmail 发送邮箱验证码。
-func (account *loginApi) SetEmail(r *ghttp.Request) {
-	user := r.Get("user")
-	str := fmt.Sprintf("%v", user)
-	if str == "" || str == "<nil>" {
-		response.JsonExit(r, http.StatusBadRequest, "请输入用户账号")
-	}
-	email, err := backstage_service.User.CheckName(str)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	// 此处调用邮箱发送验证码email
-	err = backstage_service.User.SetEmail(email, str)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, "邮箱发送失败,请稍后重试")
-	}
-	response.JsonExit(r, http.StatusOK, "邮件发送成功,请查看邮箱")
-}
-
-// CheckVerification 修改密码验证通过进行密码修改。并且修改密码
-func (account *loginApi) CheckVerification(r *ghttp.Request) {
-	var apiReq *backstage_model.ChangePassword
-	// 用户名,密码,验证码判空校验
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	// 验证用户验证码是否正确
-	err := backstage_service.User.CheckVerification(apiReq.Verification, apiReq.User)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	bool := backstage_service.User.ChangePassword(apiReq.User, apiReq.Password)
-	if !bool {
-		response.JsonExit(r, http.StatusInternalServerError, "密码修改失败,请稍后重试")
-	}
-	response.JsonExit(r, http.StatusOK, "密码修改成功")
-}
-
-// FindAllNumber  查询用户总数
-func (account *loginApi) FindAllNumber(r *ghttp.Request) {
-	num := backstage_service.User.FindAll()
-	response.JsonExit(r, http.StatusOK, strconv.Itoa(num))
-}
-
-// FindAll  账户查询所有信息接口
-func (account *loginApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.UserFind
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, num, err := backstage_service.User.FindAllUser(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result, "num": num,
-	})
-}
-
-// Update 更新用户
-func (account *loginApi) Update(r *ghttp.Request) {
-	var apiReq *backstage_model.UpdateUser
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	err := backstage_service.User.UpdateUser(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "用户更新成功")
-}
-
-// ChangeStatus  用户状态,禁用,正常
-func (account *loginApi) ChangeStatus(r *ghttp.Request) {
-	var apiReq *backstage_model.ChangeStatus
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.User.ChangeStatus(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "0")
-}
-
-// ChangeListStatus 批量禁用用户
-func (account *loginApi) ChangeListStatus(r *ghttp.Request) {
-	var apiReq *backstage_model.ChangeListStatus
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.User.ChangeListStatus(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "0")
-}

+ 0 - 234
app/api/backstage_api/order_api.go

@@ -1,234 +0,0 @@
-package backstage_api
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/app/utils"
-	"youngmini_server/library/response"
-)
-
-var Order = orderApi{}
-
-type orderApi struct {
-}
-
-// FindAll 查询所有(订单列表查询所有)
-func (order *orderApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.OrderFindAll
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, num, err := backstage_service.Order.FindAll(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result, "num": num,
-	})
-}
-
-// FindAddress 查询其他招募信息
-func (order *orderApi) FindAddress(r *ghttp.Request) {
-	var apiReq *backstage_model.OrderFindAddress
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	requirement, err := backstage_service.Order.FindAddress(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"requirement": requirement,
-	})
-}
-
-// ExecutiveInfo 执行信息,(发货信息,初稿审核,作品审核,质检链接,数据链接,)
-func (order *orderApi) ExecutiveInfo(r *ghttp.Request) {
-	var apiReq *backstage_model.OrderFindAddress
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	deliveryInfo, draftReview, articleReview, quality, dataQuality, err := backstage_service.Order.ExecutiveInfo(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"deliveryInfo":  deliveryInfo,
-		"draftReview":   draftReview,
-		"articleReview": articleReview,
-		"quality":       quality,
-		"dataQuality":   dataQuality,
-	})
-}
-
-// RegistrationInfo  报名信息,(任务信息,商品信息,任务等级信息)
-func (order *orderApi) RegistrationInfo(r *ghttp.Request) {
-	var apiReq *backstage_model.OrderFindAddress
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	taskBaseInfo, product, taskRecruitTalentLevel, productPhoto, err := backstage_service.Order.RegistrationInfo(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"taskBaseInfo":           taskBaseInfo,
-		"product":                product,
-		"taskRecruitTalentLevel": taskRecruitTalentLevel,
-		"productPhoto":           productPhoto,
-	})
-}
-
-// DraftFee 稿费明细接口
-func (order *orderApi) DraftFee(r *ghttp.Request) {
-	var apiReq *backstage_model.OrderFindAddress
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	orderDraftFee, err := backstage_service.Order.DraftFee(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"orderDraftFee": orderDraftFee,
-	})
-}
-
-// AlterListStatus 修改订单状态
-func (order *orderApi) AlterListStatus(r *ghttp.Request) {
-	var apiReq *backstage_model.AlterListStatus
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Order.AlterListStatus(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功")
-}
-
-// AddDelivery 添加订单发货信息
-func (order *orderApi) AddDelivery(r *ghttp.Request) {
-	var apiReq *backstage_model.AddDelivery
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Order.AddDelivery(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功")
-}
-
-// AddDraftReview 添加初稿审核信息
-func (order *orderApi) AddDraftReview(r *ghttp.Request) {
-	var apiReq *backstage_model.AddDraftReview
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Order.AddDraftReview(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功")
-}
-
-// AddAuditReview 添加作品审核信息
-func (order *orderApi) AddAuditReview(r *ghttp.Request) {
-	var apiReq *backstage_model.AddAuditReview
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Order.AddAuditReview(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功")
-}
-
-// AddDataQuality 添加数据质检审核信息
-func (order *orderApi) AddDataQuality(r *ghttp.Request) {
-	var apiReq *backstage_model.AddDataQuality
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Order.AddDataQuality(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功")
-}
-
-// AddLinkQuality 添加链接质检信息
-func (order *orderApi) AddLinkQuality(r *ghttp.Request) {
-	var apiReq *backstage_model.AddLinkQuality
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Order.AddLinkQuality(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功")
-}
-
-// FindOrderProcedureDetail 查询对应订单所需要的流程
-func (order *orderApi) FindOrderProcedureDetail(r *ghttp.Request) {
-	var apiReq *backstage_model.AcquiredOrderId
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	flow, err := utils.OrderProcedureManager.GetOrderWorkFlow(apiReq.OrderId)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"flow": flow,
-	})
-}
-
-// ChargesDetail 查询一个订单下面所对应的扣款明细
-func (order *orderApi) ChargesDetail(r *ghttp.Request) {
-	var apiReq *backstage_model.AcquiredOrderId
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, err := backstage_service.Order.ChargesDetail(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result,
-	})
-}
-
-// QueryTaskRecruitTalentLevel 查询招募等级表
-func (order *orderApi) QueryTaskRecruitTalentLevel(r *ghttp.Request) {
-	var apiReq *backstage_model.AcquiredOrderId
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, err := backstage_service.Order.QueryTaskRecruitTalentLevel(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result,
-	})
-}
-
-// AddBobocoinIncomeRecord 订单完成后需要在收入里面加一条信息
-func (order *orderApi) AddBobocoinIncomeRecord(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestBobocoinIncomeRecord
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Order.AddBobocoinIncomeRecord(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "操作成功")
-}

+ 0 - 41
app/api/backstage_api/product_api.go

@@ -1,41 +0,0 @@
-package backstage_api
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-var Product = productApi{}
-
-type productApi struct {
-}
-
-// CreatProduct  创建商品信息接口
-func (brand *productApi) CreatProduct(r *ghttp.Request) {
-	var apiReq *backstage_model.ProductReq
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Product.CreatProduct(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "创建成功")
-}
-
-// DeleteProduct 删除商品接口
-func (brand *productApi) DeleteProduct(r *ghttp.Request) {
-	//var apiReq *backstage_model.ProductDelete
-	//if err := r.ParseForm(&apiReq); err != nil {
-	//	response.JsonExit(r, http.StatusBadRequest, err.Error())
-	//}
-	var photos []*backstage_model.ProductPhotoReq
-	g.DB().Model("product_photo").Where("product_id", 9).Scan(&photos)
-	response.JsonExit(r, http.StatusBadRequest, "err.Error()", g.Map{
-		"photos": photos,
-	})
-}

+ 0 - 345
app/api/backstage_api/task_api.go

@@ -1,345 +0,0 @@
-package backstage_api
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-var Task = taskApi{}
-
-type taskApi struct {
-}
-
-// Creat 创建任务
-func (task *taskApi) Creat(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestAllCreatParam
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.CreatTask(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "任务创建成功")
-}
-
-// FindAll 任务信息查找所有
-func (task *taskApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.TaskFindAll
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	taskList, num, err := backstage_service.Task.FindConditionAll(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	// 没有数据返回错误请求
-	if taskList == nil {
-		response.JsonExit(r, http.StatusBadRequest, "没有数据返回")
-	}
-	response.JsonExit(r, http.StatusOK, "任务创建成功", g.Map{
-		"taskList": taskList,
-		"num":      num,
-	})
-}
-
-// AlterTaskStatus 修改任务状态
-func (task *taskApi) AlterTaskStatus(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestStatus
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.AlterTaskStatus(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "状态修改成功")
-}
-
-// FindSingleTaskInfo 查询单个任务信息
-func (task *taskApi) FindSingleTaskInfo(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskInfo
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, err := backstage_service.Task.TaskInfoShow(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "状态修改成功", g.Map{
-		"result": result,
-	})
-}
-
-// UpdateBrand 修改品牌信息
-func (task *taskApi) UpdateBrand(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestBrand
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.UpdateBrand(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "品牌修改成功")
-}
-
-// UpdateProduct 修改商品信息
-func (task *taskApi) UpdateProduct(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestProduct
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.UpdateProduct(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "商品信息修改成功")
-}
-
-// UpdateProductPhoto 修改商品图片信息
-func (task *taskApi) UpdateProductPhoto(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestProductPhoto
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.UpdateProductPhoto(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "修改商品图片信息")
-}
-
-// AddProductPhoto 增加图片信息
-func (task *taskApi) AddProductPhoto(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestProductPhoto
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.AddProductPhoto(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "增加图片信息成功")
-}
-
-// DeleteProductPhoto 删除图片信息
-func (task *taskApi) DeleteProductPhoto(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestProductPhoto
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.DeleteProductPhoto(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "删除图片信息成功")
-}
-
-// UpdateTaskBaseInfo 修改任务基础信息
-func (task *taskApi) UpdateTaskBaseInfo(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskBaseInfo
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.UpdateTaskBaseInfo(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "任务基础信息修改成功")
-}
-
-// UpdateProcedure 修改任务配置总流程
-func (task *taskApi) UpdateProcedure(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskProcedureDecisionCondition
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.UpdateProcedure(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "任务配置总流程修改成功")
-}
-
-// UpdateDraftInfo 修改流程初稿配置
-func (task *taskApi) UpdateDraftInfo(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskProcedureDraftInfo
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.UpdateDraftInfo(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "流程初稿配置修改成功")
-}
-
-// UpdateArticleInfo 修改流程作品配置
-func (task *taskApi) UpdateArticleInfo(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskProcedureArticleInfo
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.UpdateArticleInfo(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "流程作品配置修改成功")
-}
-
-// UpdateQualityInfo 修改质检链接配置
-func (task *taskApi) UpdateQualityInfo(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskProcedureQualityDataTestInfo
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.UpdateQualityInfo(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "质检链接配置修改成功")
-}
-
-// UpdateReward 修改达人任务奖励配置
-func (task *taskApi) UpdateReward(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskReward
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.UpdateReward(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "达人任务奖励配置修改成功")
-}
-
-// UpdateRecruitRequirement 修改招募要求配置
-func (task *taskApi) UpdateRecruitRequirement(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskRecruitRequirements
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.UpdateRecruitRequirement(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "招募要求配置修改成功")
-}
-
-// UpdateRecruitLevel 修改合作方式,所需达人数量及其对应稿费
-func (task *taskApi) UpdateRecruitLevel(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskRecruitTalentLevel
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.UpdateRecruitLevel(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "合作方式,所需达人数量及其对应稿费修改成功")
-}
-
-// AddRecruitLevel 增加合作方式,所需达人数量及其对应稿费
-func (task *taskApi) AddRecruitLevel(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskRecruitTalentLevel
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.AddRecruitLevel(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "合作方式,所需达人数量及其对应稿费修改成功")
-}
-
-// DeleteRecruitLevel 删除合作方式,所需达人数量及其对应稿费
-func (task *taskApi) DeleteRecruitLevel(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskRecruitTalentLevel
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.DeleteRecruitLevel(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "合作方式,所需达人数量及其对应稿费修改成功")
-}
-
-// UpdatePerformHelp 修改任务执行帮助
-func (task *taskApi) UpdatePerformHelp(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskPerformHelpInfo
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Task.UpdatePerformHelp(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "任务执行帮助修改成功")
-}
-
-// FindSendAddress 发货信息查询
-func (task *taskApi) FindSendAddress(r *ghttp.Request) {
-	var apiReq *backstage_model.SendProductAddress
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, num, err := backstage_service.Task.FindSendAddress(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "地址查询成功", g.Map{
-		"result": result,
-		"num":    num,
-	})
-}
-
-// FindRecruit 招募进度数据统计
-func (task *taskApi) FindRecruit(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskInfo
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, err := backstage_service.Task.FindRecruit(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "招募进度数据统计查询成功", g.Map{
-		"result": result,
-	})
-}
-
-// FindBIStatistics 招募进度数据统计
-func (task *taskApi) FindBIStatistics(r *ghttp.Request) {
-	var apiReq *backstage_model.RequestTaskInfo
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, err := backstage_service.Task.FindBIStatistics(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "BI数据统计查询成功", g.Map{
-		"result": result,
-	})
-}
-
-// DeleteTask 删除任务
-func (task *taskApi) DeleteTask(r *ghttp.Request) {
-	taskId := r.GetRequestInt("task_id", 0)
-	if taskId == 0 {
-		response.JsonExit(r, http.StatusBadRequest, "输入要删除的任务id")
-	}
-
-	err := backstage_service.Task.DeleteTask(taskId)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, "删除任务失败:" + err.Error())
-	}
-
-	response.JsonExit(r, http.StatusOK, "删除任务成功", nil)
-}

+ 0 - 73
app/api/backstage_api/tiktok_api.go

@@ -1,73 +0,0 @@
-package backstage_api
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"github.com/gogf/gf/util/gconv"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-// 写统一接口处理小红书,抖音,微博,快手,B站,大众点评,知乎,
-
-var Tiktok = tiktokApi{}
-
-type tiktokApi struct {
-}
-
-// FindAll 查询所有
-func (tiktok *tiktokApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.TiktokFind
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, num, err := backstage_service.Tiktok.FindByConditionTiktok(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	var result []*backstage_model.ResponseRedFind
-	err = gconv.Structs(res, &result)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result, "num": num,
-	})
-}
-
-// RemoveAccount  下架
-func (tiktok *tiktokApi) RemoveAccount(r *ghttp.Request) {
-	var apiReq *backstage_model.RemoveAccountTiktok
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Tiktok.RemoveAccount(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "0")
-}
-
-// FindAllById 单个查询所有信息
-func (tiktok *tiktokApi) FindAllById(r *ghttp.Request) {
-	// 只需要接收一个id即可
-	var apiReq *backstage_model.RemoveAccountTiktok
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, err := backstage_service.Tiktok.FindAllById(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	// 查找失败原因及失败时间
-	reason, err := backstage_service.Account.FindFailReason(2, apiReq.PlatformAccountId)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result,
-		"reason": reason,
-	})
-}

+ 0 - 67
app/api/backstage_api/weibo_api.go

@@ -1,67 +0,0 @@
-package backstage_api
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-// 写统一接口处理小红书,抖音,微博,快手,B站,大众点评,知乎,
-
-var Weibo = weiboApi{}
-
-type weiboApi struct {
-}
-
-// FindAll 查询所有
-func (weibo *weiboApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.WeiboFind
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, num, err := backstage_service.Weibo.FindByConditionWeibo(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": res, "num": num,
-	})
-}
-
-// RemoveAccount  下架
-func (weibo *weiboApi) RemoveAccount(r *ghttp.Request) {
-	var apiReq *backstage_model.RemoveAccountWeibo
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Weibo.RemoveAccount(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "0")
-}
-
-// FindAllById 单个查询所有信息
-func (weibo *weiboApi) FindAllById(r *ghttp.Request) {
-	// 只需要接收一个id即可
-	var apiReq *backstage_model.RemoveAccountWeibo
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, err := backstage_service.Weibo.FindAllById(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	// 查找失败原因及失败时间
-	reason, err := backstage_service.Account.FindFailReason(3, apiReq.PlatformAccountId)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result,
-		"reason": reason,
-	})
-}

+ 0 - 73
app/api/backstage_api/zhihu_api.go

@@ -1,73 +0,0 @@
-package backstage_api
-
-import (
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/net/ghttp"
-	"github.com/gogf/gf/util/gconv"
-	"net/http"
-	"youngmini_server/app/model/backstage_model"
-	"youngmini_server/app/service/backstage_service"
-	"youngmini_server/library/response"
-)
-
-// 写统一接口处理小红书,抖音,微博,快手,B站,大众点评,知乎,
-
-var Zhihu = zhihuApi{}
-
-type zhihuApi struct {
-}
-
-// FindAll 查询所有
-func (zhihu *zhihuApi) FindAll(r *ghttp.Request) {
-	var apiReq *backstage_model.ZhihuFind
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	res, num, err := backstage_service.Zhihu.FindByConditionZhihu(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	var result []*backstage_model.ResponseRedFind
-	err = gconv.Structs(res, &result)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result, "num": num,
-	})
-}
-
-// RemoveAccount  下架
-func (zhihu *zhihuApi) RemoveAccount(r *ghttp.Request) {
-	var apiReq *backstage_model.RemoveAccountZhihu
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	err := backstage_service.Zhihu.RemoveAccount(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "0")
-}
-
-// FindAllById 单个查询所有信息
-func (zhihu *zhihuApi) FindAllById(r *ghttp.Request) {
-	// 只需要接收一个id即可
-	var apiReq *backstage_model.RemoveAccountZhihu
-	if err := r.ParseForm(&apiReq); err != nil {
-		response.JsonExit(r, http.StatusBadRequest, err.Error())
-	}
-	result, err := backstage_service.Zhihu.FindAllById(apiReq)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	// 查找失败原因及失败时间
-	reason, err := backstage_service.Account.FindFailReason(7, apiReq.PlatformAccountId)
-	if err != nil {
-		response.JsonExit(r, http.StatusInternalServerError, err.Error())
-	}
-	response.JsonExit(r, http.StatusOK, "数据返回成功", g.Map{
-		"result": result,
-		"reason": reason,
-	})
-}

+ 0 - 199
app/api/talent_api/talent_auth_get_api.go

@@ -1,199 +0,0 @@
-package talentapi
-
-import (
-	"github.com/gogf/gf/net/ghttp"
-	"youngmini_server/app/service/talent_service"
-)
-
-var TalentAuthGetApi = talentAuthGetApi{}
-
-type talentAuthGetApi struct {}
-
-
-// PlatformBrief 获取所有平台账户简略信息
-func (*talentAuthGetApi)PlatformBrief(r *ghttp.Request) {
-	res := talent_service.GetTalentAllPlatformBriefInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// PlatformDetail 获取单个平台账户详情
-func (*talentAuthGetApi)PlatformDetail(r *ghttp.Request) {
-	res := talent_service.OnGetTalentPlatformDetail(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// TalentBriefInfo 获取达人简略信息
-func (*talentAuthGetApi)TalentBriefInfo(r *ghttp.Request) {
-	res := talent_service.OnGetTalentBriefInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// TalentDetailInfo 获取达人详细信息
-func (*talentAuthGetApi)TalentDetailInfo(r *ghttp.Request)  {
-	res := talent_service.OnGetTalentDetailInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// DeliveryAddr 获取收货地址列表
-func (*talentAuthGetApi)DeliveryAddr(r *ghttp.Request) {
-	res := talent_service.OnGetDeliveryAddr(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// DeliveryAddrDetail 获取收货信息详情
-func (*talentAuthGetApi)DeliveryAddrDetail(r *ghttp.Request) {
-	res := talent_service.OnGetDeliveryAddrDetail(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// BoBoCoinInfo 获取卜卜币收入和支出记录
-func (*talentAuthGetApi)BoBoCoinInfo(r *ghttp.Request) {
-	res := talent_service.GetBoBoCoinList(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// BoBoCoinWithdrawal 获取提现信息,目前只有支付宝账号信息
-func (*talentAuthGetApi)BoBoCoinWithdrawal(r *ghttp.Request) {
-	res := talent_service.GetBoBoCoinWithdrawalInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// ExistOrder 获取达人已接的订单列表
-func (*talentAuthGetApi)ExistOrder(r *ghttp.Request) {
-	res := talent_service.GetOrderList(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// GetPlatformFansCount 获取平台粉丝数
-func (*talentAuthGetApi)GetPlatformFansCount(r *ghttp.Request) {
-	res := talent_service.GetPlatformFansCount(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthGetApi)SignupPageTaskDetail(r *ghttp.Request) {
-	res := talent_service.GetSignupPageTaskDetail(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthGetApi)OrderDetail(r *ghttp.Request) {
-	res := talent_service.GetOrderDetail(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthGetApi)GetSampleExpressInfo(r *ghttp.Request) {
-	res := talent_service.OnGetExpressInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthGetApi)GetDraftInfo(r *ghttp.Request) {
-	res := talent_service.OnGetDraftInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthGetApi)GetArticle(r *ghttp.Request)  {
-    res := talent_service.OnGetArticleInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthGetApi)GetQualityLink(r *ghttp.Request)  {
-	res := talent_service.OnGetPublishLinkInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthGetApi)GetDataLink(r *ghttp.Request)  {
-	res := talent_service.OnGetDataLinkInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthGetApi)GetOrderCompleteInfo(r *ghttp.Request) {
-	res := talent_service.OnGetOrderCompleteData(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthGetApi)GetOrderSettleState(r *ghttp.Request) {
-	res := talent_service.GetBoBoCoinOrderSettleInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// GetOrderSignupPlatformInfo 获取订单
-func (*talentAuthGetApi)GetOrderSignupPlatformInfo(r *ghttp.Request) {
-	res := talent_service.GetOrderSignUpPlatformInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// GetOrderBriefInfo 获取订单的brief信息
-func (*talentAuthGetApi)GetOrderBriefInfo(r *ghttp.Request) {
-	res := talent_service.GetOrderBriefInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthGetApi)IsLogin(r *ghttp.Request) {
-	res := talent_service.IsLogin(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}

+ 0 - 161
app/api/talent_api/talent_auth_post_api.go

@@ -1,161 +0,0 @@
-package talentapi
-
-import (
-	"github.com/gogf/gf/net/ghttp"
-	"youngmini_server/app/service/talent_service"
-)
-
-var TalentAuthPostApi = talentAuthPostApi{}
-type talentAuthPostApi struct {}
-
-// TalentDetailInfo 提交达人详细信息
-func (*talentAuthPostApi)TalentDetailInfo(r *ghttp.Request) {
-	res := talent_service.OnPostTalentDetailInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// PlatformDetail 提交平台信息
-func (*talentAuthPostApi)PlatformDetail(r *ghttp.Request) {
-	res := talent_service.OnPostPlatformDetailInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// AddDeliveryAddr 添加收货地址
-func (*talentAuthPostApi)AddDeliveryAddr(r *ghttp.Request) {
-	res := talent_service.OnAddDeliveryAddr(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// DelDeliveryAddr 删除收货地址
-func (*talentAuthPostApi)DelDeliveryAddr(r *ghttp.Request) {
-	res := talent_service.OnDeleteDeliveryAddress(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// ModifyDeliveryAddr 修改收货地址信息
-func (*talentAuthPostApi)ModifyDeliveryAddr(r *ghttp.Request) {
-	res := talent_service.ModifyDeliveryAddr(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// ChangeDefaultDeliveryAddr 修改默认收货地址
-func (*talentAuthPostApi)ChangeDefaultDeliveryAddr(r *ghttp.Request) {
-	res := talent_service.SetDefaultDeliveryAddr(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// WithdrawalAccountInfo 绑定提现账户信息
-func (*talentAuthPostApi)WithdrawalAccountInfo(r *ghttp.Request) {
-	res := talent_service.BindWithdrawalAccount(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// BoBoCoinWithdrawalReq 提现申请
-func (*talentAuthPostApi)BoBoCoinWithdrawalReq(r *ghttp.Request) {
-	res := talent_service.BoBoCoinWithdrawalReq(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthPostApi)SignupTask(r *ghttp.Request) {
-	res := talent_service.SignupTask(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthPostApi)ConfirmExpress(r *ghttp.Request) {
-	res := talent_service.OnConfirmReceiveExpress(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthPostApi)UploadDraft(r *ghttp.Request) {
-	res := talent_service.OnUploadDraft(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthPostApi)UploadArticle(r *ghttp.Request) {
-	res := talent_service.OnUploadArticle(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthPostApi)UploadLinkInfo(r *ghttp.Request) {
-	res := talent_service.OnUploadLink(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthPostApi)UploadDataInfo(r *ghttp.Request) {
-	res := talent_service.OnUploadData(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthPostApi)CancelOrder(r *ghttp.Request) {
-	res := talent_service.CancelOrder(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthPostApi)WxPrepay(r *ghttp.Request) {
-	res := talent_service.WxPayOnTalentRequestPay(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthPostApi)QueryWxPayResultById(r *ghttp.Request) {
-	res := talent_service.WxPayQueryOrderById(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentAuthPostApi)QueryWxPayResultByTradeNo(r *ghttp.Request) {
-	res := talent_service.QueryOrderByOutTradeNo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}

+ 0 - 60
app/api/talent_api/talent_get_api.go

@@ -1,60 +0,0 @@
-package talentapi
-
-import (
-	"github.com/gogf/gf/net/ghttp"
-	"youngmini_server/app/service/talent_service"
-)
-
-var TalentGetApi = talentGetApi{}
-
-type talentGetApi struct {
-}
-
-// GetInfoTables 获取所有信息表
-func (*talentGetApi)GetInfoTables(r *ghttp.Request)  {
-	res := talent_service.GetInfoTables()
-
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// GetRegionInfo 根据行政区域获取下去内所有下级行政区域
-func (*talentGetApi)GetRegionInfo(r *ghttp.Request)  {
-	res := talent_service.GetRegionInfo(r)
-
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// GetTaskList 获取任务信息列表
-func (*talentGetApi)GetTaskList(r *ghttp.Request)  {
-	res := talent_service.GetTaskInfoList(r)
-
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// TaskDetail 获取单个任务详情
-func (*talentGetApi)TaskDetail(r *ghttp.Request) {
-	res := talent_service.GetTaskDetailInfo(r)
-
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-func (*talentGetApi)SearchByTaskName(r *ghttp.Request) {
-	res := talent_service.SearchByTaskName(r)
-
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}

+ 0 - 29
app/api/talent_api/talent_post_api.go

@@ -1,29 +0,0 @@
-package talentapi
-
-import (
-	"github.com/gogf/gf/net/ghttp"
-	"youngmini_server/app/service/talent_service"
-)
-
-var TalentPostApi = talentPostApi{}
-type talentPostApi struct {
-}
-
-// Login 达人端登录
-func (*talentPostApi)Login(r *ghttp.Request) {
-	// 向微信服务端校验登录凭证
-	res := talent_service.WxLogin(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}
-
-// GetQrcode 获取微信分享二维码
-func (*talentPostApi)GetQrcode(r *ghttp.Request) {
-	res := talent_service.RequestShareInfo(r)
-	err := r.Response.WriteJson(res)
-	if err != nil {
-		panic("write response error")
-	}
-}

+ 221 - 0
app/api/youngee_talent_api/talent_auth_get_api.go

@@ -40,6 +40,16 @@ func (*talentAuthGetApi) GetTalentAddress(r *ghttp.Request) {
 	}
 }
 
+// GetTalentDefaultAddress 获取单个达人收货地址详情
+// youngee_talent_delivery_address
+func (*talentAuthGetApi) GetTalentDefaultAddress(r *ghttp.Request) {
+	res := youngee_talent_service.GetTalentDefaultAddress(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
 // GetTalentAddress 获取单个达人收货地址详情
 // youngee_talent_delivery_address
 func (*talentAuthGetApi) GetSingleAddress(r *ghttp.Request) {
@@ -67,3 +77,214 @@ func (*talentAuthGetApi) IsLogin(r *ghttp.Request) {
 		panic("write response error")
 	}
 }
+
+func (*talentAuthGetApi) IsSignUpTask(r *ghttp.Request) {
+	res := youngee_talent_service.IsSignUpTask(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+func (*talentAuthGetApi) GetTaskBriefList(r *ghttp.Request) {
+	res := youngee_talent_service.GetTaskBriefList(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+func (*talentAuthGetApi) GetTaskExeList(r *ghttp.Request) {
+	res := youngee_talent_service.GetExeTaskBriefList(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+func (*talentAuthGetApi) GetTaskNum(r *ghttp.Request) {
+	res := youngee_talent_service.GetTaskNum(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+func (*talentAuthGetApi) GetTaskDetail(r *ghttp.Request) {
+	res := youngee_talent_service.GetTaskDetail(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+func (*talentAuthGetApi) GetTaskLogisticsInfo(r *ghttp.Request) {
+	res := youngee_talent_service.GetTaskLogisticsInfo(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// GetTaskScript 获取任务脚本提交审阅记录
+// younggee_script_info
+func (*talentAuthGetApi) GetTaskScript(r *ghttp.Request) {
+	res := youngee_talent_service.GetTaskScript(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// SubmitTaskScript 提交任务脚本
+// younggee_script_info
+func (*talentAuthGetApi) SubmitTaskScript(r *ghttp.Request) {
+	res := youngee_talent_service.SubmitTaskScript(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// GetUnSubmitTaskScript 获取未提交的任务脚本
+// younggee_script_info
+func (*talentAuthGetApi) GetUnsubmitTaskScript(r *ghttp.Request) {
+	res := youngee_talent_service.GetUnSubmitTaskScript(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// GetTaskSketch 获取任务初稿提交审阅记录
+// younggee_sketch_info
+func (*talentAuthGetApi) GetTaskSketch(r *ghttp.Request) {
+	res := youngee_talent_service.GetTaskSketch(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// SubmitTaskSketch 提交任务初稿
+// younggee_sketch_info
+func (*talentAuthGetApi) SubmitTaskSketch(r *ghttp.Request) {
+	res := youngee_talent_service.SubmitTaskSketch(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// GetUnSubmitTaskSketch 获取未提交的任务初稿
+// younggee_sketch_info
+func (*talentAuthGetApi) GetUnsubmitTaskSketch(r *ghttp.Request) {
+	res := youngee_talent_service.GetUnSubmitTaskSketch(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// GetTaskData 获取任务数据提交审阅记录
+// younggee_data_info
+func (*talentAuthGetApi) GetTaskData(r *ghttp.Request) {
+	res := youngee_talent_service.GetTaskData(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// SubmitTaskData 提交任务数据
+// younggee_data_info
+func (*talentAuthGetApi) SubmitTaskData(r *ghttp.Request) {
+	res := youngee_talent_service.SubmitTaskData(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// GetUnSubmitTaskData 获取未提交的任务数据
+// younggee_data_info
+func (*talentAuthGetApi) GetUnsubmitTaskData(r *ghttp.Request) {
+	res := youngee_talent_service.GetUnSubmitTaskData(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// GetTaskLink 获取任务链接提交审阅记录
+// younggee_link_info
+func (*talentAuthGetApi) GetTaskLink(r *ghttp.Request) {
+	res := youngee_talent_service.GetTaskLink(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// SubmitTaskLink 提交任务链接
+// younggee_link_info
+func (*talentAuthGetApi) SubmitTaskLink(r *ghttp.Request) {
+	res := youngee_talent_service.SubmitTaskLink(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// GetUnSubmitTaskLink 获取未提交的任务链接
+// younggee_link_info
+func (*talentAuthGetApi) GetUnsubmitTaskLink(r *ghttp.Request) {
+	res := youngee_talent_service.GetUnSubmitTaskLink(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// GetTalentBankInfo 获取提现绑定信息
+// younggee_talent_bank
+func (*talentAuthGetApi) GetTalentBankInfo(r *ghttp.Request) {
+	res := youngee_talent_service.GetTalentBankInfo(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// GetWithdrawTaskInfo 获取提现任务信息
+func (*talentAuthGetApi) GetWithdrawTaskInfo(r *ghttp.Request) {
+	res := youngee_talent_service.GetWithdrawTaskInfo(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+func (*talentAuthGetApi) GetTaskLog(r *ghttp.Request) {
+	res := youngee_talent_service.GetTaskLog(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+func (*talentAuthGetApi) GetMessage(r *ghttp.Request) {
+	res := youngee_talent_service.GetMessage(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+func (*talentAuthGetApi) HasUnReadMessage(r *ghttp.Request) {
+	res := youngee_talent_service.HasUnReadMessage(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}

+ 101 - 0
app/api/youngee_talent_api/talent_auth_post_api.go

@@ -78,3 +78,104 @@ func (*talentAuthPostApi) UpdateTalentAccount(r *ghttp.Request) {
 		panic("write response error")
 	}
 }
+
+func (*talentAuthPostApi) SignUpTask(r *ghttp.Request) {
+	res := youngee_talent_service.SignUpTask(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// OnAddTalentBank 添加银行卡绑定信息
+// younggee_talent_bank
+func (*talentAuthPostApi) AddTalentBank(r *ghttp.Request) {
+	res := youngee_talent_service.OnAddTalentBank(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// AddTaskScript 添加脚本
+// younggee_script_info
+func (*talentAuthPostApi) AddTaskScript(r *ghttp.Request) {
+	res := youngee_talent_service.AddTaskScript(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// AddTaskSketch 添加初稿
+// younggee_sketch_info
+func (*talentAuthPostApi) AddTaskSketch(r *ghttp.Request) {
+	res := youngee_talent_service.AddTaskSketch(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// AddTaskLink 添加链接
+// younggee_link_info
+func (*talentAuthPostApi) AddTaskLink(r *ghttp.Request) {
+	res := youngee_talent_service.AddTaskLink(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// AddTaskData 添加数据
+// younggee_data_info
+func (*talentAuthPostApi) AddTaskData(r *ghttp.Request) {
+	res := youngee_talent_service.AddTaskData(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// Withdraw 提现
+func (*talentAuthPostApi) Withdraw(r *ghttp.Request) {
+	res := youngee_talent_service.Withdraw(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+// UpdateLogisticsAddress 修改达人收货地址
+// youngee_task_info
+func (*talentAuthPostApi) UpdateLogisticsAddress(r *ghttp.Request) {
+	res := youngee_talent_service.OnUpdateLogisticsAddress(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+func (*talentAuthPostApi) SetMessageRead(r *ghttp.Request) {
+	res := youngee_talent_service.SetMessageRead(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+func (*talentAuthPostApi) DeleteMessage(r *ghttp.Request) {
+	res := youngee_talent_service.DeleteMessage(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}
+
+func (*talentAuthPostApi) GetAutoTime(r *ghttp.Request) {
+	res := youngee_talent_service.GetAutoTime(r)
+	err := r.Response.WriteJson(res)
+	if err != nil {
+		panic("write response error")
+	}
+}

+ 1 - 13
app/api/youngee_talent_api/talent_get_api.go

@@ -11,19 +11,7 @@ var TalentGetApi = talentGetApi{}
 type talentGetApi struct {
 }
 
-// ListProject godoc
-// @BasePath		 /talent/g
-// @Summary      GetProjectList
-// @Description  GetProjectListInfo
-// @Tags         Project
-// @Accept       json
-// @Produce      json
-// @Param        idx    		query     int  		true		"index of page"
-// @Param        cnt    		query     int  		true  	"size of page"
-// @Param        platform 	query     string	false		"search by platform"
-// @Param        mode    		query     string  false		"search by mode"
-// @Success      200  {object}   youngee_talent_model.ProjectInfoList
-// @Router       /talent/g/get-project-list [get]
+// 获取任务列表
 func (*talentGetApi) GetProjectList(r *ghttp.Request) {
 	res := youngee_talent_service.GetProjectInfoList(r)
 

+ 0 - 61
app/dao/backstage_dao/brand_dao.go

@@ -1,61 +0,0 @@
-package backstage_dao
-
-import (
-	"errors"
-	"github.com/gogf/gf/frame/g"
-	"youngmini_server/app/model/backstage_model"
-)
-
-// CreatBrand  品牌创建
-func CreatBrand(brand *backstage_model.BrandReq) error {
-	g.DB().SetDebug(true)
-	_, err := g.DB().Model("brand").
-		Data(g.Map{"brand_name": brand.BrandName, "brand_logo": brand.BrandLogo,
-			"brand_info": brand.BrandInfo, "brand_person": brand.BrandPerson,
-			"brand_contact": brand.BrandContact, "brand_title": brand.BrandContact}).Insert()
-	if err != nil {
-		return errors.New("品牌创建失败,请重试")
-	}
-	return err
-}
-
-// DeleteBrand 品牌删除
-func DeleteBrand(brandId string) error {
-	g.DB().SetDebug(true)
-	_, err := g.DB().Model("brand").Where("id", brandId).Delete()
-	if err != nil {
-		return errors.New("删除失败,请重试")
-	}
-	return err
-}
-
-// UpdateBrand 品牌更新
-func UpdateBrand(brand *backstage_model.BrandResp) error {
-	g.DB().SetDebug(true)
-	_, err := g.DB().Model("brand").Data(brand).Where("id", brand.Id).OmitEmpty().Update()
-	if err != nil {
-		return errors.New("更新失败,请重试")
-	}
-	return err
-}
-
-// FindByIdBrand 根据id查询品牌信息
-func FindByIdBrand(brandId string) (*backstage_model.BrandResp, error) {
-	g.DB().SetDebug(true)
-	brand := (*backstage_model.BrandResp)(nil)
-	err := g.DB().Model("brand").Where("id", brandId).Scan(&brand)
-	if err != nil || brand == nil {
-		return nil, errors.New("该ID在数据库中不存在,请输入正确ID值")
-	}
-	return brand, nil
-}
-
-// FindAllBrand 分页查询
-func FindAllBrand(indexPage int, pageSize int) ([]*backstage_model.BrandResp, error) {
-	var brands []*backstage_model.BrandResp
-	err := g.DB().Model("brand").Page(indexPage, pageSize).OrderDesc("updated_at").Scan(&brands)
-	if err != nil {
-		return nil, err
-	}
-	return brands, nil
-}

+ 0 - 115
app/dao/backstage_dao/product_dao.go

@@ -1,115 +0,0 @@
-package backstage_dao
-
-import (
-	"errors"
-	_ "errors"
-	"github.com/gogf/gf/frame/g"
-	_ "github.com/gogf/gf/frame/g"
-	"strconv"
-	"youngmini_server/app/model/backstage_model"
-	_ "youngmini_server/app/model/backstage_model"
-)
-
-// 商品表分为商品信息表和商品附带图片表
-
-// CreatProduct 商品创建
-func CreatProduct(brand *backstage_model.ProductReq) error {
-	g.DB().SetDebug(true)
-	// 返回的res是int64位
-	res, err := g.DB().Model("product").
-		Data(brand).InsertAndGetId()
-	// 将获取到的int64转换位string
-	s := strconv.FormatInt(res, 10)
-	// 获取到返回的ID值,创建图片表中的图片
-	var photo = brand.PhotosMain
-	le := len(photo)
-	for i := 0; i < le; i++ {
-		photo[i].ProductId = s
-	}
-	err = CreatPicture(photo)
-	if err != nil {
-		return err
-	}
-	return nil
-}
-
-// DeleteProduct  商品删除
-func DeleteProduct(productId string) error {
-	g.DB().SetDebug(true)
-	_, err := g.DB().Model("product").Where("id", productId).Delete()
-	if err != nil {
-		return errors.New("删除失败,请重试")
-	}
-	return err
-}
-
-// UpdateProduct  品牌更新
-func UpdateProduct(brand *backstage_model.ProductReq) error {
-	g.DB().SetDebug(true)
-	_, err := g.DB().Model("product").Data(brand).Where("id", brand.Id).OmitEmpty().Update()
-	if err != nil {
-		return errors.New("更新失败,请重试")
-	}
-	return err
-}
-
-// FindByIdProduct 根据id查询品牌信息
-func FindByIdProduct(brandId string) (*backstage_model.ProductReq, error) {
-	g.DB().SetDebug(true)
-	product := (*backstage_model.ProductReq)(nil)
-	err := g.DB().Model("product").Where("id", brandId).Scan(&product)
-	if err != nil || product == nil {
-		return nil, errors.New("该ID在数据库中不存在,请输入正确ID值")
-	}
-	return product, nil
-}
-
-// FindAllProduct 分页查询
-func FindAllProduct(indexPage int, pageSize int) ([]*backstage_model.ProductReq, error) {
-	var products []*backstage_model.ProductReq
-	err := g.DB().Model("product").Page(indexPage, pageSize).OrderDesc("updated_at").Scan(&products)
-	if err != nil {
-		return nil, err
-	}
-	return products, nil
-}
-
-// CreatPicture 批量创建商品所附加的图片。
-func CreatPicture(photo []backstage_model.ProductPhotoReq) error {
-	g.DB().SetDebug(true)
-	_, err := g.DB().Model("product_photo").Data(photo).Batch(2).Insert()
-	if err != nil {
-		return err
-	}
-	return nil
-}
-
-// DeletePhotoByProID   根据商品ID批量删除商品所附带图片
-func DeletePhotoByProID(productId string) error {
-	g.DB().SetDebug(true)
-	_, err := g.DB().Model("product_photo").Where("product_id", productId).Delete()
-	if err != nil {
-		return errors.New("删除失败,请重试")
-	}
-	return err
-}
-
-// DeletePhoto 删除单个图片
-func DeletePhoto(photoIid string) error {
-	g.DB().SetDebug(true)
-	_, err := g.DB().Model("product_photo").Where("id", photoIid).Delete()
-	if err != nil {
-		return errors.New("删除失败,请重试")
-	}
-	return err
-}
-
-// FindAllPhoto  根据商品ID批量查询图片
-func FindAllPhoto(productId string) ([]*backstage_model.ProductPhotoReq, error) {
-	var photos []*backstage_model.ProductPhotoReq
-	err := g.DB().Model("product_photo").Where("product_id", 9).Scan(&photos)
-	if err != nil {
-		return nil, err
-	}
-	return photos, nil
-}

+ 0 - 106
app/dao/backstage_dao/user_dao.go

@@ -1,106 +0,0 @@
-package backstage_dao
-
-import (
-	"errors"
-	"github.com/gogf/gf/frame/g"
-	"github.com/gogf/gf/os/gtime"
-	"youngmini_server/app/model/backstage_model"
-)
-
-// CreatUser 系统用户创建
-func CreatUser(user *backstage_model.CreatUser) error {
-	user.UserState = "1"
-	_, err := g.DB().Model("user").
-		Data(user).Insert()
-	if err != nil {
-		return errors.New("用户创建失败!")
-	}
-	return err
-}
-
-// SysUsers 用户登录验证
-func SysUsers(user *backstage_model.SysUsersServiceSignReq) (*backstage_model.SysUserModelResp, error) {
-	var use *backstage_model.SysUserModelResp
-	err := g.DB().Model("user").Where("user", user.User).Scan(&use)
-	// 判断用户名是否存在
-	if use == nil {
-		return nil, errors.New("该用户名不存在!")
-	}
-	if use.UserState == "0" {
-		return nil, errors.New("该用户已被禁用!")
-	}
-	// 判断密码是否正确
-	if use.Password != user.Password {
-		return nil, errors.New("密码错误!")
-	}
-	_, err = g.DB().Model("user").Data(g.Map{"last_login_time": gtime.Now().Format("Y-m-d H:i:s")}).Unscoped().Where("user", user.User).OmitEmpty().Update()
-	if err != nil {
-		return nil, err
-	}
-	// 判断数据库语句是否正确执行
-	if err != nil {
-		return nil, err
-	}
-	return use, err
-}
-
-// SysUserExist 判断用户名是否存在
-func SysUserExist(user string) (*backstage_model.UserBasics, error) {
-	var use *backstage_model.UserBasics
-	err := g.DB().Model("user").Where("user", user).Scan(&use)
-	// 判断用户名是否存在
-	if use == nil {
-		return nil, errors.New("该用户名不存在!")
-	}
-	if err != nil {
-		return nil, err
-	}
-	return use, nil
-}
-
-// ChangPassword 修改用户密码
-func ChangPassword(user string, password string) error {
-	_, err := g.DB().Model("user").Data("password", password).
-		Where("user", user).OmitEmpty().Update()
-	if err != nil {
-		return err
-	}
-	return nil
-}
-
-// UserExist 用户创建时判断随机生成的用户名是否重复
-func UserExist(user string) error {
-	num, err := g.DB().Model("user").Where("user", user).Count()
-	// 判断用户名是否存在
-	if num > 0 || err != nil {
-		g.Log("生成随机数重复")
-		return errors.New("用户名已存在")
-	}
-	return nil
-}
-
-// UserNameExist 判断用户输入的后台用户名是否重复
-func UserNameExist(userName string) error {
-	g.DB().SetDebug(true)
-	num, err := g.DB().Model("user").Where("username", userName).Count()
-	// 判断用户名是否存在
-	if num > 0 || err != nil {
-		return errors.New("该后台用户名已存在")
-	}
-	return nil
-}
-
-// FindAllUser 分页查询
-func FindAllUser(users *backstage_model.UserFind) ([]*backstage_model.AllUser, int, error) {
-	var allUser []*backstage_model.AllUser
-	g.DB().SetDebug(true)
-	err := g.DB().Model("user").OmitEmpty().Where(users.User).Page(users.IndexPage, users.PageSize).OrderDesc("id").Scan(&allUser)
-	if err != nil {
-		return nil, 0, err
-	}
-	num, err := g.DB().Model("user").OmitEmpty().Where(users.User).Count()
-	if err != nil {
-		return nil, 0, err
-	}
-	return allUser, num, nil
-}

+ 24 - 0
app/dao/enterprise_pay_record.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// enterprisePayRecordDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type enterprisePayRecordDao struct {
+	*internal.EnterprisePayRecordDao
+}
+
+var (
+	// EnterprisePayRecord is globally public accessible object for table enterprise_pay_record operations.
+	EnterprisePayRecord = enterprisePayRecordDao{
+		internal.NewEnterprisePayRecordDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/info_auto_default_handle.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// infoAutoDefaultHandleDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type infoAutoDefaultHandleDao struct {
+	*internal.InfoAutoDefaultHandleDao
+}
+
+var (
+	// InfoAutoDefaultHandle is globally public accessible object for table info_auto_default_handle operations.
+	InfoAutoDefaultHandle = infoAutoDefaultHandleDao{
+		internal.NewInfoAutoDefaultHandleDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/info_auto_task.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// infoAutoTaskDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type infoAutoTaskDao struct {
+	*internal.InfoAutoTaskDao
+}
+
+var (
+	// InfoAutoTask is globally public accessible object for table info_auto_task operations.
+	InfoAutoTask = infoAutoTaskDao{
+		internal.NewInfoAutoTaskDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 28 - 0
app/dao/info_bank.go

@@ -0,0 +1,28 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// infoBankDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type infoBankDao struct {
+	*internal.InfoBankDao
+}
+
+var (
+	// InfoBank is globally public accessible object for table info_bank operations.
+	InfoBank infoBankDao
+)
+
+func init() {
+	InfoBank = infoBankDao{
+		internal.NewInfoBankDao(),
+	}
+}
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/info_message.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// infoMessageDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type infoMessageDao struct {
+	*internal.InfoMessageDao
+}
+
+var (
+	// InfoMessage is globally public accessible object for table info_message operations.
+	InfoMessage = infoMessageDao{
+		internal.NewInfoMessageDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/info_pricing_strategy.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// infoPricingStrategyDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type infoPricingStrategyDao struct {
+	*internal.InfoPricingStrategyDao
+}
+
+var (
+	// InfoPricingStrategy is globally public accessible object for table info_pricing_strategy operations.
+	InfoPricingStrategy = infoPricingStrategyDao{
+		internal.NewInfoPricingStrategyDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/info_product_type.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// infoProductTypeDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type infoProductTypeDao struct {
+	*internal.InfoProductTypeDao
+}
+
+var (
+	// InfoProductType is globally public accessible object for table info_product_type operations.
+	InfoProductType = infoProductTypeDao{
+		internal.NewInfoProductTypeDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/info_task_stage.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// infoTaskStageDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type infoTaskStageDao struct {
+	*internal.InfoTaskStageDao
+}
+
+var (
+	// InfoTaskStage is globally public accessible object for table info_task_stage operations.
+	InfoTaskStage = infoTaskStageDao{
+		internal.NewInfoTaskStageDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 7 - 1
app/dao/internal/enterprise.go

@@ -19,13 +19,16 @@ type EnterpriseDao struct {
 
 // EnterpriseColumns defines and stores column names for table enterprise.
 type EnterpriseColumns struct {
-	EnterpriseId     string // 企业id
+	EnterpriseId     string // 企业id,用户ID的生成规则为:1(企业用户代码)+分秒数字+四位随机数字
 	Industry         string // 行业,1-14分别代表能源、化工、材料、机械设备/军工、企业服务/造纸印刷、运输设备、旅游酒店、媒体/信息通信服务、批发/零售、消费品、卫生保健/医疗、金融、建材/建筑/房地产、公共事业
 	BusinessName     string // 公司或组织名称
 	UserId           string // 对应用户id
 	Balance          string // 账户余额
 	FrozenBalance    string // 冻结余额
 	AvailableBalance string // 可用余额
+	BillableAmount   string // 可开票金额
+	Invoicing        string // 开票中金额
+	Recharging       string // 充值中金额
 	CreatedAt        string // 创建时间
 	UpdatedAt        string // 更新时间
 }
@@ -39,6 +42,9 @@ var enterpriseColumns = EnterpriseColumns{
 	Balance:          "balance",
 	FrozenBalance:    "frozen_balance",
 	AvailableBalance: "available_balance",
+	BillableAmount:   "billable_amount",
+	Invoicing:        "invoicing",
+	Recharging:       "recharging",
 	CreatedAt:        "created_at",
 	UpdatedAt:        "updated_at",
 }

+ 71 - 0
app/dao/internal/enterprise_pay_record.go

@@ -0,0 +1,71 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// EnterprisePayRecordDao is the manager for logic model data accessing and custom defined data operations functions management.
+type EnterprisePayRecordDao struct {
+	Table   string                     // Table is the underlying table name of the DAO.
+	Group   string                     // Group is the database configuration group name of current DAO.
+	Columns EnterprisePayRecordColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// EnterprisePayRecordColumns defines and stores column names for table enterprise_pay_record.
+type EnterprisePayRecordColumns struct {
+	Id           string // id
+	Payment      string // 交易金额
+	Balance      string // 交易后账户可用余额
+	PayType      string // 交易类型,1表示充值,2表示支付
+	RechargeType string // 充值方式,1表示在线交易,2表示对公转账
+	EnterpriseId string // 企业id
+	PayAt        string // 交易时间
+	ProjectId    string // 支付的项目id
+}
+
+//  enterprisePayRecordColumns holds the columns for table enterprise_pay_record.
+var enterprisePayRecordColumns = EnterprisePayRecordColumns{
+	Id:           "id",
+	Payment:      "payment",
+	Balance:      "balance",
+	PayType:      "pay_type",
+	RechargeType: "recharge_type",
+	EnterpriseId: "enterprise_id",
+	PayAt:        "pay_at",
+	ProjectId:    "project_id",
+}
+
+// NewEnterprisePayRecordDao creates and returns a new DAO object for table data access.
+func NewEnterprisePayRecordDao() *EnterprisePayRecordDao {
+	return &EnterprisePayRecordDao{
+		Group:   "default",
+		Table:   "enterprise_pay_record",
+		Columns: enterprisePayRecordColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *EnterprisePayRecordDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *EnterprisePayRecordDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *EnterprisePayRecordDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 89 - 0
app/dao/internal/info_auto_default_handle.go

@@ -0,0 +1,89 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// InfoAutoDefaultHandleDao is the manager for logic model data accessing and custom defined data operations functions management.
+type InfoAutoDefaultHandleDao struct {
+	Table   string                       // Table is the underlying table name of the DAO.
+	Group   string                       // Group is the database configuration group name of current DAO.
+	Columns InfoAutoDefaultHandleColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// InfoAutoDefaultHandleColumns defines and stores column names for table info_auto_default_handle.
+type InfoAutoDefaultHandleColumns struct {
+	AutoDefaultId          string // 自动处理规则id
+	SketchReplaceNotUpload string // 初稿违约 产品置换 未上传初稿
+	SketchReplaceTimeOut   string // 初稿违约 产品置换 超时未上传初稿
+	SketchOtherNotUpload   string // 初稿违约 自报价、固定稿费 未上传初稿
+	SketchOtherTimeOut     string // 初稿违约 自报价、固定稿费 超时未上传初稿
+	ScriptReplaceNotUpload string // 脚本违约 产品置换 未上传脚本
+	ScriptReplaceTimeOut   string // 脚本违约 产品置换 超时未上传脚本
+	ScriptOtherNotUpload   string // 脚本违约 自报价、固定稿费 未上传脚本
+	ScriptOtherTimeOut     string // 脚本违约 自报价、固定稿费 超时未上传脚本
+	LinkReplaceNotUpload   string // 链接违约 产品置换 未上传链接
+	LinkReplaceTimeOut     string // 链接违约 产品置换 超时未上传链接
+	LinkOtherNotUpload     string // 链接违约 自报价、固定稿费 未上传链接
+	LinkOtherTimeOut       string // 链接违约 自报价、固定稿费 超时未上传链接
+	DataReplaceNotUpload   string // 数据违约 产品置换 未上传数据
+	DataReplaceTimeOut     string // 数据违约 产品置换 超时未上传数据
+	DataOtherNotUpload     string // 数据违约 自报价、固定稿费 未上传数据
+	DataOtherTimeOut       string // 数据违约 自报价、固定稿费 超时未上传数据
+}
+
+//  infoAutoDefaultHandleColumns holds the columns for table info_auto_default_handle.
+var infoAutoDefaultHandleColumns = InfoAutoDefaultHandleColumns{
+	AutoDefaultId:          "auto_default_id",
+	SketchReplaceNotUpload: "sketch_replace_not_upload",
+	SketchReplaceTimeOut:   "sketch_replace_time_out",
+	SketchOtherNotUpload:   "sketch_other_not_upload",
+	SketchOtherTimeOut:     "sketch_other_time_out",
+	ScriptReplaceNotUpload: "script_replace_not_upload",
+	ScriptReplaceTimeOut:   "script_replace_time_out",
+	ScriptOtherNotUpload:   "script_other_not_upload",
+	ScriptOtherTimeOut:     "script_other_time_out",
+	LinkReplaceNotUpload:   "link_replace_not_upload",
+	LinkReplaceTimeOut:     "link_replace_time_out",
+	LinkOtherNotUpload:     "link_other_not_upload",
+	LinkOtherTimeOut:       "link_other_time_out",
+	DataReplaceNotUpload:   "data_replace_not_upload",
+	DataReplaceTimeOut:     "data_replace_time_out",
+	DataOtherNotUpload:     "data_other_not_upload",
+	DataOtherTimeOut:       "data_other_time_out",
+}
+
+// NewInfoAutoDefaultHandleDao creates and returns a new DAO object for table data access.
+func NewInfoAutoDefaultHandleDao() *InfoAutoDefaultHandleDao {
+	return &InfoAutoDefaultHandleDao{
+		Group:   "default",
+		Table:   "info_auto_default_handle",
+		Columns: infoAutoDefaultHandleColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *InfoAutoDefaultHandleDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *InfoAutoDefaultHandleDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *InfoAutoDefaultHandleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 81 - 0
app/dao/internal/info_auto_task.go

@@ -0,0 +1,81 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// InfoAutoTaskDao is the manager for logic model data accessing and custom defined data operations functions management.
+type InfoAutoTaskDao struct {
+	Table   string              // Table is the underlying table name of the DAO.
+	Group   string              // Group is the database configuration group name of current DAO.
+	Columns InfoAutoTaskColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// InfoAutoTaskColumns defines and stores column names for table info_auto_task.
+type InfoAutoTaskColumns struct {
+	AutoTaskId        string // 自动处理规则id
+	SignInOffline     string // 线下探店自动签收时间
+	SignInVirtual     string // 虚拟产品测评自动签收时间
+	ReviewInMv        string // 视频形式的审稿处理
+	ReviewUnlimited   string // 不限形式的审稿处理
+	Postreview        string // 发布审核自动处理
+	CaseClose         string // 结案自动处理
+	Invalid           string // 失效自动处理
+	DraftDefaultInPic string // 图片初稿违约自动处理
+	DraftDefaultInMv  string // 视频初稿违约自动处理
+	ScriptDefault     string // 脚本违约自动处理
+	LinkBreach        string // 链接违约自动处理
+	CaseCloseDefault  string // 结案违约自动处理
+}
+
+//  infoAutoTaskColumns holds the columns for table info_auto_task.
+var infoAutoTaskColumns = InfoAutoTaskColumns{
+	AutoTaskId:        "auto_task_id",
+	SignInOffline:     "sign_in_offline",
+	SignInVirtual:     "sign_in_virtual",
+	ReviewInMv:        "review_in_mv",
+	ReviewUnlimited:   "review_unlimited",
+	Postreview:        "postreview",
+	CaseClose:         "case_close",
+	Invalid:           "invalid",
+	DraftDefaultInPic: "draft_default_in_pic",
+	DraftDefaultInMv:  "draft_default_in_mv",
+	ScriptDefault:     "script_default",
+	LinkBreach:        "link_breach",
+	CaseCloseDefault:  "case_close_default",
+}
+
+// NewInfoAutoTaskDao creates and returns a new DAO object for table data access.
+func NewInfoAutoTaskDao() *InfoAutoTaskDao {
+	return &InfoAutoTaskDao{
+		Group:   "default",
+		Table:   "info_auto_task",
+		Columns: infoAutoTaskColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *InfoAutoTaskDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *InfoAutoTaskDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *InfoAutoTaskDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 59 - 0
app/dao/internal/info_bank.go

@@ -0,0 +1,59 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// InfoBankDao is the manager for logic model data accessing and custom defined data operations functions management.
+type InfoBankDao struct {
+	Table   string          // Table is the underlying table name of the DAO.
+	Group   string          // Group is the database configuration group name of current DAO.
+	Columns InfoBankColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// InfoBankColumns defines and stores column names for table info_bank.
+type InfoBankColumns struct {
+	Id   string // 银行id
+	Name string // 银行名称
+}
+
+//  infoBankColumns holds the columns for table info_bank.
+var infoBankColumns = InfoBankColumns{
+	Id:   "id",
+	Name: "name",
+}
+
+// NewInfoBankDao creates and returns a new DAO object for table data access.
+func NewInfoBankDao() *InfoBankDao {
+	return &InfoBankDao{
+		Group:   "default",
+		Table:   "info_bank",
+		Columns: infoBankColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *InfoBankDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *InfoBankDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *InfoBankDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 59 - 0
app/dao/internal/info_message.go

@@ -0,0 +1,59 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// InfoMessageDao is the manager for logic model data accessing and custom defined data operations functions management.
+type InfoMessageDao struct {
+	Table   string             // Table is the underlying table name of the DAO.
+	Group   string             // Group is the database configuration group name of current DAO.
+	Columns InfoMessageColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// InfoMessageColumns defines and stores column names for table info_message.
+type InfoMessageColumns struct {
+	Id   string // 消息类型id
+	Text string // 消息内容
+}
+
+//  infoMessageColumns holds the columns for table info_message.
+var infoMessageColumns = InfoMessageColumns{
+	Id:   "id",
+	Text: "text",
+}
+
+// NewInfoMessageDao creates and returns a new DAO object for table data access.
+func NewInfoMessageDao() *InfoMessageDao {
+	return &InfoMessageDao{
+		Group:   "default",
+		Table:   "info_message",
+		Columns: infoMessageColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *InfoMessageDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *InfoMessageDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *InfoMessageDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 83 - 0
app/dao/internal/info_pricing_strategy.go

@@ -0,0 +1,83 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// InfoPricingStrategyDao is the manager for logic model data accessing and custom defined data operations functions management.
+type InfoPricingStrategyDao struct {
+	Table   string                     // Table is the underlying table name of the DAO.
+	Group   string                     // Group is the database configuration group name of current DAO.
+	Columns InfoPricingStrategyColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// InfoPricingStrategyColumns defines and stores column names for table info_pricing_strategy.
+type InfoPricingStrategyColumns struct {
+	Id            string // id
+	ProjectType   string // 项目类型,0表示不限,1为全流程项目
+	StrategyId    string // 定价策略编号
+	FeeForm       string // 稿费形式,1,2,3分别代表产品置换、固定稿费、自报价
+	Platform      string // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
+	FansLow       string // 对应粉丝量下限
+	FansUp        string // 对应粉丝量上限
+	ServiceCharge string // 服务费,稿费形式为产品置换时填写,可以为空
+	BaseOffer     string // 基础报价
+	Status        string // 定价策略当前状态,0表示正常,1表示禁用
+	ServiceRate   string // 服务费率*1000,稿费形式为固定稿费和自报价时填写,可以为空
+	UpdateId      string // 修改管理人员id,对应user表中主键
+	UpdateAt      string // 修改时间
+	CreateAt      string // 创建时间
+}
+
+//  infoPricingStrategyColumns holds the columns for table info_pricing_strategy.
+var infoPricingStrategyColumns = InfoPricingStrategyColumns{
+	Id:            "id",
+	ProjectType:   "project_type",
+	StrategyId:    "strategyId",
+	FeeForm:       "fee_form",
+	Platform:      "platform",
+	FansLow:       "fans_low",
+	FansUp:        "fans_up",
+	ServiceCharge: "service_charge",
+	BaseOffer:     "base_offer",
+	Status:        "status",
+	ServiceRate:   "service_rate",
+	UpdateId:      "update_id",
+	UpdateAt:      "update_at",
+	CreateAt:      "create_at",
+}
+
+// NewInfoPricingStrategyDao creates and returns a new DAO object for table data access.
+func NewInfoPricingStrategyDao() *InfoPricingStrategyDao {
+	return &InfoPricingStrategyDao{
+		Group:   "default",
+		Table:   "info_pricing_strategy",
+		Columns: infoPricingStrategyColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *InfoPricingStrategyDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *InfoPricingStrategyDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *InfoPricingStrategyDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 59 - 0
app/dao/internal/info_product_type.go

@@ -0,0 +1,59 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// InfoProductTypeDao is the manager for logic model data accessing and custom defined data operations functions management.
+type InfoProductTypeDao struct {
+	Table   string                 // Table is the underlying table name of the DAO.
+	Group   string                 // Group is the database configuration group name of current DAO.
+	Columns InfoProductTypeColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// InfoProductTypeColumns defines and stores column names for table info_product_type.
+type InfoProductTypeColumns struct {
+	ProductTypeId string // 商品类型id
+	ProductType   string // 商品类型
+}
+
+//  infoProductTypeColumns holds the columns for table info_product_type.
+var infoProductTypeColumns = InfoProductTypeColumns{
+	ProductTypeId: "product_type_id",
+	ProductType:   "product_type",
+}
+
+// NewInfoProductTypeDao creates and returns a new DAO object for table data access.
+func NewInfoProductTypeDao() *InfoProductTypeDao {
+	return &InfoProductTypeDao{
+		Group:   "default",
+		Table:   "info_product_type",
+		Columns: infoProductTypeColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *InfoProductTypeDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *InfoProductTypeDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *InfoProductTypeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 59 - 0
app/dao/internal/info_task_stage.go

@@ -0,0 +1,59 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// InfoTaskStageDao is the manager for logic model data accessing and custom defined data operations functions management.
+type InfoTaskStageDao struct {
+	Table   string               // Table is the underlying table name of the DAO.
+	Group   string               // Group is the database configuration group name of current DAO.
+	Columns InfoTaskStageColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// InfoTaskStageColumns defines and stores column names for table info_task_stage.
+type InfoTaskStageColumns struct {
+	TaskStageId string // 任务阶段id
+	TaskStage   string // 任务阶段
+}
+
+//  infoTaskStageColumns holds the columns for table info_task_stage.
+var infoTaskStageColumns = InfoTaskStageColumns{
+	TaskStageId: "task_stage_id",
+	TaskStage:   "task_stage",
+}
+
+// NewInfoTaskStageDao creates and returns a new DAO object for table data access.
+func NewInfoTaskStageDao() *InfoTaskStageDao {
+	return &InfoTaskStageDao{
+		Group:   "default",
+		Table:   "info_task_stage",
+		Columns: infoTaskStageColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *InfoTaskStageDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *InfoTaskStageDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *InfoTaskStageDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 66 - 32
app/dao/internal/project_info.go

@@ -19,42 +19,76 @@ type ProjectInfoDao struct {
 
 // ProjectInfoColumns defines and stores column names for table project_info.
 type ProjectInfoColumns struct {
-	ProjectId       string // 项目id
-	ProjectName     string // 项目名称
-	ProjectStatus   string // 项目状态,1-10分别代表创建中、待审核、审核通过、招募中、招募完毕、待支付、已支付、失效、执行中、已结案
-	ProjectType     string // 项目类型,1代表全流程项目,2代表专项项目
-	ProjectPlatform string // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
-	ProjectForm     string // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
-	TalentType      string // 达人类型
-	RecruitDdl      string // 招募截止时间
-	ContentType     string // 内容形式,1代表图文,2代表视频
-	ProjectDetail   string // 项目详情
-	ApplyNum        string // 报名人数
-	RecruitNum      string // 已招募人数
-	EnterpriseId    string // 所属企业id
-	ProductId       string // 关联商品id
-	CreatedAt       string // 创建时间
-	UpdatedAt       string // 修改时间
+	ProjectId         string // 项目id
+	ProjectName       string // 项目名称
+	ProjectStatus     string // 项目状态,1-10分别代表创建中、待审核、审核通过、招募中、招募完毕、待支付、已支付、失效、执行中、已结案
+	ProjectType       string // 项目类型,1代表全流程项目,2代表专项项目
+	ProjectPlatform   string // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
+	ProjectForm       string // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
+	TalentType        string // 达人类型
+	RecruitDdl        string // 招募截止时间
+	ContentType       string // 内容形式,1代表图文,2代表视频
+	ProjectDetail     string // 项目详情
+	ApplyNum          string // 报名人数
+	RecruitNum        string // 已招募人数
+	EnterpriseId      string // 所属企业id
+	ProductId         string // 关联商品id
+	CreatedAt         string // 创建时间
+	UpdatedAt         string // 修改时间
+	FeeForm           string // 稿费形式列表
+	AutoFailAt        string // 失效自动处理时间
+	AutoTaskId        string // 定时任务id
+	AutoDefaultId     string // 违约状态id
+	PaymentAmount     string // 支付金额
+	PayAt             string // 支付时间
+	AutoScriptBreakAt string // 脚本违约自动处理时间
+	AutoSketchBreakAt string // 初稿违约自动处理时间
+	FailReason        string // 失效原因,1、2分别表示逾期未支付、项目存在风险
+	PassAt            string // 审核通过时间
+	FinishAt          string // 结案时间
+	EstimatedCost     string // 预估成本
+	IsRead            string // 是否已读
+	SettlementAmount  string // 结算金额
+	ProductSnap       string // 商品信息快照
+	ProductPhotoSnap  string // 商品图片快照
+	SubmitAt          string // 提交审核时间
 }
 
 //  projectInfoColumns holds the columns for table project_info.
 var projectInfoColumns = ProjectInfoColumns{
-	ProjectId:       "project_id",
-	ProjectName:     "project_name",
-	ProjectStatus:   "project_status",
-	ProjectType:     "project_type",
-	ProjectPlatform: "project_platform",
-	ProjectForm:     "project_form",
-	TalentType:      "talent_type",
-	RecruitDdl:      "recruit_ddl",
-	ContentType:     "content_type",
-	ProjectDetail:   "project_detail",
-	ApplyNum:        "apply_num",
-	RecruitNum:      "recruit_num",
-	EnterpriseId:    "enterprise_id",
-	ProductId:       "product_id",
-	CreatedAt:       "created_at",
-	UpdatedAt:       "updated_at",
+	ProjectId:         "project_id",
+	ProjectName:       "project_name",
+	ProjectStatus:     "project_status",
+	ProjectType:       "project_type",
+	ProjectPlatform:   "project_platform",
+	ProjectForm:       "project_form",
+	TalentType:        "talent_type",
+	RecruitDdl:        "recruit_ddl",
+	ContentType:       "content_type",
+	ProjectDetail:     "project_detail",
+	ApplyNum:          "apply_num",
+	RecruitNum:        "recruit_num",
+	EnterpriseId:      "enterprise_id",
+	ProductId:         "product_id",
+	CreatedAt:         "created_at",
+	UpdatedAt:         "updated_at",
+	FeeForm:           "fee_form",
+	AutoFailAt:        "auto_fail_at",
+	AutoTaskId:        "auto_task_id",
+	AutoDefaultId:     "auto_default_id",
+	PaymentAmount:     "payment_amount",
+	PayAt:             "pay_at",
+	AutoScriptBreakAt: "auto_script_break_at",
+	AutoSketchBreakAt: "auto_sketch_break_at",
+	FailReason:        "fail_reason",
+	PassAt:            "pass_at",
+	FinishAt:          "finish_at",
+	EstimatedCost:     "estimated_cost",
+	IsRead:            "is_read",
+	SettlementAmount:  "settlement_amount",
+	ProductSnap:       "product_snap",
+	ProductPhotoSnap:  "product_photo_snap",
+	SubmitAt:          "submit_at",
 }
 
 // NewProjectInfoDao creates and returns a new DAO object for table data access.

+ 30 - 0
app/dao/internal/recruit_strategy.go

@@ -26,7 +26,22 @@ type RecruitStrategyColumns struct {
 	FollowersUp       string // 达人粉丝数上限
 	RecruitNumber     string // 招募数量
 	Offer             string // 报价
+	TOffer            string // 达人所见报价
 	ProjectId         string // 所属项目id
+	ServiceCharge     string // 平台服务费,稿费形式为产品置换时必填
+	SelectedNumber    string // 已选数量,被企业选择的达人数量
+	WaitingNumber     string // 待发货
+	DeliveredNumber   string // 已发货
+	SignedNumber      string // 已签收
+	MaxOffer          string // 报价上限
+	MinOffer          string // 报价下限
+	FanNumber         string // 总粉丝量
+	PlayNumber        string // 总播放量
+	LikeNumber        string // 总点赞数
+	CollectNumber     string // 总收藏量
+	CommentNumber     string // 总评论数
+	FinishNumber      string // 结案数量
+	TotalOffer        string // 支付合计
 }
 
 //  recruitStrategyColumns holds the columns for table recruit_strategy.
@@ -38,7 +53,22 @@ var recruitStrategyColumns = RecruitStrategyColumns{
 	FollowersUp:       "followers_up",
 	RecruitNumber:     "recruit_number",
 	Offer:             "offer",
+	TOffer:            "t_offer",
 	ProjectId:         "project_id",
+	ServiceCharge:     "service_charge",
+	SelectedNumber:    "selected_number",
+	WaitingNumber:     "waiting_number",
+	DeliveredNumber:   "delivered_number",
+	SignedNumber:      "signed_number",
+	MaxOffer:          "max_offer",
+	MinOffer:          "min_offer",
+	FanNumber:         "fan_number",
+	PlayNumber:        "play_number",
+	LikeNumber:        "like_number",
+	CollectNumber:     "collect_number",
+	CommentNumber:     "comment_number",
+	FinishNumber:      "finish_number",
+	TotalOffer:        "total_offer",
 }
 
 // NewRecruitStrategyDao creates and returns a new DAO object for table data access.

+ 73 - 0
app/dao/internal/youngee_contract_info.go

@@ -0,0 +1,73 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YoungeeContractInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YoungeeContractInfoDao struct {
+	Table   string                     // Table is the underlying table name of the DAO.
+	Group   string                     // Group is the database configuration group name of current DAO.
+	Columns YoungeeContractInfoColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YoungeeContractInfoColumns defines and stores column names for table youngee_contract_info.
+type YoungeeContractInfoColumns struct {
+	ContractId       string // 合约id
+	TaskId           string // 任务id
+	ProjectId        string // 任务所属项目id
+	BreakType        string // 违约类型(4类严重违约):1(脚本)2(初稿)3(链接)4(数据)
+	SettlementAmount string // 应结算金额
+	BreakAt          string // 违约时间
+	HandleAt         string // 处理时间
+	TerminateAt      string // 解约申请时间
+	DefaultStatus    string // 违约处理状态1-5分别表示为违约、已重新上传、解约待处理、解约已处理(驳回)、解约已处理(解约)
+}
+
+//  youngeeContractInfoColumns holds the columns for table youngee_contract_info.
+var youngeeContractInfoColumns = YoungeeContractInfoColumns{
+	ContractId:       "contract_id",
+	TaskId:           "task_id",
+	ProjectId:        "project_id",
+	BreakType:        "break_type",
+	SettlementAmount: "settlement_amount",
+	BreakAt:          "break_at",
+	HandleAt:         "handle_at",
+	TerminateAt:      "terminate_at",
+	DefaultStatus:    "default_status",
+}
+
+// NewYoungeeContractInfoDao creates and returns a new DAO object for table data access.
+func NewYoungeeContractInfoDao() *YoungeeContractInfoDao {
+	return &YoungeeContractInfoDao{
+		Group:   "default",
+		Table:   "youngee_contract_info",
+		Columns: youngeeContractInfoColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YoungeeContractInfoDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YoungeeContractInfoDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YoungeeContractInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 69 - 0
app/dao/internal/youngee_contract_set.go

@@ -0,0 +1,69 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YoungeeContractSetDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YoungeeContractSetDao struct {
+	Table   string                    // Table is the underlying table name of the DAO.
+	Group   string                    // Group is the database configuration group name of current DAO.
+	Columns YoungeeContractSetColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YoungeeContractSetColumns defines and stores column names for table youngee_contract_set.
+type YoungeeContractSetColumns struct {
+	BreakManageId        string // 违约自动管理策略id
+	ProejctType          string // 项目类型:1:全流程 2:专项
+	ProjectForm          string // 任务形式:1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
+	FeeForm              string // 稿费形式:1,2,3分别代表产品置换、固定稿费、自报价
+	BreakType            string // 违约类型:1-4:初稿、脚本、链接和数据
+	NouploadCutRatio     string // 未上传 扣款比例
+	NotimeuploadCutRatio string // 未按照规定时间上传脚本 扣款比例
+}
+
+//  youngeeContractSetColumns holds the columns for table youngee_contract_set.
+var youngeeContractSetColumns = YoungeeContractSetColumns{
+	BreakManageId:        "break_manage_id",
+	ProejctType:          "proejct_type",
+	ProjectForm:          "project_form",
+	FeeForm:              "fee_form",
+	BreakType:            "break_type",
+	NouploadCutRatio:     "noupload_cut_ratio",
+	NotimeuploadCutRatio: "notimeupload_cut_ratio",
+}
+
+// NewYoungeeContractSetDao creates and returns a new DAO object for table data access.
+func NewYoungeeContractSetDao() *YoungeeContractSetDao {
+	return &YoungeeContractSetDao{
+		Group:   "default",
+		Table:   "youngee_contract_set",
+		Columns: youngeeContractSetColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YoungeeContractSetDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YoungeeContractSetDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YoungeeContractSetDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 0 - 2
app/dao/internal/youngee_talent_delivery_address.go

@@ -26,7 +26,6 @@ type YoungeeTalentDeliveryAddressColumns struct {
 	PhoneNumber  string // 联系电话
 	ReceiverName string // 收货人名字
 	DefaultTag   string // 是否默认收货地址
-	MailCode     string // 邮政编码
 }
 
 //  youngeeTalentDeliveryAddressColumns holds the columns for table youngee_talent_delivery_address.
@@ -38,7 +37,6 @@ var youngeeTalentDeliveryAddressColumns = YoungeeTalentDeliveryAddressColumns{
 	PhoneNumber:  "phone_number",
 	ReceiverName: "receiver_name",
 	DefaultTag:   "default_tag",
-	MailCode:     "mail_code",
 }
 
 // NewYoungeeTalentDeliveryAddressDao creates and returns a new DAO object for table data access.

+ 4 - 4
app/dao/internal/youngee_talent_info.go

@@ -22,17 +22,16 @@ type YoungeeTalentInfoColumns struct {
 	Id                string // 达人id
 	TalentWxOpenid    string // 达人的微信openid
 	TalentWxNickname  string // 达人的微信昵称
-	TalentWxNumber    string // 达人微信号
 	Income            string // 收益总数
 	Withdrawing       string // 提现中金额
 	Canwithdraw       string // 可提现金额
 	Withdrawed        string // 已提现金额
-	TalentGender      string // 性别,0未知 1男 2女
 	TalentPhoneNumber string // 电话号码
 	TalentAgeBracket  string // 年龄段,取tallent_age_bracket表id
 	TalentNationality string // 国籍,取tallent_nationality表id
 	VisitStoreRegion  string // 探店区域,取region_info表中的self_code
 	IsBindInfo        string // 是否填写个人资料
+	IsBindAccount     string // 是否绑定账号,1是0否
 	IsBindLocation    string // 是否绑定收货地址
 	IsBindBank        string // 是否绑定银行账户信息
 	InBlacklist       string // 是否加入黑名单 0否 1是
@@ -42,6 +41,7 @@ type YoungeeTalentInfoColumns struct {
 	TaskEnd           string // 结束任务数量
 	CreateDate        string // 创建时间
 	LastLoginDate     string // 最后登录时间
+	ApplyNum          string // 剩余申请次数(每天更新)
 }
 
 //  youngeeTalentInfoColumns holds the columns for table youngee_talent_info.
@@ -49,17 +49,16 @@ var youngeeTalentInfoColumns = YoungeeTalentInfoColumns{
 	Id:                "id",
 	TalentWxOpenid:    "talent_wx_openid",
 	TalentWxNickname:  "talent_wx_nickname",
-	TalentWxNumber:    "talent_wx_number",
 	Income:            "income",
 	Withdrawing:       "withdrawing",
 	Canwithdraw:       "canwithdraw",
 	Withdrawed:        "withdrawed",
-	TalentGender:      "talent_gender",
 	TalentPhoneNumber: "talent_phone_number",
 	TalentAgeBracket:  "talent_age_bracket",
 	TalentNationality: "talent_nationality",
 	VisitStoreRegion:  "visit_store_region",
 	IsBindInfo:        "is_bind_info",
+	IsBindAccount:     "is_bind_account",
 	IsBindLocation:    "is_bind_location",
 	IsBindBank:        "is_bind_bank",
 	InBlacklist:       "in_blacklist",
@@ -69,6 +68,7 @@ var youngeeTalentInfoColumns = YoungeeTalentInfoColumns{
 	TaskEnd:           "task_end",
 	CreateDate:        "create_date",
 	LastLoginDate:     "last_login_date",
+	ApplyNum:          "apply_num",
 }
 
 // NewYoungeeTalentInfoDao creates and returns a new DAO object for table data access.

+ 49 - 5
app/dao/internal/youngee_task_info.go

@@ -22,17 +22,39 @@ type YoungeeTaskInfoColumns struct {
 	TaskId                 string // 任务id
 	ProjectId              string // 项目id
 	TalentId               string // 达人id
+	AccountId              string // 账号id
 	TalentPlatformInfoSnap string // 达人平台信息快照
 	TalentPersonalInfoSnap string // 达人个人信息快照
 	TalentPostAddrSnap     string // 收货地址快照
 	StrategyId             string // 报名选择的招募策略id
-	TaskReward             string // 任务奖励金额
-	SettleAmount           string // 待结算金额(任务奖励扣除违规扣款)
-	TaskStatus             string // 任务状态
+	TaskReward             string // 达人报酬
+	SettleAmount           string // 达人实际所得(扣除违约扣款)
+	AllPayment             string // 企业支付
+	RealPayment            string // 企业实际支付(扣除违约扣款)
+	ErrBreakRate           string // 未上传类型违约扣款比例,百分之
+	ScriptBreakRate        string // 脚本上传超时违约扣款比例,百分之
+	SketchBreakRate        string // 初稿上传超时违约扣款比例,百分之
+	LinkBreakRate          string // 链接上传超时违约扣款比例,百分之
+	DataBreakRate          string // 数据上传超时违约扣款比例,百分之
+	FeeForm                string // 稿费形式,1,2,3分别代表产品置换、固定稿费、自报价
+	ServiceCharge          string // 服务费
+	ServiceRate            string // 服务费率,千分之
+	TaskStatus             string // 任务状态 1待选 2已选 3落选
+	TaskStage              string // 任务阶段,详情见info_task_stage表
 	CreateDate             string // 创建时间
 	SelectDate             string // 反选时间
-	CompleteStatus         string // 结束方式 1未结束 2正常结束 3反选失败 4被解约
+	DeliveryDate           string // 发货时间
 	CompleteDate           string // 结束时间
+	WithdrawDate           string // 提现时间
+	CompleteStatus         string // 结束方式 1未结束 2正常结束 3反选失败 4被解约
+	LogisticsStatus        string // 发货状态 1 待发货 2已发货 3 已签收
+	ScriptStatus           string // 脚本上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
+	SketchStatus           string // 初稿上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
+	UpdateAt               string // 更新时间
+	LinkStatus             string // 链接上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
+	DataStatus             string // 数据上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
+	CurDefaultType         string // 任务当前处于的违约类型 0-10分别表示未违约、脚本超时违约、脚本未上传违约、初稿超时违约、初稿未上传违约、链接超时违约、链接未上传违约、数据超时违约、数据未上传违约、解约待处理、解约
+	WithdrawStatus         string // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现
 }
 
 //  youngeeTaskInfoColumns holds the columns for table youngee_task_info.
@@ -40,17 +62,39 @@ var youngeeTaskInfoColumns = YoungeeTaskInfoColumns{
 	TaskId:                 "task_id",
 	ProjectId:              "project_id",
 	TalentId:               "talent_id",
+	AccountId:              "account_id",
 	TalentPlatformInfoSnap: "talent_platform_info_snap",
 	TalentPersonalInfoSnap: "talent_personal_info_snap",
 	TalentPostAddrSnap:     "talent_post_addr_snap",
 	StrategyId:             "strategy_id",
 	TaskReward:             "task_reward",
 	SettleAmount:           "settle_amount",
+	AllPayment:             "all_payment",
+	RealPayment:            "real_payment",
+	ErrBreakRate:           "err_break_rate",
+	ScriptBreakRate:        "script_break_rate",
+	SketchBreakRate:        "sketch_break_rate",
+	LinkBreakRate:          "link_break_rate",
+	DataBreakRate:          "data_break_rate",
+	FeeForm:                "fee_form",
+	ServiceCharge:          "service_charge",
+	ServiceRate:            "service_rate",
 	TaskStatus:             "task_status",
+	TaskStage:              "task_stage",
 	CreateDate:             "create_date",
 	SelectDate:             "select_date",
-	CompleteStatus:         "complete_status",
+	DeliveryDate:           "delivery_date",
 	CompleteDate:           "complete_date",
+	WithdrawDate:           "withdraw_date",
+	CompleteStatus:         "complete_status",
+	LogisticsStatus:        "logistics_status",
+	ScriptStatus:           "script_status",
+	SketchStatus:           "sketch_status",
+	UpdateAt:               "update_at",
+	LinkStatus:             "link_status",
+	DataStatus:             "data_status",
+	CurDefaultType:         "cur_default_type",
+	WithdrawStatus:         "withdraw_status",
 }
 
 // NewYoungeeTaskInfoDao creates and returns a new DAO object for table data access.

+ 85 - 0
app/dao/internal/youngee_task_logistics.go

@@ -0,0 +1,85 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YoungeeTaskLogisticsDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YoungeeTaskLogisticsDao struct {
+	Table   string                      // Table is the underlying table name of the DAO.
+	Group   string                      // Group is the database configuration group name of current DAO.
+	Columns YoungeeTaskLogisticsColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YoungeeTaskLogisticsColumns defines and stores column names for table youngee_task_logistics.
+type YoungeeTaskLogisticsColumns struct {
+	LogisticsId           string // 货物-id
+	CompanyName           string // 实物商品-物流公司名称
+	LogisticsNumber       string // 实物商品-物流单号
+	ExplorestoreStarttime string // 线下探店-探店开始时间
+	ExplorestoreEndtime   string // 线下探店-探店结束时间
+	ExplorestorePeriod    string // 线下探店-探店持续时间
+	CouponCodeInformation string // 虚拟产品-券码信息
+	TaskId                string // 任务id
+	DeliveryTime          string // 发货时间
+	ThingsType            string // 任务类型:1 实物,2:线下探店,3:虚拟产品
+	SignedTime            string // 实物商品-签收时间
+	AutoSignAt            string // 自动签收时间
+	AutoScriptBreakAt     string // 脚本违约自动处理时间
+	AutoSketchBreakAt     string // 初稿违约自动处理时间
+	Status                string // 签收状态,0为未签收,1为已签收
+}
+
+//  youngeeTaskLogisticsColumns holds the columns for table youngee_task_logistics.
+var youngeeTaskLogisticsColumns = YoungeeTaskLogisticsColumns{
+	LogisticsId:           "logistics_id",
+	CompanyName:           "company_name",
+	LogisticsNumber:       "logistics_number",
+	ExplorestoreStarttime: "explorestore_starttime",
+	ExplorestoreEndtime:   "explorestore_endtime",
+	ExplorestorePeriod:    "explorestore_period",
+	CouponCodeInformation: "coupon_code_information",
+	TaskId:                "task_id",
+	DeliveryTime:          "delivery_time",
+	ThingsType:            "things_type",
+	SignedTime:            "signed_time",
+	AutoSignAt:            "auto_sign_at",
+	AutoScriptBreakAt:     "auto_script_break_at",
+	AutoSketchBreakAt:     "auto_sketch_break_at",
+	Status:                "status",
+}
+
+// NewYoungeeTaskLogisticsDao creates and returns a new DAO object for table data access.
+func NewYoungeeTaskLogisticsDao() *YoungeeTaskLogisticsDao {
+	return &YoungeeTaskLogisticsDao{
+		Group:   "default",
+		Table:   "youngee_task_logistics",
+		Columns: youngeeTaskLogisticsColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YoungeeTaskLogisticsDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YoungeeTaskLogisticsDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YoungeeTaskLogisticsDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 77 - 0
app/dao/internal/youngee_task_pay.go

@@ -0,0 +1,77 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YoungeeTaskPayDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YoungeeTaskPayDao struct {
+	Table   string                // Table is the underlying table name of the DAO.
+	Group   string                // Group is the database configuration group name of current DAO.
+	Columns YoungeeTaskPayColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YoungeeTaskPayColumns defines and stores column names for table youngee_task_pay.
+type YoungeeTaskPayColumns struct {
+	Id            string // id
+	TaskId        string // 任务id
+	AllReward     string // 达人报酬
+	RealReward    string // 达人实际所得(扣除违约扣款)
+	AllPayment    string // 企业支付
+	RealPayment   string // 企业实际支付(扣除违约扣款)
+	Penalty       string // 违约扣款比例,百分之
+	FeeForm       string // 稿费形式,1,2,3分别代表产品置换、固定稿费、自报价
+	ServiceCharge string // 服务费
+	ServiceRate   string // 服务费率
+	UpdateAt      string // 更新时间
+}
+
+//  youngeeTaskPayColumns holds the columns for table youngee_task_pay.
+var youngeeTaskPayColumns = YoungeeTaskPayColumns{
+	Id:            "id",
+	TaskId:        "task_id",
+	AllReward:     "all_reward",
+	RealReward:    "real_reward",
+	AllPayment:    "all_payment",
+	RealPayment:   "real_payment",
+	Penalty:       "penalty",
+	FeeForm:       "fee_form",
+	ServiceCharge: "service_charge",
+	ServiceRate:   "service_rate",
+	UpdateAt:      "update_at",
+}
+
+// NewYoungeeTaskPayDao creates and returns a new DAO object for table data access.
+func NewYoungeeTaskPayDao() *YoungeeTaskPayDao {
+	return &YoungeeTaskPayDao{
+		Group:   "default",
+		Table:   "youngee_task_pay",
+		Columns: youngeeTaskPayColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YoungeeTaskPayDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YoungeeTaskPayDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YoungeeTaskPayDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 89 - 0
app/dao/internal/younggee_data_info.go

@@ -0,0 +1,89 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeDataInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeDataInfoDao struct {
+	Table   string                  // Table is the underlying table name of the DAO.
+	Group   string                  // Group is the database configuration group name of current DAO.
+	Columns YounggeeDataInfoColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeDataInfoColumns defines and stores column names for table younggee_data_info.
+type YounggeeDataInfoColumns struct {
+	DataId          string // 脚本id
+	TaskId          string // 任务id
+	PlayNumber      string // 播放量/阅读量
+	LikeNumber      string // 点赞数
+	CommentNumber   string // 评论数
+	CollectNumber   string // 收藏数
+	PhotoUrl        string // 数据截图url
+	ReviseOpinion   string // 审核意见
+	IsSubmit        string // 是否提交
+	IsReview        string // 是否审核
+	IsOk            string // 是否合格
+	CreateAt        string // 创建时间
+	SubmitAt        string // 提交时间
+	AgreeAt         string // 同意时间
+	RejectAt        string // 驳回时间
+	AutoAgreeAt     string // 结案自动处理时间
+	AutoDataBreakAt string // 结案违约自动处理时间
+}
+
+//  younggeeDataInfoColumns holds the columns for table younggee_data_info.
+var younggeeDataInfoColumns = YounggeeDataInfoColumns{
+	DataId:          "data_id",
+	TaskId:          "task_id",
+	PlayNumber:      "play_number",
+	LikeNumber:      "like_number",
+	CommentNumber:   "comment_number",
+	CollectNumber:   "collect_number",
+	PhotoUrl:        "photo_url",
+	ReviseOpinion:   "revise_opinion",
+	IsSubmit:        "is_submit",
+	IsReview:        "is_review",
+	IsOk:            "is_ok",
+	CreateAt:        "create_at",
+	SubmitAt:        "submit_at",
+	AgreeAt:         "agree_at",
+	RejectAt:        "reject_at",
+	AutoAgreeAt:     "auto_agree_at",
+	AutoDataBreakAt: "auto_data_break_at",
+}
+
+// NewYounggeeDataInfoDao creates and returns a new DAO object for table data access.
+func NewYounggeeDataInfoDao() *YounggeeDataInfoDao {
+	return &YounggeeDataInfoDao{
+		Group:   "default",
+		Table:   "younggee_data_info",
+		Columns: younggeeDataInfoColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeDataInfoDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeDataInfoDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeDataInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 69 - 0
app/dao/internal/younggee_invoice_address.go

@@ -0,0 +1,69 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeInvoiceAddressDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeInvoiceAddressDao struct {
+	Table   string                        // Table is the underlying table name of the DAO.
+	Group   string                        // Group is the database configuration group name of current DAO.
+	Columns YounggeeInvoiceAddressColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeInvoiceAddressColumns defines and stores column names for table younggee_invoice_address.
+type YounggeeInvoiceAddressColumns struct {
+	AddressId    string // 发票收件地址id
+	EnterpriseId string // 企业id
+	Name         string // 收件人姓名
+	RegionCode   string // 所在地区编码
+	Address      string // 详细地址
+	Phone        string // 手机号码
+	UpdateAt     string // 创建时间
+}
+
+//  younggeeInvoiceAddressColumns holds the columns for table younggee_invoice_address.
+var younggeeInvoiceAddressColumns = YounggeeInvoiceAddressColumns{
+	AddressId:    "address_id",
+	EnterpriseId: "enterprise_id",
+	Name:         "name",
+	RegionCode:   "region_code",
+	Address:      "address",
+	Phone:        "phone",
+	UpdateAt:     "update_at",
+}
+
+// NewYounggeeInvoiceAddressDao creates and returns a new DAO object for table data access.
+func NewYounggeeInvoiceAddressDao() *YounggeeInvoiceAddressDao {
+	return &YounggeeInvoiceAddressDao{
+		Group:   "default",
+		Table:   "younggee_invoice_address",
+		Columns: younggeeInvoiceAddressColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeInvoiceAddressDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeInvoiceAddressDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeInvoiceAddressDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 77 - 0
app/dao/internal/younggee_invoice_info.go

@@ -0,0 +1,77 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeInvoiceInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeInvoiceInfoDao struct {
+	Table   string                     // Table is the underlying table name of the DAO.
+	Group   string                     // Group is the database configuration group name of current DAO.
+	Columns YounggeeInvoiceInfoColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeInvoiceInfoColumns defines and stores column names for table younggee_invoice_info.
+type YounggeeInvoiceInfoColumns struct {
+	InvoiceId         string // 发票信息id
+	EnterpriseId      string // 企业id
+	HeadType          string // 抬头类型
+	InvoiceHeader     string // 发票抬头
+	InvoiceType       string // 发票类型
+	TaxCode           string // 税务登记证号/统一社会信用代码
+	Bank              string // 基本户开户银行
+	BankCardNumber    string // 基本户开户银行账号
+	RegisteredAddress string // 企业注册地址
+	RegisteredPhone   string // 企业注册电话
+	UpdateAt          string // 更新时间
+}
+
+//  younggeeInvoiceInfoColumns holds the columns for table younggee_invoice_info.
+var younggeeInvoiceInfoColumns = YounggeeInvoiceInfoColumns{
+	InvoiceId:         "invoice_id",
+	EnterpriseId:      "enterprise_id",
+	HeadType:          "head_type",
+	InvoiceHeader:     "invoice_header",
+	InvoiceType:       "invoice_type",
+	TaxCode:           "tax_code",
+	Bank:              "bank",
+	BankCardNumber:    "bank_card_number",
+	RegisteredAddress: "registered_address",
+	RegisteredPhone:   "registered_phone",
+	UpdateAt:          "update_at",
+}
+
+// NewYounggeeInvoiceInfoDao creates and returns a new DAO object for table data access.
+func NewYounggeeInvoiceInfoDao() *YounggeeInvoiceInfoDao {
+	return &YounggeeInvoiceInfoDao{
+		Group:   "default",
+		Table:   "younggee_invoice_info",
+		Columns: younggeeInvoiceInfoColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeInvoiceInfoDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeInvoiceInfoDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeInvoiceInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 77 - 0
app/dao/internal/younggee_invoice_record.go

@@ -0,0 +1,77 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeInvoiceRecordDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeInvoiceRecordDao struct {
+	Table   string                       // Table is the underlying table name of the DAO.
+	Group   string                       // Group is the database configuration group name of current DAO.
+	Columns YounggeeInvoiceRecordColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeInvoiceRecordColumns defines and stores column names for table younggee_invoice_record.
+type YounggeeInvoiceRecordColumns struct {
+	BillingId      string // 开票订单ID
+	EnterpriseId   string // 企业id
+	InvoiceType    string // 发票类型
+	InvoiceAmount  string // 开票金额
+	InvoiceSnap    string // 开票信息快照
+	AddressSnap    string // 邮寄地址快照
+	Phone          string // 联系方式
+	Status         string // 开票状态:1 为待开票,2为已开票
+	ShipmentNumber string // 物流单号
+	SubmitAt       string // 申请提交时间
+	BillingAt      string // 开票时间
+}
+
+//  younggeeInvoiceRecordColumns holds the columns for table younggee_invoice_record.
+var younggeeInvoiceRecordColumns = YounggeeInvoiceRecordColumns{
+	BillingId:      "billing_id",
+	EnterpriseId:   "enterprise_id",
+	InvoiceType:    "invoice_type",
+	InvoiceAmount:  "invoice_amount",
+	InvoiceSnap:    "invoice_snap",
+	AddressSnap:    "address_snap",
+	Phone:          "phone",
+	Status:         "status",
+	ShipmentNumber: "shipment_number",
+	SubmitAt:       "submit_at",
+	BillingAt:      "billing_at",
+}
+
+// NewYounggeeInvoiceRecordDao creates and returns a new DAO object for table data access.
+func NewYounggeeInvoiceRecordDao() *YounggeeInvoiceRecordDao {
+	return &YounggeeInvoiceRecordDao{
+		Group:   "default",
+		Table:   "younggee_invoice_record",
+		Columns: younggeeInvoiceRecordColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeInvoiceRecordDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeInvoiceRecordDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeInvoiceRecordDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 85 - 0
app/dao/internal/younggee_link_info.go

@@ -0,0 +1,85 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeLinkInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeLinkInfoDao struct {
+	Table   string                  // Table is the underlying table name of the DAO.
+	Group   string                  // Group is the database configuration group name of current DAO.
+	Columns YounggeeLinkInfoColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeLinkInfoColumns defines and stores column names for table younggee_link_info.
+type YounggeeLinkInfoColumns struct {
+	LinkId          string // 链接id
+	TaskId          string // 任务id
+	LinkUrl         string // 上传链接url
+	PhotoUrl        string // 上传截图url
+	ReviseOpinion   string // 审核意见
+	IsSubmit        string // 是否提交
+	IsReview        string // 是否审核
+	IsOk            string // 是否合格
+	CreateAt        string // 创建时间
+	SubmitAt        string // 提交时间
+	AgreeAt         string // 同意时间
+	RejectAt        string // 驳回时间
+	AutoAgreeAt     string // 发布审核自动处理时间
+	AutoDataBreakAt string // 结案违约自动处理时间
+	AutoLinkBreakAt string // 链接违约自动处理时间
+}
+
+//  younggeeLinkInfoColumns holds the columns for table younggee_link_info.
+var younggeeLinkInfoColumns = YounggeeLinkInfoColumns{
+	LinkId:          "link_id",
+	TaskId:          "task_id",
+	LinkUrl:         "link_url",
+	PhotoUrl:        "photo_url",
+	ReviseOpinion:   "revise_opinion",
+	IsSubmit:        "is_submit",
+	IsReview:        "is_review",
+	IsOk:            "is_ok",
+	CreateAt:        "create_at",
+	SubmitAt:        "submit_at",
+	AgreeAt:         "agree_at",
+	RejectAt:        "reject_at",
+	AutoAgreeAt:     "auto_agree_at",
+	AutoDataBreakAt: "auto_data_break_at",
+	AutoLinkBreakAt: "auto_link_break_at",
+}
+
+// NewYounggeeLinkInfoDao creates and returns a new DAO object for table data access.
+func NewYounggeeLinkInfoDao() *YounggeeLinkInfoDao {
+	return &YounggeeLinkInfoDao{
+		Group:   "default",
+		Table:   "younggee_link_info",
+		Columns: younggeeLinkInfoColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeLinkInfoDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeLinkInfoDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeLinkInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 71 - 0
app/dao/internal/younggee_message_info.go

@@ -0,0 +1,71 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeMessageInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeMessageInfoDao struct {
+	Table   string                     // Table is the underlying table name of the DAO.
+	Group   string                     // Group is the database configuration group name of current DAO.
+	Columns YounggeeMessageInfoColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeMessageInfoColumns defines and stores column names for table younggee_message_info.
+type YounggeeMessageInfoColumns struct {
+	Id          string // id,递增
+	MessageId   string // 消息内容id,对应info_message
+	MessageType string // 消息类型,1-4分别表示成功、通知、错误、警告
+	TalentId    string // 达人id
+	ProjectName string // 项目名称
+	CreatedAt   string // 消息创建时间
+	IsReaded    string // 是否已读,1表示未读,2表示已读
+	IsDeleted   string // 是否删除,1表示未删,2表示已删
+}
+
+//  younggeeMessageInfoColumns holds the columns for table younggee_message_info.
+var younggeeMessageInfoColumns = YounggeeMessageInfoColumns{
+	Id:          "id",
+	MessageId:   "message_id",
+	MessageType: "message_type",
+	TalentId:    "talent_id",
+	ProjectName: "project_name",
+	CreatedAt:   "created_at",
+	IsReaded:    "is_readed",
+	IsDeleted:   "is_deleted",
+}
+
+// NewYounggeeMessageInfoDao creates and returns a new DAO object for table data access.
+func NewYounggeeMessageInfoDao() *YounggeeMessageInfoDao {
+	return &YounggeeMessageInfoDao{
+		Group:   "default",
+		Table:   "younggee_message_info",
+		Columns: younggeeMessageInfoColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeMessageInfoDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeMessageInfoDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeMessageInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 75 - 0
app/dao/internal/younggee_recharge_record.go

@@ -0,0 +1,75 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeRechargeRecordDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeRechargeRecordDao struct {
+	Table   string                        // Table is the underlying table name of the DAO.
+	Group   string                        // Group is the database configuration group name of current DAO.
+	Columns YounggeeRechargeRecordColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeRechargeRecordColumns defines and stores column names for table younggee_recharge_record.
+type YounggeeRechargeRecordColumns struct {
+	RechargeId         string // 充值订单ID
+	EnterpriseId       string // 企业id
+	RechargeAmount     string // 充值金额
+	TransferVoucherUrl string // 转账凭证图片链接
+	Phone              string // 联系方式
+	RechargeMethod     string // 充值方式:1为对公转账,2为支付宝在线支付,3为微信支付
+	Status             string // 充值状态:1为充值待确认,2为充值已确认
+	InvoiceStatus      string // 开票状态:1为充值中,2为待开票,3为已开票
+	CommitAt           string // 充值申请提交时间
+	ConfirmAt          string // 充值确认时间
+}
+
+//  younggeeRechargeRecordColumns holds the columns for table younggee_recharge_record.
+var younggeeRechargeRecordColumns = YounggeeRechargeRecordColumns{
+	RechargeId:         "recharge_id",
+	EnterpriseId:       "enterprise_id",
+	RechargeAmount:     "recharge_amount",
+	TransferVoucherUrl: "transfer_voucher_url",
+	Phone:              "phone",
+	RechargeMethod:     "recharge_method",
+	Status:             "status",
+	InvoiceStatus:      "invoice_status",
+	CommitAt:           "commit_at",
+	ConfirmAt:          "confirm_at",
+}
+
+// NewYounggeeRechargeRecordDao creates and returns a new DAO object for table data access.
+func NewYounggeeRechargeRecordDao() *YounggeeRechargeRecordDao {
+	return &YounggeeRechargeRecordDao{
+		Group:   "default",
+		Table:   "younggee_recharge_record",
+		Columns: younggeeRechargeRecordColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeRechargeRecordDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeRechargeRecordDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeRechargeRecordDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 85 - 0
app/dao/internal/younggee_script_info.go

@@ -0,0 +1,85 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeScriptInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeScriptInfoDao struct {
+	Table   string                    // Table is the underlying table name of the DAO.
+	Group   string                    // Group is the database configuration group name of current DAO.
+	Columns YounggeeScriptInfoColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeScriptInfoColumns defines and stores column names for table younggee_script_info.
+type YounggeeScriptInfoColumns struct {
+	ScriptId          string // 脚本id
+	TaskId            string // 任务id
+	Title             string // 脚本标题
+	Content           string // 脚本内容
+	ReviseOpinion     string // 审核意见
+	IsSubmit          string // 是否提交
+	IsReview          string // 是否审核
+	IsOk              string // 是否合格
+	CreateAt          string // 创建时间
+	SubmitAt          string // 提交时间
+	AgreeAt           string // 同意时间
+	RejectAt          string // 驳回时间
+	AutoAgreeAt       string // 脚本自动审核时间
+	AutoSketchBreakAt string // 初稿违约自动处理时间
+	AutoScriptBreakAt string // 脚本违约自动处理时间
+}
+
+//  younggeeScriptInfoColumns holds the columns for table younggee_script_info.
+var younggeeScriptInfoColumns = YounggeeScriptInfoColumns{
+	ScriptId:          "script_id",
+	TaskId:            "task_id",
+	Title:             "title",
+	Content:           "content",
+	ReviseOpinion:     "revise_opinion",
+	IsSubmit:          "is_submit",
+	IsReview:          "is_review",
+	IsOk:              "is_ok",
+	CreateAt:          "create_at",
+	SubmitAt:          "submit_at",
+	AgreeAt:           "agree_at",
+	RejectAt:          "reject_at",
+	AutoAgreeAt:       "auto_agree_at",
+	AutoSketchBreakAt: "auto_sketch_break_at",
+	AutoScriptBreakAt: "auto_script_break_at",
+}
+
+// NewYounggeeScriptInfoDao creates and returns a new DAO object for table data access.
+func NewYounggeeScriptInfoDao() *YounggeeScriptInfoDao {
+	return &YounggeeScriptInfoDao{
+		Group:   "default",
+		Table:   "younggee_script_info",
+		Columns: younggeeScriptInfoColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeScriptInfoDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeScriptInfoDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeScriptInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 87 - 0
app/dao/internal/younggee_sketch_info.go

@@ -0,0 +1,87 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeSketchInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeSketchInfoDao struct {
+	Table   string                    // Table is the underlying table name of the DAO.
+	Group   string                    // Group is the database configuration group name of current DAO.
+	Columns YounggeeSketchInfoColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeSketchInfoColumns defines and stores column names for table younggee_sketch_info.
+type YounggeeSketchInfoColumns struct {
+	SketchId          string // 初稿id
+	TaskId            string // 任务id
+	Title             string // 标题
+	Type              string // 初稿形式,1为图片,2为视频
+	Content           string // 正文
+	ReviseOpinion     string // 反馈意见
+	IsSubmit          string // 是否提交
+	IsReview          string // 是否审核
+	IsOk              string // 是否合格
+	CreateAt          string // 创建时间
+	AgreeAt           string // 同意时间
+	RejectAt          string // 驳回时间
+	SubmitAt          string // 提交时间
+	AutoAgreeAt       string // 初稿自动审核时间
+	AutoLinkBreakAt   string // 链接违约自动处理时间
+	AutoSketchBreakAt string // 初稿违约自动处理时间
+}
+
+//  younggeeSketchInfoColumns holds the columns for table younggee_sketch_info.
+var younggeeSketchInfoColumns = YounggeeSketchInfoColumns{
+	SketchId:          "sketch_id",
+	TaskId:            "task_id",
+	Title:             "title",
+	Type:              "type",
+	Content:           "content",
+	ReviseOpinion:     "revise_opinion",
+	IsSubmit:          "is_submit",
+	IsReview:          "is_review",
+	IsOk:              "is_ok",
+	CreateAt:          "create_at",
+	AgreeAt:           "agree_at",
+	RejectAt:          "reject_at",
+	SubmitAt:          "submit_at",
+	AutoAgreeAt:       "auto_agree_at",
+	AutoLinkBreakAt:   "auto_link_break_at",
+	AutoSketchBreakAt: "auto_sketch_break_at",
+}
+
+// NewYounggeeSketchInfoDao creates and returns a new DAO object for table data access.
+func NewYounggeeSketchInfoDao() *YounggeeSketchInfoDao {
+	return &YounggeeSketchInfoDao{
+		Group:   "default",
+		Table:   "younggee_sketch_info",
+		Columns: younggeeSketchInfoColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeSketchInfoDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeSketchInfoDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeSketchInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 67 - 0
app/dao/internal/younggee_sketch_photo.go

@@ -0,0 +1,67 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeSketchPhotoDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeSketchPhotoDao struct {
+	Table   string                     // Table is the underlying table name of the DAO.
+	Group   string                     // Group is the database configuration group name of current DAO.
+	Columns YounggeeSketchPhotoColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeSketchPhotoColumns defines and stores column names for table younggee_sketch_photo.
+type YounggeeSketchPhotoColumns struct {
+	Id       string // 脚本id
+	SketchId string //
+	PhotoUrl string //
+	PhotoUid string //
+	Symbol   string // 1是图片,2是视频
+	CreateAt string //
+}
+
+//  younggeeSketchPhotoColumns holds the columns for table younggee_sketch_photo.
+var younggeeSketchPhotoColumns = YounggeeSketchPhotoColumns{
+	Id:       "id",
+	SketchId: "sketch_id",
+	PhotoUrl: "photo_url",
+	PhotoUid: "photo_uid",
+	Symbol:   "symbol",
+	CreateAt: "create_at",
+}
+
+// NewYounggeeSketchPhotoDao creates and returns a new DAO object for table data access.
+func NewYounggeeSketchPhotoDao() *YounggeeSketchPhotoDao {
+	return &YounggeeSketchPhotoDao{
+		Group:   "default",
+		Table:   "younggee_sketch_photo",
+		Columns: younggeeSketchPhotoColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeSketchPhotoDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeSketchPhotoDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeSketchPhotoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 81 - 0
app/dao/internal/younggee_talent_bank.go

@@ -0,0 +1,81 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeTalentBankDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeTalentBankDao struct {
+	Table   string                    // Table is the underlying table name of the DAO.
+	Group   string                    // Group is the database configuration group name of current DAO.
+	Columns YounggeeTalentBankColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeTalentBankColumns defines and stores column names for table younggee_talent_bank.
+type YounggeeTalentBankColumns struct {
+	Id              string // id
+	TalentId        string // 达人id,取younggee_talent_info表中的id字段值
+	Name            string // 户主姓名
+	Phone           string // 手机号
+	BankId          string // 银行id,取info_bank表中的bank_id字段值
+	BankCardNumber  string // 银行卡号
+	BankOpenAddress string // 开户地址区域码,取info_region表中的self_code字段值
+	AlipayNumber    string // 支付宝账号
+	AlipayRealName  string // 支付宝真实姓名
+	AlipayCardId    string // 支付宝身份证号
+	BankCardId      string // 银行卡身份证号
+	CreateAt        string //
+	UpdateAt        string //
+}
+
+//  younggeeTalentBankColumns holds the columns for table younggee_talent_bank.
+var younggeeTalentBankColumns = YounggeeTalentBankColumns{
+	Id:              "id",
+	TalentId:        "talent_id",
+	Name:            "name",
+	Phone:           "phone",
+	BankId:          "bank_id",
+	BankCardNumber:  "bank_card_number",
+	BankOpenAddress: "bank_open_address",
+	AlipayNumber:    "alipay_number",
+	AlipayRealName:  "alipay_real_name",
+	AlipayCardId:    "alipay_card_id",
+	BankCardId:      "bank_card_id",
+	CreateAt:        "create_at",
+	UpdateAt:        "update_at",
+}
+
+// NewYounggeeTalentBankDao creates and returns a new DAO object for table data access.
+func NewYounggeeTalentBankDao() *YounggeeTalentBankDao {
+	return &YounggeeTalentBankDao{
+		Group:   "default",
+		Table:   "younggee_talent_bank",
+		Columns: younggeeTalentBankColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeTalentBankDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeTalentBankDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeTalentBankDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 63 - 0
app/dao/internal/younggee_task_log.go

@@ -0,0 +1,63 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeTaskLogDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeTaskLogDao struct {
+	Table   string                 // Table is the underlying table name of the DAO.
+	Group   string                 // Group is the database configuration group name of current DAO.
+	Columns YounggeeTaskLogColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeTaskLogColumns defines and stores column names for table younggee_task_log.
+type YounggeeTaskLogColumns struct {
+	LogId   string // 任务日志id
+	TaskId  string // 任务id
+	Content string // 内容
+	LogAt   string // 时间
+}
+
+//  younggeeTaskLogColumns holds the columns for table younggee_task_log.
+var younggeeTaskLogColumns = YounggeeTaskLogColumns{
+	LogId:   "log_id",
+	TaskId:  "task_id",
+	Content: "content",
+	LogAt:   "log_at",
+}
+
+// NewYounggeeTaskLogDao creates and returns a new DAO object for table data access.
+func NewYounggeeTaskLogDao() *YounggeeTaskLogDao {
+	return &YounggeeTaskLogDao{
+		Group:   "default",
+		Table:   "younggee_task_log",
+		Columns: younggeeTaskLogColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeTaskLogDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeTaskLogDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeTaskLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 59 - 0
app/dao/internal/younggee_task_message.go

@@ -0,0 +1,59 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeTaskMessageDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeTaskMessageDao struct {
+	Table   string                     // Table is the underlying table name of the DAO.
+	Group   string                     // Group is the database configuration group name of current DAO.
+	Columns YounggeeTaskMessageColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeTaskMessageColumns defines and stores column names for table younggee_task_message.
+type YounggeeTaskMessageColumns struct {
+	Id   string // 银行id
+	Name string // 银行名称
+}
+
+//  younggeeTaskMessageColumns holds the columns for table younggee_task_message.
+var younggeeTaskMessageColumns = YounggeeTaskMessageColumns{
+	Id:   "id",
+	Name: "name",
+}
+
+// NewYounggeeTaskMessageDao creates and returns a new DAO object for table data access.
+func NewYounggeeTaskMessageDao() *YounggeeTaskMessageDao {
+	return &YounggeeTaskMessageDao{
+		Group:   "default",
+		Table:   "younggee_task_message",
+		Columns: younggeeTaskMessageColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeTaskMessageDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeTaskMessageDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeTaskMessageDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 75 - 0
app/dao/internal/younggee_withdraw_record.go

@@ -0,0 +1,75 @@
+// ==========================================================================
+// Code generated by GoFrame CLI tool. DO NOT EDIT.
+// ==========================================================================
+
+package internal
+
+import (
+	"context"
+	"github.com/gogf/gf/database/gdb"
+	"github.com/gogf/gf/frame/g"
+)
+
+// YounggeeWithdrawRecordDao is the manager for logic model data accessing and custom defined data operations functions management.
+type YounggeeWithdrawRecordDao struct {
+	Table   string                        // Table is the underlying table name of the DAO.
+	Group   string                        // Group is the database configuration group name of current DAO.
+	Columns YounggeeWithdrawRecordColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
+}
+
+// YounggeeWithdrawRecordColumns defines and stores column names for table younggee_withdraw_record.
+type YounggeeWithdrawRecordColumns struct {
+	WithdrawId     string // 提现订单ID
+	TalentId       string // 达人id
+	WithdrawAmount string // 提现金额
+	AmountPayable  string // 应付金额
+	TaskIdList     string // 该提现订单包含的task_id列表
+	ReceiveInfo    string // 收款信息
+	Status         string // 提现状态:1为提现待确认,2为已提现
+	BankType       string // 到账方式,1为支付宝,2为银行卡
+	SubmitAt       string // 申请提交时间
+	WithdrawAt     string // 提现时间
+}
+
+//  younggeeWithdrawRecordColumns holds the columns for table younggee_withdraw_record.
+var younggeeWithdrawRecordColumns = YounggeeWithdrawRecordColumns{
+	WithdrawId:     "withdraw_id",
+	TalentId:       "talent_id",
+	WithdrawAmount: "withdraw_amount",
+	AmountPayable:  "amount_payable",
+	TaskIdList:     "task_id_list",
+	ReceiveInfo:    "receive_info",
+	Status:         "status",
+	BankType:       "bank_type",
+	SubmitAt:       "submit_at",
+	WithdrawAt:     "withdraw_at",
+}
+
+// NewYounggeeWithdrawRecordDao creates and returns a new DAO object for table data access.
+func NewYounggeeWithdrawRecordDao() *YounggeeWithdrawRecordDao {
+	return &YounggeeWithdrawRecordDao{
+		Group:   "default",
+		Table:   "younggee_withdraw_record",
+		Columns: younggeeWithdrawRecordColumns,
+	}
+}
+
+// DB retrieves and returns the underlying raw database management object of current DAO.
+func (dao *YounggeeWithdrawRecordDao) DB() gdb.DB {
+	return g.DB(dao.Group)
+}
+
+// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
+func (dao *YounggeeWithdrawRecordDao) Ctx(ctx context.Context) *gdb.Model {
+	return dao.DB().Model(dao.Table).Safe().Ctx(ctx)
+}
+
+// Transaction wraps the transaction logic using function f.
+// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
+// It commits the transaction and returns nil if function f returns nil.
+//
+// Note that, you should not Commit or Rollback the transaction in function f
+// as it is automatically handled by this function.
+func (dao *YounggeeWithdrawRecordDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
+	return dao.Ctx(ctx).Transaction(ctx, f)
+}

+ 24 - 0
app/dao/youngee_contract_info.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// youngeeContractInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type youngeeContractInfoDao struct {
+	*internal.YoungeeContractInfoDao
+}
+
+var (
+	// YoungeeContractInfo is globally public accessible object for table youngee_contract_info operations.
+	YoungeeContractInfo = youngeeContractInfoDao{
+		internal.NewYoungeeContractInfoDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/youngee_contract_set.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// youngeeContractSetDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type youngeeContractSetDao struct {
+	*internal.YoungeeContractSetDao
+}
+
+var (
+	// YoungeeContractSet is globally public accessible object for table youngee_contract_set operations.
+	YoungeeContractSet = youngeeContractSetDao{
+		internal.NewYoungeeContractSetDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/youngee_task_logistics.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// youngeeTaskLogisticsDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type youngeeTaskLogisticsDao struct {
+	*internal.YoungeeTaskLogisticsDao
+}
+
+var (
+	// YoungeeTaskLogistics is globally public accessible object for table youngee_task_logistics operations.
+	YoungeeTaskLogistics = youngeeTaskLogisticsDao{
+		internal.NewYoungeeTaskLogisticsDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/youngee_task_pay.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// youngeeTaskPayDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type youngeeTaskPayDao struct {
+	*internal.YoungeeTaskPayDao
+}
+
+var (
+	// YoungeeTaskPay is globally public accessible object for table youngee_task_pay operations.
+	YoungeeTaskPay = youngeeTaskPayDao{
+		internal.NewYoungeeTaskPayDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/younggee_data_info.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeDataInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeDataInfoDao struct {
+	*internal.YounggeeDataInfoDao
+}
+
+var (
+	// YounggeeDataInfo is globally public accessible object for table younggee_data_info operations.
+	YounggeeDataInfo = younggeeDataInfoDao{
+		internal.NewYounggeeDataInfoDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/younggee_invoice_address.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeInvoiceAddressDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeInvoiceAddressDao struct {
+	*internal.YounggeeInvoiceAddressDao
+}
+
+var (
+	// YounggeeInvoiceAddress is globally public accessible object for table younggee_invoice_address operations.
+	YounggeeInvoiceAddress = younggeeInvoiceAddressDao{
+		internal.NewYounggeeInvoiceAddressDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/younggee_invoice_info.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeInvoiceInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeInvoiceInfoDao struct {
+	*internal.YounggeeInvoiceInfoDao
+}
+
+var (
+	// YounggeeInvoiceInfo is globally public accessible object for table younggee_invoice_info operations.
+	YounggeeInvoiceInfo = younggeeInvoiceInfoDao{
+		internal.NewYounggeeInvoiceInfoDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/younggee_invoice_record.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeInvoiceRecordDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeInvoiceRecordDao struct {
+	*internal.YounggeeInvoiceRecordDao
+}
+
+var (
+	// YounggeeInvoiceRecord is globally public accessible object for table younggee_invoice_record operations.
+	YounggeeInvoiceRecord = younggeeInvoiceRecordDao{
+		internal.NewYounggeeInvoiceRecordDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/younggee_link_info.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeLinkInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeLinkInfoDao struct {
+	*internal.YounggeeLinkInfoDao
+}
+
+var (
+	// YounggeeLinkInfo is globally public accessible object for table younggee_link_info operations.
+	YounggeeLinkInfo = younggeeLinkInfoDao{
+		internal.NewYounggeeLinkInfoDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/younggee_message_info.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeMessageInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeMessageInfoDao struct {
+	*internal.YounggeeMessageInfoDao
+}
+
+var (
+	// YounggeeMessageInfo is globally public accessible object for table younggee_message_info operations.
+	YounggeeMessageInfo = younggeeMessageInfoDao{
+		internal.NewYounggeeMessageInfoDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/younggee_recharge_record.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeRechargeRecordDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeRechargeRecordDao struct {
+	*internal.YounggeeRechargeRecordDao
+}
+
+var (
+	// YounggeeRechargeRecord is globally public accessible object for table younggee_recharge_record operations.
+	YounggeeRechargeRecord = younggeeRechargeRecordDao{
+		internal.NewYounggeeRechargeRecordDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/younggee_script_info.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeScriptInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeScriptInfoDao struct {
+	*internal.YounggeeScriptInfoDao
+}
+
+var (
+	// YounggeeScriptInfo is globally public accessible object for table younggee_script_info operations.
+	YounggeeScriptInfo = younggeeScriptInfoDao{
+		internal.NewYounggeeScriptInfoDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/younggee_sketch_info.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeSketchInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeSketchInfoDao struct {
+	*internal.YounggeeSketchInfoDao
+}
+
+var (
+	// YounggeeSketchInfo is globally public accessible object for table younggee_sketch_info operations.
+	YounggeeSketchInfo = younggeeSketchInfoDao{
+		internal.NewYounggeeSketchInfoDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/younggee_sketch_photo.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeSketchPhotoDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeSketchPhotoDao struct {
+	*internal.YounggeeSketchPhotoDao
+}
+
+var (
+	// YounggeeSketchPhoto is globally public accessible object for table younggee_sketch_photo operations.
+	YounggeeSketchPhoto = younggeeSketchPhotoDao{
+		internal.NewYounggeeSketchPhotoDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 28 - 0
app/dao/younggee_talent_bank.go

@@ -0,0 +1,28 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeTalentBankDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeTalentBankDao struct {
+	*internal.YounggeeTalentBankDao
+}
+
+var (
+	// YounggeeTalentBank is globally public accessible object for table younggee_talent_bank operations.
+	YounggeeTalentBank younggeeTalentBankDao
+)
+
+func init() {
+	YounggeeTalentBank = younggeeTalentBankDao{
+		internal.NewYounggeeTalentBankDao(),
+	}
+}
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/younggee_task_log.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeTaskLogDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeTaskLogDao struct {
+	*internal.YounggeeTaskLogDao
+}
+
+var (
+	// YounggeeTaskLog is globally public accessible object for table younggee_task_log operations.
+	YounggeeTaskLog = younggeeTaskLogDao{
+		internal.NewYounggeeTaskLogDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/younggee_task_message.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeTaskMessageDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeTaskMessageDao struct {
+	*internal.YounggeeTaskMessageDao
+}
+
+var (
+	// YounggeeTaskMessage is globally public accessible object for table younggee_task_message operations.
+	YounggeeTaskMessage = younggeeTaskMessageDao{
+		internal.NewYounggeeTaskMessageDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 24 - 0
app/dao/younggee_withdraw_record.go

@@ -0,0 +1,24 @@
+// =================================================================================
+// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
+// =================================================================================
+
+package dao
+
+import (
+	"youngmini_server/app/dao/internal"
+)
+
+// younggeeWithdrawRecordDao is the manager for logic model data accessing and custom defined data operations functions management.
+// You can define custom methods on it to extend its functionality as you wish.
+type younggeeWithdrawRecordDao struct {
+	*internal.YounggeeWithdrawRecordDao
+}
+
+var (
+	// YounggeeWithdrawRecord is globally public accessible object for table younggee_withdraw_record operations.
+	YounggeeWithdrawRecord = younggeeWithdrawRecordDao{
+		internal.NewYounggeeWithdrawRecordDao(),
+	}
+)
+
+// Fill with you ideas below.

+ 438 - 46
app/model/model.go

@@ -63,23 +63,112 @@ type Brand struct {
 
 // Enterprise is the golang structure for table enterprise.
 type Enterprise struct {
-	EnterpriseId     int         `orm:"enterprise_id,primary" json:"enterprise_id"`     // 企业id
+	EnterpriseId     string      `orm:"enterprise_id,primary" json:"enterprise_id"`     // 企业id,用户ID的生成规则为:1(企业用户代码)+分秒数字+四位随机数字
 	Industry         int         `orm:"industry"              json:"industry"`          // 行业,1-14分别代表能源、化工、材料、机械设备/军工、企业服务/造纸印刷、运输设备、旅游酒店、媒体/信息通信服务、批发/零售、消费品、卫生保健/医疗、金融、建材/建筑/房地产、公共事业
 	BusinessName     string      `orm:"business_name"         json:"business_name"`     // 公司或组织名称
 	UserId           int         `orm:"user_id,unique"        json:"user_id"`           // 对应用户id
-	Balance          int         `orm:"balance"               json:"balance"`           // 账户余额
-	FrozenBalance    int         `orm:"frozen_balance"        json:"frozen_balance"`    // 冻结余额
-	AvailableBalance int         `orm:"available_balance"     json:"available_balance"` // 可用余额
+	Balance          float64     `orm:"balance"               json:"balance"`           // 账户余额
+	FrozenBalance    float64     `orm:"frozen_balance"        json:"frozen_balance"`    // 冻结余额
+	AvailableBalance float64     `orm:"available_balance"     json:"available_balance"` // 可用余额
+	BillableAmount   float64     `orm:"billable_amount"       json:"billable_amount"`   // 可开票金额
+	Invoicing        float64     `orm:"invoicing"             json:"invoicing"`         // 开票中金额
+	Recharging       float64     `orm:"recharging"            json:"recharging"`        // 充值中金额
 	CreatedAt        *gtime.Time `orm:"created_at"            json:"created_at"`        // 创建时间
 	UpdatedAt        *gtime.Time `orm:"updated_at"            json:"updated_at"`        // 更新时间
 }
 
+// EnterprisePayRecord is the golang structure for table enterprise_pay_record.
+type EnterprisePayRecord struct {
+	Id           int         `orm:"id,primary"    json:"id"`            // id
+	Payment      float64     `orm:"payment"       json:"payment"`       // 交易金额
+	Balance      float64     `orm:"balance"       json:"balance"`       // 交易后账户可用余额
+	PayType      int         `orm:"pay_type"      json:"pay_type"`      // 交易类型,1表示充值,2表示支付
+	RechargeType int         `orm:"recharge_type" json:"recharge_type"` // 充值方式,1表示在线交易,2表示对公转账
+	EnterpriseId string      `orm:"enterprise_id" json:"enterprise_id"` // 企业id
+	PayAt        *gtime.Time `orm:"pay_at"        json:"pay_at"`        // 交易时间
+	ProjectId    string      `orm:"project_id"    json:"project_id"`    // 支付的项目id
+}
+
+// InfoAutoDefaultHandle is the golang structure for table info_auto_default_handle.
+type InfoAutoDefaultHandle struct {
+	AutoDefaultId          int `orm:"auto_default_id,primary"   json:"auto_default_id"`           // 自动处理规则id
+	SketchReplaceNotUpload int `orm:"sketch_replace_not_upload" json:"sketch_replace_not_upload"` // 初稿违约 产品置换 未上传初稿
+	SketchReplaceTimeOut   int `orm:"sketch_replace_time_out"   json:"sketch_replace_time_out"`   // 初稿违约 产品置换 超时未上传初稿
+	SketchOtherNotUpload   int `orm:"sketch_other_not_upload"   json:"sketch_other_not_upload"`   // 初稿违约 自报价、固定稿费 未上传初稿
+	SketchOtherTimeOut     int `orm:"sketch_other_time_out"     json:"sketch_other_time_out"`     // 初稿违约 自报价、固定稿费 超时未上传初稿
+	ScriptReplaceNotUpload int `orm:"script_replace_not_upload" json:"script_replace_not_upload"` // 脚本违约 产品置换 未上传脚本
+	ScriptReplaceTimeOut   int `orm:"script_replace_time_out"   json:"script_replace_time_out"`   // 脚本违约 产品置换 超时未上传脚本
+	ScriptOtherNotUpload   int `orm:"script_other_not_upload"   json:"script_other_not_upload"`   // 脚本违约 自报价、固定稿费 未上传脚本
+	ScriptOtherTimeOut     int `orm:"script_other_time_out"     json:"script_other_time_out"`     // 脚本违约 自报价、固定稿费 超时未上传脚本
+	LinkReplaceNotUpload   int `orm:"link_replace_not_upload"   json:"link_replace_not_upload"`   // 链接违约 产品置换 未上传链接
+	LinkReplaceTimeOut     int `orm:"link_replace_time_out"     json:"link_replace_time_out"`     // 链接违约 产品置换 超时未上传链接
+	LinkOtherNotUpload     int `orm:"link_other_not_upload"     json:"link_other_not_upload"`     // 链接违约 自报价、固定稿费 未上传链接
+	LinkOtherTimeOut       int `orm:"link_other_time_out"       json:"link_other_time_out"`       // 链接违约 自报价、固定稿费 超时未上传链接
+	DataReplaceNotUpload   int `orm:"data_replace_not_upload"   json:"data_replace_not_upload"`   // 数据违约 产品置换 未上传数据
+	DataReplaceTimeOut     int `orm:"data_replace_time_out"     json:"data_replace_time_out"`     // 数据违约 产品置换 超时未上传数据
+	DataOtherNotUpload     int `orm:"data_other_not_upload"     json:"data_other_not_upload"`     // 数据违约 自报价、固定稿费 未上传数据
+	DataOtherTimeOut       int `orm:"data_other_time_out"       json:"data_other_time_out"`       // 数据违约 自报价、固定稿费 超时未上传数据
+}
+
+// InfoAutoTask is the golang structure for table info_auto_task.
+type InfoAutoTask struct {
+	AutoTaskId        int `orm:"auto_task_id,primary" json:"auto_task_id"`         // 自动处理规则id
+	SignInOffline     int `orm:"sign_in_offline"      json:"sign_in_offline"`      // 线下探店自动签收时间
+	SignInVirtual     int `orm:"sign_in_virtual"      json:"sign_in_virtual"`      // 虚拟产品测评自动签收时间
+	ReviewInMv        int `orm:"review_in_mv"         json:"review_in_mv"`         // 视频形式的审稿处理
+	ReviewUnlimited   int `orm:"review_unlimited"     json:"review_unlimited"`     // 不限形式的审稿处理
+	Postreview        int `orm:"postreview"           json:"postreview"`           // 发布审核自动处理
+	CaseClose         int `orm:"case_close"           json:"case_close"`           // 结案自动处理
+	Invalid           int `orm:"invalid"              json:"invalid"`              // 失效自动处理
+	DraftDefaultInPic int `orm:"draft_default_in_pic" json:"draft_default_in_pic"` // 图片初稿违约自动处理
+	DraftDefaultInMv  int `orm:"draft_default_in_mv"  json:"draft_default_in_mv"`  // 视频初稿违约自动处理
+	ScriptDefault     int `orm:"script_default"       json:"script_default"`       // 脚本违约自动处理
+	LinkBreach        int `orm:"link_breach"          json:"link_breach"`          // 链接违约自动处理
+	CaseCloseDefault  int `orm:"case_close_default"   json:"case_close_default"`   // 结案违约自动处理
+}
+
+// InfoBank is the golang structure for table info_bank.
+type InfoBank struct {
+	Id   int    `orm:"id,primary" json:"id"`   // 银行id
+	Name string `orm:"name"       json:"name"` // 银行名称
+}
+
+// InfoMessage is the golang structure for table info_message.
+type InfoMessage struct {
+	Id   int    `orm:"id,primary" json:"id"`   // 消息类型id
+	Text string `orm:"text"       json:"text"` // 消息内容
+}
+
+// InfoPricingStrategy is the golang structure for table info_pricing_strategy.
+type InfoPricingStrategy struct {
+	Id            int         `orm:"id,primary"     json:"id"`             // id
+	ProjectType   int         `orm:"project_type"   json:"project_type"`   // 项目类型,0表示不限,1为全流程项目
+	StrategyId    string      `orm:"strategyId"     json:"strategy_id"`    // 定价策略编号
+	FeeForm       int         `orm:"fee_form"       json:"fee_form"`       // 稿费形式,1,2,3分别代表产品置换、固定稿费、自报价
+	Platform      int         `orm:"platform"       json:"platform"`       // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
+	FansLow       int         `orm:"fans_low"       json:"fans_low"`       // 对应粉丝量下限
+	FansUp        int         `orm:"fans_up"        json:"fans_up"`        // 对应粉丝量上限
+	ServiceCharge float64     `orm:"service_charge" json:"service_charge"` // 服务费,稿费形式为产品置换时填写,可以为空
+	BaseOffer     float64     `orm:"base_offer"     json:"base_offer"`     // 基础报价
+	Status        int         `orm:"status"         json:"status"`         // 定价策略当前状态,0表示正常,1表示禁用
+	ServiceRate   int         `orm:"service_rate"   json:"service_rate"`   // 服务费率*1000,稿费形式为固定稿费和自报价时填写,可以为空
+	UpdateId      int         `orm:"update_id"      json:"update_id"`      // 修改管理人员id,对应user表中主键
+	UpdateAt      *gtime.Time `orm:"update_at"      json:"update_at"`      // 修改时间
+	CreateAt      *gtime.Time `orm:"create_at"      json:"create_at"`      // 创建时间
+}
+
 // InfoProductClassify is the golang structure for table info_product_classify.
 type InfoProductClassify struct {
 	ClassifyId int    `orm:"classify_id,primary" json:"classify_id"` // 分类id
 	Classify   string `orm:"classify"            json:"classify"`    // 分类名
 }
 
+// InfoProductType is the golang structure for table info_product_type.
+type InfoProductType struct {
+	ProductTypeId int    `orm:"product_type_id,primary" json:"product_type_id"` // 商品类型id
+	ProductType   string `orm:"product_type"            json:"product_type"`    // 商品类型
+}
+
 // InfoRegion is the golang structure for table info_region.
 type InfoRegion struct {
 	RegionId    uint   `orm:"region_id,primary" json:"region_id"`    //
@@ -107,6 +196,12 @@ type InfoTalentSkinType struct {
 	SkinTypeDescribe string `orm:"skin_type_describe" json:"skin_type_describe"` //
 }
 
+// InfoTaskStage is the golang structure for table info_task_stage.
+type InfoTaskStage struct {
+	TaskStageId int    `orm:"task_stage_id,primary" json:"task_stage_id"` // 任务阶段id
+	TaskStage   string `orm:"task_stage"            json:"task_stage"`    // 任务阶段
+}
+
 // InfoThirdPlatform is the golang structure for table info_third_platform.
 type InfoThirdPlatform struct {
 	PlatformId        uint   `orm:"platform_id,primary" json:"platform_id"`         // 平台id,主键
@@ -416,7 +511,7 @@ type Product struct {
 	ProductName          string      `orm:"product_name"          json:"product_name"`          // 商品名称
 	ProductType          int         `orm:"product_type"          json:"product_type"`          // 商品类型 1:实物 ,2:商品,3:线下
 	ProductClassify      int         `orm:"product_classify"      json:"product_classify"`      // 商品分类id(info_product_classifyh表id)
-	ProductPrice         int64       `orm:"product_price"         json:"product_price"`         // 商品价格
+	ProductPrice         float64     `orm:"product_price"         json:"product_price"`         // 商品价格
 	ProductSpecification string      `orm:"product_specification" json:"product_specification"` // 商品规格
 	CreatedAt            *gtime.Time `orm:"created_at"            json:"created_at"`            // 创建时间
 	CreatPeople          string      `orm:"creat_people"          json:"creat_people"`          // 创建人
@@ -438,22 +533,39 @@ type ProductPhoto struct {
 
 // ProjectInfo is the golang structure for table project_info.
 type ProjectInfo struct {
-	ProjectId       int         `orm:"project_id,primary" json:"project_id"`       // 项目id
-	ProjectName     string      `orm:"project_name"       json:"project_name"`     // 项目名称
-	ProjectStatus   int         `orm:"project_status"     json:"project_status"`   // 项目状态,1-10分别代表创建中、待审核、审核通过、招募中、招募完毕、待支付、已支付、失效、执行中、已结案
-	ProjectType     int         `orm:"project_type"       json:"project_type"`     // 项目类型,1代表全流程项目,2代表专项项目
-	ProjectPlatform int         `orm:"project_platform"   json:"project_platform"` // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
-	ProjectForm     int         `orm:"project_form"       json:"project_form"`     // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
-	TalentType      string      `orm:"talent_type"        json:"talent_type"`      // 达人类型
-	RecruitDdl      *gtime.Time `orm:"recruit_ddl"        json:"recruit_ddl"`      // 招募截止时间
-	ContentType     int         `orm:"content_type"       json:"content_type"`     // 内容形式,1代表图文,2代表视频
-	ProjectDetail   string      `orm:"project_detail"     json:"project_detail"`   // 项目详情
-	ApplyNum        int         `orm:"apply_num"          json:"apply_num"`        // 报名人数
-	RecruitNum      int         `orm:"recruit_num"        json:"recruit_num"`      // 已招募人数
-	EnterpriseId    int         `orm:"enterprise_id"      json:"enterprise_id"`    // 所属企业id
-	ProductId       int         `orm:"product_id"         json:"product_id"`       // 关联商品id
-	CreatedAt       *gtime.Time `orm:"created_at"         json:"created_at"`       // 创建时间
-	UpdatedAt       *gtime.Time `orm:"updated_at"         json:"updated_at"`       // 修改时间
+	ProjectId         string      `orm:"project_id,primary"   json:"project_id"`           // 项目id
+	ProjectName       string      `orm:"project_name"         json:"project_name"`         // 项目名称
+	ProjectStatus     int         `orm:"project_status"       json:"project_status"`       // 项目状态,1-10分别代表创建中、待审核、审核通过、招募中、招募完毕、待支付、已支付、失效、执行中、已结案
+	ProjectType       int         `orm:"project_type"         json:"project_type"`         // 项目类型,1代表全流程项目,2代表专项项目
+	ProjectPlatform   int         `orm:"project_platform"     json:"project_platform"`     // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
+	ProjectForm       int         `orm:"project_form"         json:"project_form"`         // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
+	TalentType        string      `orm:"talent_type"          json:"talent_type"`          // 达人类型
+	RecruitDdl        *gtime.Time `orm:"recruit_ddl"          json:"recruit_ddl"`          // 招募截止时间
+	ContentType       int         `orm:"content_type"         json:"content_type"`         // 内容形式,1代表图文,2代表视频
+	ProjectDetail     string      `orm:"project_detail"       json:"project_detail"`       // 项目详情
+	ApplyNum          int         `orm:"apply_num"            json:"apply_num"`            // 报名人数
+	RecruitNum        int         `orm:"recruit_num"          json:"recruit_num"`          // 已招募人数
+	EnterpriseId      string      `orm:"enterprise_id"        json:"enterprise_id"`        // 所属企业id
+	ProductId         int         `orm:"product_id"           json:"product_id"`           // 关联商品id
+	CreatedAt         *gtime.Time `orm:"created_at"           json:"created_at"`           // 创建时间
+	UpdatedAt         *gtime.Time `orm:"updated_at"           json:"updated_at"`           // 修改时间
+	FeeForm           string      `orm:"fee_form"             json:"fee_form"`             // 稿费形式列表
+	AutoFailAt        *gtime.Time `orm:"auto_fail_at"         json:"auto_fail_at"`         // 失效自动处理时间
+	AutoTaskId        int         `orm:"auto_task_id"         json:"auto_task_id"`         // 定时任务id
+	AutoDefaultId     int         `orm:"auto_default_id"      json:"auto_default_id"`      // 违约状态id
+	PaymentAmount     float64     `orm:"payment_amount"       json:"payment_amount"`       // 支付金额
+	PayAt             *gtime.Time `orm:"pay_at"               json:"pay_at"`               // 支付时间
+	AutoScriptBreakAt *gtime.Time `orm:"auto_script_break_at" json:"auto_script_break_at"` // 脚本违约自动处理时间
+	AutoSketchBreakAt *gtime.Time `orm:"auto_sketch_break_at" json:"auto_sketch_break_at"` // 初稿违约自动处理时间
+	FailReason        int         `orm:"fail_reason"          json:"fail_reason"`          // 失效原因,1、2分别表示逾期未支付、项目存在风险
+	PassAt            *gtime.Time `orm:"pass_at"              json:"pass_at"`              // 审核通过时间
+	FinishAt          *gtime.Time `orm:"finish_at"            json:"finish_at"`            // 结案时间
+	EstimatedCost     float64     `orm:"estimated_cost"       json:"estimated_cost"`       // 预估成本
+	IsRead            int         `orm:"is_read"              json:"is_read"`              // 是否已读
+	SettlementAmount  float64     `orm:"settlement_amount"    json:"settlement_amount"`    // 结算金额
+	ProductSnap       string      `orm:"product_snap"         json:"product_snap"`         // 商品信息快照
+	ProductPhotoSnap  string      `orm:"product_photo_snap"   json:"product_photo_snap"`   // 商品图片快照
+	SubmitAt          *gtime.Time `orm:"submit_at"            json:"submit_at"`            // 提交审核时间
 }
 
 // ProjectPhoto is the golang structure for table project_photo.
@@ -461,7 +573,7 @@ type ProjectPhoto struct {
 	ProjectPhotoId int         `orm:"project_photo_id,primary" json:"project_photo_id"` // 项目图片id
 	PhotoUrl       string      `orm:"photo_url"                json:"photo_url"`        // 图片url
 	PhotoUid       string      `orm:"photo_uid"                json:"photo_uid"`        //
-	ProjectId      int         `orm:"project_id"               json:"project_id"`       // 所属项目id
+	ProjectId      string      `orm:"project_id"               json:"project_id"`       // 所属项目id
 	CreatedAt      *gtime.Time `orm:"created_at"               json:"created_at"`       // 创建时间
 }
 
@@ -494,14 +606,29 @@ type RTalentPlatformTable struct {
 
 // RecruitStrategy is the golang structure for table recruit_strategy.
 type RecruitStrategy struct {
-	RecruitStrategyId int `orm:"recruit_strategy_id,primary" json:"recruit_strategy_id"` // 招募策略id
-	FeeForm           int `orm:"fee_form"                    json:"fee_form"`            // 稿费形式,1-3分别代表产品置换、固定稿费、自报价
-	StrategyId        int `orm:"strategy_id"                 json:"strategy_id"`         // 策略id
-	FollowersLow      int `orm:"followers_low"               json:"followers_low"`       // 达人粉丝数下限
-	FollowersUp       int `orm:"followers_up"                json:"followers_up"`        // 达人粉丝数上限
-	RecruitNumber     int `orm:"recruit_number"              json:"recruit_number"`      // 招募数量
-	Offer             int `orm:"offer"                       json:"offer"`               // 报价
-	ProjectId         int `orm:"project_id"                  json:"project_id"`          // 所属项目id
+	RecruitStrategyId int     `orm:"recruit_strategy_id,primary" json:"recruit_strategy_id"` // 招募策略id
+	FeeForm           int     `orm:"fee_form"                    json:"fee_form"`            // 稿费形式,1-3分别代表产品置换、固定稿费、自报价
+	StrategyId        int     `orm:"strategy_id"                 json:"strategy_id"`         // 策略id
+	FollowersLow      int     `orm:"followers_low"               json:"followers_low"`       // 达人粉丝数下限
+	FollowersUp       int     `orm:"followers_up"                json:"followers_up"`        // 达人粉丝数上限
+	RecruitNumber     int     `orm:"recruit_number"              json:"recruit_number"`      // 招募数量
+	Offer             float64 `orm:"offer"                       json:"offer"`               // 报价
+	TOffer            float64 `orm:"t_offer"                     json:"t_offer"`             // 达人所见报价
+	ProjectId         string  `orm:"project_id"                  json:"project_id"`          // 所属项目id
+	ServiceCharge     float64 `orm:"service_charge"              json:"service_charge"`      // 平台服务费,稿费形式为产品置换时必填
+	SelectedNumber    int     `orm:"selected_number"             json:"selected_number"`     // 已选数量,被企业选择的达人数量
+	WaitingNumber     int     `orm:"waiting_number"              json:"waiting_number"`      // 待发货
+	DeliveredNumber   int     `orm:"delivered_number"            json:"delivered_number"`    // 已发货
+	SignedNumber      int     `orm:"signed_number"               json:"signed_number"`       // 已签收
+	MaxOffer          int     `orm:"max_offer"                   json:"max_offer"`           // 报价上限
+	MinOffer          int     `orm:"min_offer"                   json:"min_offer"`           // 报价下限
+	FanNumber         int     `orm:"fan_number"                  json:"fan_number"`          // 总粉丝量
+	PlayNumber        int     `orm:"play_number"                 json:"play_number"`         // 总播放量
+	LikeNumber        int     `orm:"like_number"                 json:"like_number"`         // 总点赞数
+	CollectNumber     int     `orm:"collect_number"              json:"collect_number"`      // 总收藏量
+	CommentNumber     int     `orm:"comment_number"              json:"comment_number"`      // 总评论数
+	FinishNumber      int     `orm:"finish_number"               json:"finish_number"`       // 结案数量
+	TotalOffer        float64 `orm:"total_offer"                 json:"total_offer"`         // 支付合计
 }
 
 // TalentDeliveryAddress is the golang structure for table talent_delivery_address.
@@ -761,6 +888,30 @@ type WxPayOrder struct {
 	Desc                      string      `orm:"desc"                         json:"desc"`                         // 描述
 }
 
+// YoungeeContractInfo is the golang structure for table youngee_contract_info.
+type YoungeeContractInfo struct {
+	ContractId       int         `orm:"contract_id,primary" json:"contract_id"`       // 合约id
+	TaskId           string      `orm:"task_id"             json:"task_id"`           // 任务id
+	ProjectId        string      `orm:"project_id"          json:"project_id"`        // 任务所属项目id
+	BreakType        int         `orm:"break_type"          json:"break_type"`        // 违约类型(4类严重违约):1(脚本)2(初稿)3(链接)4(数据)
+	SettlementAmount float64     `orm:"settlement_amount"   json:"settlement_amount"` // 应结算金额
+	BreakAt          *gtime.Time `orm:"break_at"            json:"break_at"`          // 违约时间
+	HandleAt         *gtime.Time `orm:"handle_at"           json:"handle_at"`         // 处理时间
+	TerminateAt      *gtime.Time `orm:"terminate_at"        json:"terminate_at"`      // 解约申请时间
+	DefaultStatus    int         `orm:"default_status"      json:"default_status"`    // 违约处理状态1-5分别表示为违约、已重新上传、解约待处理、解约已处理(驳回)、解约已处理(解约)
+}
+
+// YoungeeContractSet is the golang structure for table youngee_contract_set.
+type YoungeeContractSet struct {
+	BreakManageId        int         `orm:"break_manage_id,primary" json:"break_manage_id"`        // 违约自动管理策略id
+	ProejctType          int         `orm:"proejct_type"            json:"proejct_type"`           // 项目类型:1:全流程 2:专项
+	ProjectForm          int         `orm:"project_form"            json:"project_form"`           // 任务形式:1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
+	FeeForm              int         `orm:"fee_form"                json:"fee_form"`               // 稿费形式:1,2,3分别代表产品置换、固定稿费、自报价
+	BreakType            *gtime.Time `orm:"break_type"              json:"break_type"`             // 违约类型:1-4:初稿、脚本、链接和数据
+	NouploadCutRatio     *gtime.Time `orm:"noupload_cut_ratio"      json:"noupload_cut_ratio"`     // 未上传 扣款比例
+	NotimeuploadCutRatio *gtime.Time `orm:"notimeupload_cut_ratio"  json:"notimeupload_cut_ratio"` // 未按照规定时间上传脚本 扣款比例
+}
+
 // YoungeePlatformAccountInfo is the golang structure for table youngee_platform_account_info.
 type YoungeePlatformAccountInfo struct {
 	AccountId          int         `orm:"account_id,primary"    json:"account_id"`            //
@@ -774,7 +925,7 @@ type YoungeePlatformAccountInfo struct {
 	Deleted            int         `orm:"deleted"               json:"deleted"`               // 是否被解绑
 	UpdatedAt          *gtime.Time `orm:"updated_at"            json:"updated_at"`            // 更新时间
 	UpdatedPerson      int         `orm:"updated_person"        json:"updated_person"`        // 更新人,0代表本人,1代表管理员
-	UpdatedAdminId     int         `orm:"updated_admin_id"      json:"updated_admin_id"`      // 上一次更新的管理员id
+	UpdatedAdminId     string      `orm:"updated_admin_id"      json:"updated_admin_id"`      // 上一次更新的管理员id
 }
 
 // YoungeeTalentDeliveryAddress is the golang structure for table youngee_talent_delivery_address.
@@ -786,7 +937,6 @@ type YoungeeTalentDeliveryAddress struct {
 	PhoneNumber  string `orm:"phone_number"       json:"phone_number"`  // 联系电话
 	ReceiverName string `orm:"receiver_name"      json:"receiver_name"` // 收货人名字
 	DefaultTag   int    `orm:"default_tag"        json:"default_tag"`   // 是否默认收货地址
-	MailCode     string `orm:"mail_code"          json:"mail_code"`     // 邮政编码
 }
 
 // YoungeeTalentInfo is the golang structure for table youngee_talent_info.
@@ -794,17 +944,16 @@ type YoungeeTalentInfo struct {
 	Id                string      `orm:"id,primary"          json:"id"`                  // 达人id
 	TalentWxOpenid    string      `orm:"talent_wx_openid"    json:"talent_wx_openid"`    // 达人的微信openid
 	TalentWxNickname  string      `orm:"talent_wx_nickname"  json:"talent_wx_nickname"`  // 达人的微信昵称
-	TalentWxNumber    string      `orm:"talent_wx_number"    json:"talent_wx_number"`    // 达人微信号
-	Income            int64       `orm:"income"              json:"income"`              // 收益总数
-	Withdrawing       int64       `orm:"withdrawing"         json:"withdrawing"`         // 提现中金额
-	Canwithdraw       int64       `orm:"canwithdraw"         json:"canwithdraw"`         // 可提现金额
-	Withdrawed        int64       `orm:"withdrawed"          json:"withdrawed"`          // 已提现金额
-	TalentGender      int         `orm:"talent_gender"       json:"talent_gender"`       // 性别,0未知 1男 2女
+	Income            float64     `orm:"income"              json:"income"`              // 收益总数
+	Withdrawing       float64     `orm:"withdrawing"         json:"withdrawing"`         // 提现中金额
+	Canwithdraw       float64     `orm:"canwithdraw"         json:"canwithdraw"`         // 可提现金额
+	Withdrawed        float64     `orm:"withdrawed"          json:"withdrawed"`          // 已提现金额
 	TalentPhoneNumber string      `orm:"talent_phone_number" json:"talent_phone_number"` // 电话号码
 	TalentAgeBracket  int         `orm:"talent_age_bracket"  json:"talent_age_bracket"`  // 年龄段,取tallent_age_bracket表id
 	TalentNationality int         `orm:"talent_nationality"  json:"talent_nationality"`  // 国籍,取tallent_nationality表id
 	VisitStoreRegion  int         `orm:"visit_store_region"  json:"visit_store_region"`  // 探店区域,取region_info表中的self_code
 	IsBindInfo        uint        `orm:"is_bind_info"        json:"is_bind_info"`        // 是否填写个人资料
+	IsBindAccount     int         `orm:"is_bind_account"     json:"is_bind_account"`     // 是否绑定账号,1是0否
 	IsBindLocation    uint        `orm:"is_bind_location"    json:"is_bind_location"`    // 是否绑定收货地址
 	IsBindBank        uint        `orm:"is_bind_bank"        json:"is_bind_bank"`        // 是否绑定银行账户信息
 	InBlacklist       uint        `orm:"in_blacklist"        json:"in_blacklist"`        // 是否加入黑名单 0否 1是
@@ -814,24 +963,159 @@ type YoungeeTalentInfo struct {
 	TaskEnd           int         `orm:"task_end"            json:"task_end"`            // 结束任务数量
 	CreateDate        *gtime.Time `orm:"create_date"         json:"create_date"`         // 创建时间
 	LastLoginDate     *gtime.Time `orm:"last_login_date"     json:"last_login_date"`     // 最后登录时间
+	ApplyNum          int         `orm:"apply_num"           json:"apply_num"`           // 剩余申请次数(每天更新)
 }
 
 // YoungeeTaskInfo is the golang structure for table youngee_task_info.
 type YoungeeTaskInfo struct {
-	TaskId                 uint64      `orm:"task_id,primary"           json:"task_id"`                   // 任务id
-	ProjectId              int         `orm:"project_id"                json:"project_id"`                // 项目id
+	TaskId                 string      `orm:"task_id,primary"           json:"task_id"`                   // 任务id
+	ProjectId              string      `orm:"project_id"                json:"project_id"`                // 项目id
 	TalentId               string      `orm:"talent_id"                 json:"talent_id"`                 // 达人id
+	AccountId              int         `orm:"account_id"                json:"account_id"`                // 账号id
 	TalentPlatformInfoSnap string      `orm:"talent_platform_info_snap" json:"talent_platform_info_snap"` // 达人平台信息快照
 	TalentPersonalInfoSnap string      `orm:"talent_personal_info_snap" json:"talent_personal_info_snap"` // 达人个人信息快照
 	TalentPostAddrSnap     string      `orm:"talent_post_addr_snap"     json:"talent_post_addr_snap"`     // 收货地址快照
 	StrategyId             int         `orm:"strategy_id"               json:"strategy_id"`               // 报名选择的招募策略id
-	TaskReward             int64       `orm:"task_reward"               json:"task_reward"`               // 任务奖励金额
-	SettleAmount           int64       `orm:"settle_amount"             json:"settle_amount"`             // 待结算金额(任务奖励扣除违规扣款)
-	TaskStatus             int         `orm:"task_status"               json:"task_status"`               // 任务状态
+	TaskReward             float64     `orm:"task_reward"               json:"task_reward"`               // 达人报酬
+	SettleAmount           float64     `orm:"settle_amount"             json:"settle_amount"`             // 达人实际所得(扣除违约扣款)
+	AllPayment             float64     `orm:"all_payment"               json:"all_payment"`               // 企业支付
+	RealPayment            float64     `orm:"real_payment"              json:"real_payment"`              // 企业实际支付(扣除违约扣款)
+	ErrBreakRate           int         `orm:"err_break_rate"            json:"err_break_rate"`            // 未上传类型违约扣款比例,百分之
+	ScriptBreakRate        int         `orm:"script_break_rate"         json:"script_break_rate"`         // 脚本上传超时违约扣款比例,百分之
+	SketchBreakRate        int         `orm:"sketch_break_rate"         json:"sketch_break_rate"`         // 初稿上传超时违约扣款比例,百分之
+	LinkBreakRate          int         `orm:"link_break_rate"           json:"link_break_rate"`           // 链接上传超时违约扣款比例,百分之
+	DataBreakRate          int         `orm:"data_break_rate"           json:"data_break_rate"`           // 数据上传超时违约扣款比例,百分之
+	FeeForm                int         `orm:"fee_form"                  json:"fee_form"`                  // 稿费形式,1,2,3分别代表产品置换、固定稿费、自报价
+	ServiceCharge          float64     `orm:"service_charge"            json:"service_charge"`            // 服务费
+	ServiceRate            int         `orm:"service_rate"              json:"service_rate"`              // 服务费率,千分之
+	TaskStatus             int         `orm:"task_status"               json:"task_status"`               // 任务状态 1待选 2已选 3落选
+	TaskStage              int         `orm:"task_stage"                json:"task_stage"`                // 任务阶段,详情见info_task_stage表
 	CreateDate             *gtime.Time `orm:"create_date"               json:"create_date"`               // 创建时间
 	SelectDate             *gtime.Time `orm:"select_date"               json:"select_date"`               // 反选时间
-	CompleteStatus         int         `orm:"complete_status"           json:"complete_status"`           // 结束方式 1未结束 2正常结束 3反选失败 4被解约
+	DeliveryDate           *gtime.Time `orm:"delivery_date"             json:"delivery_date"`             // 发货时间
 	CompleteDate           *gtime.Time `orm:"complete_date"             json:"complete_date"`             // 结束时间
+	WithdrawDate           *gtime.Time `orm:"withdraw_date"             json:"withdraw_date"`             // 提现时间
+	CompleteStatus         int         `orm:"complete_status"           json:"complete_status"`           // 结束方式 1未结束 2正常结束 3反选失败 4被解约
+	LogisticsStatus        int         `orm:"logistics_status"          json:"logistics_status"`          // 发货状态 1 待发货 2已发货 3 已签收
+	ScriptStatus           uint        `orm:"script_status"             json:"script_status"`             // 脚本上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
+	SketchStatus           uint        `orm:"sketch_status"             json:"sketch_status"`             // 初稿上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
+	UpdateAt               *gtime.Time `orm:"update_at"                 json:"update_at"`                 // 更新时间
+	LinkStatus             uint        `orm:"link_status"               json:"link_status"`               // 链接上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
+	DataStatus             uint        `orm:"data_status"               json:"data_status"`               // 数据上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
+	CurDefaultType         int         `orm:"cur_default_type"          json:"cur_default_type"`          // 任务当前处于的违约类型 0-10分别表示未违约、脚本超时违约、脚本未上传违约、初稿超时违约、初稿未上传违约、链接超时违约、链接未上传违约、数据超时违约、数据未上传违约、解约待处理、解约
+	WithdrawStatus         int         `orm:"withdraw_status"           json:"withdraw_status"`           // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现
+}
+
+// YoungeeTaskLogistics is the golang structure for table youngee_task_logistics.
+type YoungeeTaskLogistics struct {
+	LogisticsId           int         `orm:"logistics_id,primary"    json:"logistics_id"`            // 货物-id
+	CompanyName           string      `orm:"company_name"            json:"company_name"`            // 实物商品-物流公司名称
+	LogisticsNumber       string      `orm:"logistics_number"        json:"logistics_number"`        // 实物商品-物流单号
+	ExplorestoreStarttime *gtime.Time `orm:"explorestore_starttime"  json:"explorestore_starttime"`  // 线下探店-探店开始时间
+	ExplorestoreEndtime   *gtime.Time `orm:"explorestore_endtime"    json:"explorestore_endtime"`    // 线下探店-探店结束时间
+	ExplorestorePeriod    string      `orm:"explorestore_period"     json:"explorestore_period"`     // 线下探店-探店持续时间
+	CouponCodeInformation string      `orm:"coupon_code_information" json:"coupon_code_information"` // 虚拟产品-券码信息
+	TaskId                string      `orm:"task_id,unique"          json:"task_id"`                 // 任务id
+	DeliveryTime          *gtime.Time `orm:"delivery_time"           json:"delivery_time"`           // 发货时间
+	ThingsType            int         `orm:"things_type"             json:"things_type"`             // 任务类型:1 实物,2:线下探店,3:虚拟产品
+	SignedTime            *gtime.Time `orm:"signed_time"             json:"signed_time"`             // 实物商品-签收时间
+	AutoSignAt            *gtime.Time `orm:"auto_sign_at"            json:"auto_sign_at"`            // 自动签收时间
+	AutoScriptBreakAt     *gtime.Time `orm:"auto_script_break_at"    json:"auto_script_break_at"`    // 脚本违约自动处理时间
+	AutoSketchBreakAt     *gtime.Time `orm:"auto_sketch_break_at"    json:"auto_sketch_break_at"`    // 初稿违约自动处理时间
+	Status                int         `orm:"status"                  json:"status"`                  // 签收状态,0为未签收,1为已签收
+}
+
+// YounggeeDataInfo is the golang structure for table younggee_data_info.
+type YounggeeDataInfo struct {
+	DataId          int         `orm:"data_id,primary"    json:"data_id"`            // 脚本id
+	TaskId          string      `orm:"task_id"            json:"task_id"`            // 任务id
+	PlayNumber      int         `orm:"play_number"        json:"play_number"`        // 播放量/阅读量
+	LikeNumber      int         `orm:"like_number"        json:"like_number"`        // 点赞数
+	CommentNumber   int         `orm:"comment_number"     json:"comment_number"`     // 评论数
+	CollectNumber   int         `orm:"collect_number"     json:"collect_number"`     // 收藏数
+	PhotoUrl        string      `orm:"photo_url"          json:"photo_url"`          // 数据截图url
+	ReviseOpinion   string      `orm:"revise_opinion"     json:"revise_opinion"`     // 审核意见
+	IsSubmit        int         `orm:"is_submit"          json:"is_submit"`          // 是否提交
+	IsReview        int         `orm:"is_review"          json:"is_review"`          // 是否审核
+	IsOk            int         `orm:"is_ok"              json:"is_ok"`              // 是否合格
+	CreateAt        *gtime.Time `orm:"create_at"          json:"create_at"`          // 创建时间
+	SubmitAt        *gtime.Time `orm:"submit_at"          json:"submit_at"`          // 提交时间
+	AgreeAt         *gtime.Time `orm:"agree_at"           json:"agree_at"`           // 同意时间
+	RejectAt        *gtime.Time `orm:"reject_at"          json:"reject_at"`          // 驳回时间
+	AutoAgreeAt     *gtime.Time `orm:"auto_agree_at"      json:"auto_agree_at"`      // 结案自动处理时间
+	AutoDataBreakAt *gtime.Time `orm:"auto_data_break_at" json:"auto_data_break_at"` // 结案违约自动处理时间
+}
+
+// YounggeeInvoiceAddress is the golang structure for table younggee_invoice_address.
+type YounggeeInvoiceAddress struct {
+	AddressId    int         `orm:"address_id,primary" json:"address_id"`    // 发票收件地址id
+	EnterpriseId string      `orm:"enterprise_id"      json:"enterprise_id"` // 企业id
+	Name         string      `orm:"name"               json:"name"`          // 收件人姓名
+	RegionCode   string      `orm:"region_code"        json:"region_code"`   // 所在地区编码
+	Address      string      `orm:"address"            json:"address"`       // 详细地址
+	Phone        string      `orm:"phone"              json:"phone"`         // 手机号码
+	UpdateAt     *gtime.Time `orm:"update_at"          json:"update_at"`     // 创建时间
+}
+
+// YounggeeInvoiceInfo is the golang structure for table younggee_invoice_info.
+type YounggeeInvoiceInfo struct {
+	InvoiceId         int         `orm:"invoice_id,primary" json:"invoice_id"`         // 发票信息id
+	EnterpriseId      string      `orm:"enterprise_id"      json:"enterprise_id"`      // 企业id
+	HeadType          string      `orm:"head_type"          json:"head_type"`          // 抬头类型
+	InvoiceHeader     string      `orm:"invoice_header"     json:"invoice_header"`     // 发票抬头
+	InvoiceType       string      `orm:"invoice_type"       json:"invoice_type"`       // 发票类型
+	TaxCode           string      `orm:"tax_code"           json:"tax_code"`           // 税务登记证号/统一社会信用代码
+	Bank              string      `orm:"bank"               json:"bank"`               // 基本户开户银行
+	BankCardNumber    string      `orm:"bank_card_number"   json:"bank_card_number"`   // 基本户开户银行账号
+	RegisteredAddress string      `orm:"registered_address" json:"registered_address"` // 企业注册地址
+	RegisteredPhone   string      `orm:"registered_phone"   json:"registered_phone"`   // 企业注册电话
+	UpdateAt          *gtime.Time `orm:"update_at"          json:"update_at"`          // 更新时间
+}
+
+// YounggeeInvoiceRecord is the golang structure for table younggee_invoice_record.
+type YounggeeInvoiceRecord struct {
+	BillingId      string      `orm:"billing_id,primary" json:"billing_id"`      // 开票订单ID
+	EnterpriseId   string      `orm:"enterprise_id"      json:"enterprise_id"`   // 企业id
+	InvoiceType    string      `orm:"invoice_type"       json:"invoice_type"`    // 发票类型
+	InvoiceAmount  float64     `orm:"invoice_amount"     json:"invoice_amount"`  // 开票金额
+	InvoiceSnap    string      `orm:"invoice_snap"       json:"invoice_snap"`    // 开票信息快照
+	AddressSnap    string      `orm:"address_snap"       json:"address_snap"`    // 邮寄地址快照
+	Phone          string      `orm:"phone"              json:"phone"`           // 联系方式
+	Status         int         `orm:"status"             json:"status"`          // 开票状态:1 为待开票,2为已开票
+	ShipmentNumber string      `orm:"shipment_number"    json:"shipment_number"` // 物流单号
+	SubmitAt       *gtime.Time `orm:"submit_at"          json:"submit_at"`       // 申请提交时间
+	BillingAt      *gtime.Time `orm:"billing_at"         json:"billing_at"`      // 开票时间
+}
+
+// YounggeeLinkInfo is the golang structure for table younggee_link_info.
+type YounggeeLinkInfo struct {
+	LinkId          int         `orm:"link_id,primary"    json:"link_id"`            // 链接id
+	TaskId          string      `orm:"task_id"            json:"task_id"`            // 任务id
+	LinkUrl         string      `orm:"link_url"           json:"link_url"`           // 上传链接url
+	PhotoUrl        string      `orm:"photo_url"          json:"photo_url"`          // 上传截图url
+	ReviseOpinion   string      `orm:"revise_opinion"     json:"revise_opinion"`     // 审核意见
+	IsSubmit        int         `orm:"is_submit"          json:"is_submit"`          // 是否提交
+	IsReview        int         `orm:"is_review"          json:"is_review"`          // 是否审核
+	IsOk            int         `orm:"is_ok"              json:"is_ok"`              // 是否合格
+	CreateAt        *gtime.Time `orm:"create_at"          json:"create_at"`          // 创建时间
+	SubmitAt        *gtime.Time `orm:"submit_at"          json:"submit_at"`          // 提交时间
+	AgreeAt         *gtime.Time `orm:"agree_at"           json:"agree_at"`           // 同意时间
+	RejectAt        *gtime.Time `orm:"reject_at"          json:"reject_at"`          // 驳回时间
+	AutoAgreeAt     *gtime.Time `orm:"auto_agree_at"      json:"auto_agree_at"`      // 发布审核自动处理时间
+	AutoDataBreakAt *gtime.Time `orm:"auto_data_break_at" json:"auto_data_break_at"` // 结案违约自动处理时间
+	AutoLinkBreakAt *gtime.Time `orm:"auto_link_break_at" json:"auto_link_break_at"` // 链接违约自动处理时间
+}
+
+// YounggeeMessageInfo is the golang structure for table younggee_message_info.
+type YounggeeMessageInfo struct {
+	Id          int         `orm:"id,primary"   json:"id"`           // id,递增
+	MessageId   int         `orm:"message_id"   json:"message_id"`   // 消息内容id,对应info_message
+	MessageType int         `orm:"message_type" json:"message_type"` // 消息类型,1-4分别表示成功、通知、错误、警告
+	TalentId    string      `orm:"talent_id"    json:"talent_id"`    // 达人id
+	ProjectName string      `orm:"project_name" json:"project_name"` // 项目名称
+	CreatedAt   *gtime.Time `orm:"created_at"   json:"created_at"`   // 消息创建时间
+	IsReaded    int         `orm:"is_readed"    json:"is_readed"`    // 是否已读,1表示未读,2表示已读
+	IsDeleted   int         `orm:"is_deleted"   json:"is_deleted"`   // 是否删除,1表示未删,2表示已删
 }
 
 // YounggeeProduct is the golang structure for table younggee_product.
@@ -840,10 +1124,10 @@ type YounggeeProduct struct {
 	ProductName   string      `orm:"product_name"       json:"product_name"`   // 商品名称
 	ProductType   int         `orm:"product_type"       json:"product_type"`   // 商品类型
 	ShopAddress   string      `orm:"shop_address"       json:"shop_address"`   // 店铺地址,商品类型为线下品牌时需填写
-	ProductPrice  int64       `orm:"product_price"      json:"product_price"`  // 商品价值
+	ProductPrice  float64     `orm:"product_price"      json:"product_price"`  // 商品价值
 	ProductDetail string      `orm:"product_detail"     json:"product_detail"` //
 	ProductUrl    string      `orm:"product_url"        json:"product_url"`    // 商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;
-	EnterpriseId  int         `orm:"enterprise_id"      json:"enterprise_id"`  // 所属企业id
+	EnterpriseId  string      `orm:"enterprise_id"      json:"enterprise_id"`  // 所属企业id
 	CreatedAt     *gtime.Time `orm:"created_at"         json:"created_at"`     // 创建时间
 	UpdatedAt     *gtime.Time `orm:"updated_at"         json:"updated_at"`     // 更新时间
 	BrandName     string      `orm:"brand_name"         json:"brand_name"`     //
@@ -859,6 +1143,100 @@ type YounggeeProductPhoto struct {
 	CreatedAt      *gtime.Time `orm:"created_at"               json:"created_at"`       // 创建时间
 }
 
+// YounggeeRechargeRecord is the golang structure for table younggee_recharge_record.
+type YounggeeRechargeRecord struct {
+	RechargeId         string      `orm:"recharge_id,primary"  json:"recharge_id"`          // 充值订单ID
+	EnterpriseId       string      `orm:"enterprise_id"        json:"enterprise_id"`        // 企业id
+	RechargeAmount     float64     `orm:"recharge_amount"      json:"recharge_amount"`      // 充值金额
+	TransferVoucherUrl string      `orm:"transfer_voucher_url" json:"transfer_voucher_url"` // 转账凭证图片链接
+	Phone              string      `orm:"phone"                json:"phone"`                // 联系方式
+	RechargeMethod     int         `orm:"recharge_method"      json:"recharge_method"`      // 充值方式:1为对公转账,2为支付宝在线支付,3为微信支付
+	Status             int         `orm:"status"               json:"status"`               // 充值状态:1为充值待确认,2为充值已确认
+	InvoiceStatus      int         `orm:"invoice_status"       json:"invoice_status"`       // 开票状态:1为充值中,2为待开票,3为已开票
+	CommitAt           *gtime.Time `orm:"commit_at"            json:"commit_at"`            // 充值申请提交时间
+	ConfirmAt          *gtime.Time `orm:"confirm_at"           json:"confirm_at"`           // 充值确认时间
+}
+
+// YounggeeScriptInfo is the golang structure for table younggee_script_info.
+type YounggeeScriptInfo struct {
+	ScriptId          int         `orm:"script_id,primary"    json:"script_id"`            // 脚本id
+	TaskId            string      `orm:"task_id"              json:"task_id"`              // 任务id
+	Title             string      `orm:"title"                json:"title"`                // 脚本标题
+	Content           string      `orm:"content"              json:"content"`              // 脚本内容
+	ReviseOpinion     string      `orm:"revise_opinion"       json:"revise_opinion"`       // 审核意见
+	IsSubmit          int         `orm:"is_submit"            json:"is_submit"`            // 是否提交
+	IsReview          int         `orm:"is_review"            json:"is_review"`            // 是否审核
+	IsOk              int         `orm:"is_ok"                json:"is_ok"`                // 是否合格
+	CreateAt          *gtime.Time `orm:"create_at"            json:"create_at"`            // 创建时间
+	SubmitAt          *gtime.Time `orm:"submit_at"            json:"submit_at"`            // 提交时间
+	AgreeAt           *gtime.Time `orm:"agree_at"             json:"agree_at"`             // 同意时间
+	RejectAt          *gtime.Time `orm:"reject_at"            json:"reject_at"`            // 驳回时间
+	AutoAgreeAt       *gtime.Time `orm:"auto_agree_at"        json:"auto_agree_at"`        // 脚本自动审核时间
+	AutoSketchBreakAt *gtime.Time `orm:"auto_sketch_break_at" json:"auto_sketch_break_at"` // 初稿违约自动处理时间
+	AutoScriptBreakAt *gtime.Time `orm:"auto_script_break_at" json:"auto_script_break_at"` // 脚本违约自动处理时间
+}
+
+// YounggeeSketchInfo is the golang structure for table younggee_sketch_info.
+type YounggeeSketchInfo struct {
+	SketchId          int         `orm:"sketch_id,primary"    json:"sketch_id"`            // 初稿id
+	TaskId            string      `orm:"task_id"              json:"task_id"`              // 任务id
+	Title             string      `orm:"title"                json:"title"`                // 标题
+	Type              int         `orm:"type"                 json:"type"`                 // 初稿形式,1为图片,2为视频
+	Content           string      `orm:"content"              json:"content"`              // 正文
+	ReviseOpinion     string      `orm:"revise_opinion"       json:"revise_opinion"`       // 反馈意见
+	IsSubmit          int         `orm:"is_submit"            json:"is_submit"`            // 是否提交
+	IsReview          int         `orm:"is_review"            json:"is_review"`            // 是否审核
+	IsOk              int         `orm:"is_ok"                json:"is_ok"`                // 是否合格
+	CreateAt          *gtime.Time `orm:"create_at"            json:"create_at"`            // 创建时间
+	AgreeAt           *gtime.Time `orm:"agree_at"             json:"agree_at"`             // 同意时间
+	RejectAt          *gtime.Time `orm:"reject_at"            json:"reject_at"`            // 驳回时间
+	SubmitAt          *gtime.Time `orm:"submit_at"            json:"submit_at"`            // 提交时间
+	AutoAgreeAt       *gtime.Time `orm:"auto_agree_at"        json:"auto_agree_at"`        // 初稿自动审核时间
+	AutoLinkBreakAt   *gtime.Time `orm:"auto_link_break_at"   json:"auto_link_break_at"`   // 链接违约自动处理时间
+	AutoSketchBreakAt *gtime.Time `orm:"auto_sketch_break_at" json:"auto_sketch_break_at"` // 初稿违约自动处理时间
+}
+
+// YounggeeSketchPhoto is the golang structure for table younggee_sketch_photo.
+type YounggeeSketchPhoto struct {
+	Id       int         `orm:"id,primary" json:"id"`        // 脚本id
+	SketchId int         `orm:"sketch_id"  json:"sketch_id"` //
+	PhotoUrl string      `orm:"photo_url"  json:"photo_url"` //
+	PhotoUid string      `orm:"photo_uid"  json:"photo_uid"` //
+	Symbol   int         `orm:"symbol"     json:"symbol"`    // 1是图片,2是视频
+	CreateAt *gtime.Time `orm:"create_at"  json:"create_at"` //
+}
+
+// YounggeeTalentBank is the golang structure for table younggee_talent_bank.
+type YounggeeTalentBank struct {
+	Id              int         `orm:"id,primary"        json:"id"`                // id
+	TalentId        string      `orm:"talent_id,unique"  json:"talent_id"`         // 达人id,取younggee_talent_info表中的id字段值
+	Name            string      `orm:"name"              json:"name"`              // 户主姓名
+	Phone           string      `orm:"phone"             json:"phone"`             // 手机号
+	BankId          string      `orm:"bank_id"           json:"bank_id"`           // 银行id,取info_bank表中的bank_id字段值
+	BankCardNumber  string      `orm:"bank_card_number"  json:"bank_card_number"`  // 银行卡号
+	BankOpenAddress int         `orm:"bank_open_address" json:"bank_open_address"` // 开户地址区域码,取info_region表中的self_code字段值
+	AlipayNumber    string      `orm:"alipay_number"     json:"alipay_number"`     // 支付宝账号
+	AlipayRealName  string      `orm:"alipay_real_name"  json:"alipay_real_name"`  // 支付宝真实姓名
+	AlipayCardId    string      `orm:"alipay_card_id"    json:"alipay_card_id"`    // 支付宝身份证号
+	BankCardId      string      `orm:"bank_card_id"      json:"bank_card_id"`      // 银行卡身份证号
+	CreateAt        *gtime.Time `orm:"create_at"         json:"create_at"`         //
+	UpdateAt        *gtime.Time `orm:"update_at"         json:"update_at"`         //
+}
+
+// YounggeeTaskLog is the golang structure for table younggee_task_log.
+type YounggeeTaskLog struct {
+	LogId   int         `orm:"log_id,primary" json:"log_id"`  // 任务日志id
+	TaskId  string      `orm:"task_id"        json:"task_id"` // 任务id
+	Content string      `orm:"content"        json:"content"` // 内容
+	LogAt   *gtime.Time `orm:"log_at"         json:"log_at"`  // 时间
+}
+
+// YounggeeTaskMessage is the golang structure for table younggee_task_message.
+type YounggeeTaskMessage struct {
+	Id   int    `orm:"id,primary" json:"id"`   // 银行id
+	Name string `orm:"name"       json:"name"` // 银行名称
+}
+
 // YounggeeUser is the golang structure for table younggee_user.
 type YounggeeUser struct {
 	Id            int         `orm:"id,primary"      json:"id"`              // 用户表id
@@ -874,3 +1252,17 @@ type YounggeeUser struct {
 	CreatedAt     *gtime.Time `orm:"created_at"      json:"created_at"`      // 创建时间
 	UpdatedAt     *gtime.Time `orm:"updated_at"      json:"updated_at"`      // 更新时间
 }
+
+// YounggeeWithdrawRecord is the golang structure for table younggee_withdraw_record.
+type YounggeeWithdrawRecord struct {
+	WithdrawId     string      `orm:"withdraw_id,primary" json:"withdraw_id"`     // 提现订单ID
+	TalentId       string      `orm:"talent_id"           json:"talent_id"`       // 达人id
+	WithdrawAmount float64     `orm:"withdraw_amount"     json:"withdraw_amount"` // 提现金额
+	AmountPayable  float64     `orm:"amount_payable"      json:"amount_payable"`  // 应付金额
+	TaskIdList     string      `orm:"task_id_list"        json:"task_id_list"`    // 该提现订单包含的task_id列表
+	ReceiveInfo    string      `orm:"receive_info"        json:"receive_info"`    // 收款信息
+	Status         int         `orm:"status"              json:"status"`          // 提现状态:1为提现待确认,2为已提现
+	BankType       int         `orm:"bank_type"           json:"bank_type"`       // 到账方式,1为支付宝,2为银行卡
+	SubmitAt       *gtime.Time `orm:"submit_at"           json:"submit_at"`       // 申请提交时间
+	WithdrawAt     *gtime.Time `orm:"withdraw_at"         json:"withdraw_at"`     // 提现时间
+}

+ 0 - 51
app/model/talent_model/bobocoin.go

@@ -1,51 +0,0 @@
-package talent_model
-
-import (
-	"github.com/gogf/gf/os/gtime"
-	"youngmini_server/app/model"
-)
-
-type BoBoCoinOrderInfo struct {
-	OrderId				   uint64      `orm:"order_id"                  json:"orderId"`
-	TaskName               string      `orm:"task_name"                 json:"taskName"`               // 任务名称(冗余)
-	ProductName            string      `orm:"product_name"              json:"productName"`            // 商品名称(冗余)
-	ProductMainImg         string      `orm:"product_main_img"          json:"productMainImg"`         // 商品主图url(冗余)
-	SettleAmount           int64       `orm:"settle_amount"             json:"settleAmount"`           // 待结算金额
-	TalentPlatformInfoSnap string      `orm:"talent_platform_info_snap" json:"talentPlatformInfoSnap"` // 达人平台信息快照
-	CompleteStatus         int         `orm:"complete_status"           json:"completeStatus"`         // 结束方式 1未结束 2正常结束 3反选失败 4达人取消
-	CreateDate             *gtime.Time `orm:"create_date"               json:"createDate"`             // 创建时间
-	CompleteDate           *gtime.Time `orm:"complete_date"             json:"completeDate"`           // 结束时间
-}
-
-type BoBoCoinOrderSettleStateResult struct {
-	SettleUpOrders []*BoBoCoinOrderInfo       // 已结算订单列表
-	UnsettledOrders []*BoBoCoinOrderInfo      // 未结算订单列表
-}
-
-// BoBoCoinDetailAccount 卜卜币流水账
-type BoBoCoinDetailAccount struct {
-	WaitSettle    int64                             `json:"wait_settle"`     // 待结算
-	SettleUp      int64                             `json:"settle_up"`       // 已结算
-	CanWithdraw   int64                             `json:"can_withdraw"`    // 可提现
-	HasWithDraw   int64                             `json:"has_with_draw"`   // 已提现
-	WaitPay       int64                             `json:"wait_pay"`        // 待打款
-	IncomeList    []*model.BobocoinIncomeRecord     `json:"income_list"`     // 收入列表
-	DrawMoneyList []*model.BobocoinWithdrawalRecord `json:"draw_money_list"` // 提现列表
-	DeductList    []*model.BobocoinDeductRecord     `json:"de_duct_list"`    // 扣费列表
-}
-
-type BoBoCoinAliAccountInfo struct {
-	AliName string `orm:"ali_name" json:"aliName" v:"required#must input aliName"`
-	AliAccount string `orm:"ali_account" json:"aliAccount" v:"required#must input aliAccount"`
-}
-
-// BoBoCoinWithdrawInfo 进入提现页面是返回的数据格式
-type BoBoCoinWithdrawInfo struct {
-	BoBoCoinValue int64  `json:"bo_bo_coin_value"`
-	AliName       string `json:"ali_name"`
-	AliAccount    string `json:"ali_account"`
-}
-
-type BoBoCoinWithdrawalReq struct {
-	WithdrawalAmount int64 `json:"withdrawal_amount" v:"required|integer#must input withdraw amount|type of withdraw amount is int"`
-}

+ 0 - 25
app/model/talent_model/delivery_address.go

@@ -1,25 +0,0 @@
-package talent_model
-
-// DeliveryAddress 达人收货地址信息
-type DeliveryAddress struct {
-	RegionCode   int    `orm:"region_code"        json:"regionCode" v:"required|integer#regionCode must be provided|regionCode must be integer"` // 区域码,取info_region表中的self_code字段值
-	DetailAddr   string `orm:"detail_addr"        json:"detailAddr" v:"required|length:1,100#detailAddr must be provided|detailAddr length between :min,:max"`                                    // 详细地址
-	PhoneNumber  string `orm:"phone_number"       json:"phoneNumber" v:"required|phone#phoneNumber must be provided|phoneNumber is invalid"`     // 联系电话
-	ReceiverName string `orm:"receiver_name"      json:"receiverName" v:"required|length:1,20#receiverName must be provided|receiverName length between :min,:max"`                                // 收货人名字
-	DefaultTag   int    `orm:"default_tag"        json:"defaultTag" v:"required|integer|between:0,1#defaultTag must be provided|type of defaultTag must be int|defaultTag must between :min, :max"`                                    // 是否默认收货地址
-	TalentId     int    `orm:"talent_id"          json:"talentId"`                                                                               // 达人id(talent_info表中的id)
-}
-
-type DeleteDeliveryAddress struct {
-	AddressId  int `json:"address_id" v:"required|integer#address_id must be provided|type of address_id must be integer"`
-	DefaultTag int `json:"default_tag" v:"required|integer|between:0,1#default_tag must be provided|type of default_tag must be integer|defaultTag must between :min, :max"`
-}
-
-type DeliveryAddressModifyReq struct {
-	AddressId    int64  `orm:"address_id"         json:"addressId" v:"required|integer#addressId must be provided|typeof addressId is integer"`
-	RegionCode   int    `orm:"region_code"        json:"regionCode" v:"required|integer#regionCode must be provided|regionCode must be integer"`                                                    // 区域码,取info_region表中的self_code字段值
-	DetailAddr   string `orm:"detail_addr"        json:"detailAddr" v:"required#detailAddr must be provided"`                                                                                       // 详细地址
-	PhoneNumber  string `orm:"phone_number"       json:"phoneNumber" v:"required|phone#phoneNumber must be provided|phoneNumber is invalid"`                                                        // 联系电话
-	ReceiverName string `orm:"receiver_name"      json:"receiverName" v:"required#receiverName must be provided"`                                                                                   // 收货人名字
-	//DefaultTag   int    `orm:"default_tag"        json:"defaultTag" v:"required|integer|between:0,1#defaultTag must be provided|type of defaultTag must be int|defaultTag must between :min, :max"` // 是否默认收货地址 	// 达人id(talent_info表中的id)
-}

+ 0 - 25
app/model/talent_model/info_tables.go

@@ -1,25 +0,0 @@
-package talent_model
-
-import "youngmini_server/app/model"
-
-type InfoTables struct {
-	ProductClassify []model.InfoProductClassify
-	AgeBracket []model.InfoTalentAgeBracket
-	SkilledArea []model.InfoTalentSkilledArea
-	SkinType []model.InfoTalentSkinType
-	ThirdPlatform []ThirdPlatformInfo
-}
-
-//type InfoTables struct {
-//	ProductClassify map[int]g.Map
-//	AgeBracket map[int]g.Map
-//	SkilledArea map[int]g.Map
-//	SkinType map[int]g.Map
-//	ThirdPlatform map[int]g.Map
-//}
-
-type ThirdPlatformInfo struct {
-	PlatformId   int    `orm:"platform_id,primary"          json:"id"`  //
-	PlatformIcon string `orm:"platform_icon"       json:"platformIcon"` // 平台图标url
-	PlatformName string `orm:"platform_name"       json:"platformName"` //
-}

+ 0 - 161
app/model/talent_model/order_info.go

@@ -1,161 +0,0 @@
-package talent_model
-
-import (
-	"github.com/gogf/gf/database/gdb"
-	"github.com/gogf/gf/os/gtime"
-	"github.com/gogf/gf/util/gmeta"
-)
-
-type OrderInfoBrief struct {
-	OrderId             uint64      `json:"order_id"`
-	PlatformIconUrl     string      `json:"platform_icon_url"`
-	PlatformName        string      `json:"platform_name"`
-	PlatformNickName    string      `json:"platform_nick_name"`
-	OrderProcedure      string      `json:"order_procedure"`
-	TaskName            string      `json:"task_name"`
-	RecruitLevel        gdb.Record  `json:"recruit_level"`
-	ProcedureNote       string      `json:"procedure_note"`
-	ProductImgUrl       string      `json:"product_img_url"`
-	OrderCompleteStatus int         `json:"order_complete_status"`
-	OrderCompleteType   int         `json:"order_complete_type"`
-	OrderCompleteDate   *gtime.Time `json:"order_complete_date"`
-}
-
-type ClassifiedOrderInfoBriefList struct {
-	AllOrderInfoList       []*OrderInfoBrief `json:"all_order_info_list"`
-	SelectOrderInfoList    []*OrderInfoBrief `json:"select_order_info_list"`
-	GoingOnOrderInfoList   []*OrderInfoBrief `json:"going_on_order_info_list"`
-	CompletedOrderInfoList []*OrderInfoBrief `json:"completed_order_info_list"`
-}
-
-type OrderProductPhoto struct {
-	gmeta.Meta `orm:"table:product_photo"`
-	ProductId      int         `json:"product_id"`      // 商品表id
-	Symbol         int         `json:"symbol"`         // 图片是主图还是详情图标志位 1主图 2详情图
-	PhotoUrl       string      `json:"photo_url"`       // 商品图片链接
-}
-
-type OrderProductInfo struct {
-	gmeta.Meta `orm:"table:product"`
-	ProductId            int         `json:"product_id"`            //
-	ProductName          string      `json:"product_name"`          // 商品名称
-	ProductPrice         int64       `json:"product_price"`         // 商品价格
-	ProductSpecification string      `json:"product_specification"` // 商品规格
-	ProductPhotos        *OrderProductPhoto `orm:"with:product_id=product_id, order:symbol"`
-}
-
-type OrderTaskHelpInfo struct {
-	gmeta.Meta `orm:"table:task_perform_help_info"`
-	TaskBaseId          int    `json:"task_base_id"`          // 关联的任务基本信息id
-	//BrandKeyword        string `json:"brandKeyword"`        // 品牌关键词
-	//ProductMerits       string `json:"productMerits"`       // 产品亮点
-	//AppendTopic         string `json:"appendTopic"`         // 添加话题
-	//CaptureRequirement  string `json:"captureRequirement"`  // 拍摄要求
-	//RemainDays          int    `json:"remainDays"`          // 保留时长(天)
-	//OtherPerformRequire string `json:"otherPerformRequire"` // 其他执行要求
-	//CaptureReference    string `json:"captureReference"`    // 拍摄参考
-	//CustomServiceQrcode string `json:"customServiceQrcode"` // 客服二维码url
-	BriefList           string `json:"brief_list"`           // brief图片urls
-}
-
-type OrderTaskRewardInfo struct {
-	gmeta.Meta `orm:"table:task_reward"`
-	IsRewardGoods    int    `json:"is_reward_goods"`    // 是否奖励实物
-	RewardGoodsInfo  string `json:"reward_goods_info"`  // 实物奖励信息
-	IsPaymentArticle int    `json:"is_payment_article"` // 是否获得稿费
-	PaymentValue     string  `json:"payment_value"`     // 稿费金额描述
-	OtherRewardInfo  string `json:"other_reward_info"`  // 其他奖励信息
-	TaskBaseId       int    `json:"task_base_id"`       // 关联的task_base_info的id
-}
-
-type OrderRecruitLevel struct {
-	gmeta.Meta `orm:"table:task_recruit_talent_level"`
-	TrtId           int   `json:"trt_id"`           //
-	FansCountMin    int   `json:"fans_count_min"`    // 最小粉丝数
-	FansCountMax    int   `json:"fans_count_max"`    // 最大粉丝数
-	NeedTalentCount int   `json:"need_talent_count"` // 任务需要的达人数量
-	RewardRoyalties int64 `json:"reward_royalties"` // 稿费金额
-}
-
-type OrderTaskProcedureCondition struct {
-	gmeta.Meta `orm:"table:task_procedure_decision_condition"`
-	TaskBaseId         int   `json:"-"`         // 任务id(对应task_base_info表id字段)
-	BuySamplesType     int   `json:"buy_samples_type"`     // 拍单方式 0不拍单 1样叽拍单 2其他平台拍单
-	BuySamplesCost     int64 `json:"buy_samples_cost"`     // 拍单费用
-	BuySamplesRefund   int64 `json:"buy_samples_refund"`   // 拍单退费
-}
-
-type OrderTaskInfo struct {
-	gmeta.Meta `orm:"table:task_base_info"`
-	TaskId         int         `json:"task_id"`         // 任务基础信息id
-	TaskName       string      `json:"task_name"`       // 任务名称
-	TaskPlatform   int         `json:"task_platform"`   // 任务平台id,取third_platform_info表id
-	TaskMode       int         `json:"task_mode"`       // 任务模式 1置换任务 2稿费任务 3折扣任务
-	BusinessType   int         `json:"business_type"`   // 业务类型 1实物 2虚拟 3线下
-	ContentForm    int         `json:"content_form"`    // 内容形式 低4位为图片和视频类型,0001原创图片 0010指定图片 0100原创视频 1000指定视频 5~6位为文案类型 010000为原创文案 100000为指定文案 第7位为是否直播01000000为直播00000000为非直播
-	StartTime      *gtime.Time `json:"start_time"`      // 作品开始时间
-	EndTime        *gtime.Time `json:"end_time"`        // 作品结束时间
-	DeadlineTime   *gtime.Time `json:"deadline_time"`   // 任务报名截至日期
-	TaskStatus     int         `json:"task_status"`     // 任务状态  待上线,已上线,已结案
-	//BrandId        int         `json:"brandId"`        // 品牌id
-	ProductId      int         `json:"product_id"`      // 任务商品id
-	ProductInfo    *OrderProductInfo `orm:"with:product_id=product_id"`
-	TaskHelpInfo   *OrderTaskHelpInfo `orm:"with:task_base_id=task_id"`
-	RewardInfo     *OrderTaskRewardInfo `orm:"with:task_base_id=task_id"`
-	Conditions     *OrderTaskProcedureCondition `orm:"with:task_base_id=task_id"`
-}
-
-type OrderProcedureInfo struct {
-	gmeta.Meta `orm:"table:workflow_node_container"`
-
-	NodeName            string      `json:"node_name"`
-	NodeNameFirst       string      `json:"node_name_first"`        // 首次执行时的节点名,前端显示
-	NodeNameAfterSecond string      `json:"node_name_after_second"` // 第二次之后执行时的节点名
-	StepInStage         uint        `json:"stepInStage"`            // 在阶段中的步骤,如提交初稿是初稿阶段的第一步
-	ProcedureStage      int         `json:"procedure_stage"`        // 订单处理流程阶段,如:拍单阶段、初稿阶段
-	CurExecutionTimes   int         `json:"cur_execution_times"`    // 当前执行次数
-	Tip                 string      `json:"tip"`                    // 此步骤在达人端的提示
-	SucNextStep         uint        `json:"sucNextStep"`            // 成功后在此阶段的后续步骤 0不处理 255进行后续阶段 其余数值为本阶段step_in_stage值
-	FailNextStep        uint        `json:"failNextStep"`           // 失败的后续步骤,数值同上
-	State               int         `json:"state"`                  // 状态 1未开启 2进行中 3失败 4完成
-	FailReason          string      `json:"failReason"`             // 失败原因
-	CompleteDate        *gtime.Time `json:"complete_date"`          // 完成日期
-	OperateRoleRestrict int         `json:"operate_role_restrict"`  // 操作角色限制 1后端 2达人
-	SortId              int         `json:"sort_id"`                // 在一个任务流程中的排序值
-	OrderId             int         `json:"order_id"`               // 关联的订单和任务id
-}
-
-type OrderDetailInfo struct {
-	gmeta.Meta             `orm:"table:order_info"`
-	OrderId                uint64                `json:"order_id"`                  //
-	TaskId                 int                   `json:"task_id"`                   // 任务id
-	TalentId               int                   `json:"talentId"`                  // 达人id
-	TalentPlatformInfoSnap string                `json:"talent_platform_info_snap"` // 达人平台信息快照
-	TalentPersonalInfoSnap string                `json:"talent_personal_info_snap"` // 达人个人信息快照
-	TalentPostAddrSnap     string                `json:"talent_post_addr_snap"`     // 收货地址快照
-	TaskLevelId            int                   `json:"task_level_id"`             // 报名选择的招募等级id(task_recruit_talent_level表中的id)
-	ProdSpecificationId    int                   `json:"prod_specification_id"`     // 商品规格列表的索引
-	ProdNote               string                `json:"prod_note"`                 // 商品备注
-	OrderStatus            int                   `json:"order_status"`              // 订单状态
-	CreateDate             *gtime.Time           `json:"create_date"`               // 创建时间
-	SelectDate             *gtime.Time           `json:"select_date"`               // 反选时间
-	PartnerWay             string                `json:"partner_way"`               // 合作方式
-	CompleteStatus         int                   `json:"complete_status"`           // 结束方式 0未结束 1正常结束 2反选失败 3达人取消
-	CompleteDate           *gtime.Time           `json:"complete_date"`             // 结束时间
-	BuySamplesInfo         *OrderTaskProcedureCondition `orm:"with:task_base_id=task_id"` // 拍单详情
-	TaskInfo               *OrderTaskInfo        `orm:"with:task_id=task_id"`
-	RecruitLevel           *OrderRecruitLevel    `orm:"with:trt_id=task_level_id"`
-	ProcedureInfo          []*OrderProcedureInfo `orm:"with:order_id=order_id, order:sort_id"`
-}
-
-type OrderBriefUrls struct {
-	gmeta.Meta `orm:"table:task_perform_help_info"`
-	TaskBaseId int    `json:"-"`
-	BriefList  string `json:"brief_list"`
-}
-type OrderBriefInfo struct {
-	gmeta.Meta `orm:"table:order_info"`
-	OrderId    uint64          `json:"-"` //
-	TaskId     int             `json:"-"` // 任务id
-	BriefList  *OrderBriefUrls `orm:"with:task_base_id=task_id"`
-}

+ 0 - 20
app/model/talent_model/platform_bilibili.go

@@ -1,20 +0,0 @@
-package talent_model
-
-type PlatformBilibili struct {
-	TalentId           int    `orm:"talent_id,unique"       json:"talentId"`                                                                            // 达人账号id(talent_info表id值)
-	PlatformId         int    `orm:"platform_id"            json:"platformId" v:"required|integer|between:1,7#必须输入平台id|平台id类型为int|平台id取值范围为 :min到:max"` // 平台id,与third_platform_info中的id相同
-	PlatformName       string `orm:"platform_name"          json:"platformName"`                                                                         // 平台名称(冗余)
-	PlatformIconUrl    string `orm:"platform_icon_url"      json:"platformIconUrl"`                                                                      // 平台icon的url(冗余)
-	PlatformAccountId  string `orm:"platform_account_id"    json:"platformAccountId"`                                                                   // 在平台上的账号
-	PlatformNickname   string `orm:"platform_nickname"      json:"platformNickname" v:"required|length:1,30#必须输入平台昵称|platformNickname长度非法"`             // 在平台上的昵称
-	HomePageUrl        string `orm:"home_page_url"          json:"homePageUrl" v:"required|url#必须输入主页链接|主页链接为url"`                                      // 主页链接
-	FansCount          int64  `orm:"fans_count"             json:"fansCount" v:"required|integer|min:0#必须输入粉丝数|粉丝数为整数类型|粉丝数必须为正整数"`                                     // 粉丝数
-	GotLikeCount       int64  `orm:"got_like_count"         json:"gotLikeCount" v:"required|integer|min:0#必须输入点赞数|点赞数类型为整数类型|点赞数必须为正整数"`
-	SkilledAt          string `orm:"skilled_at"`
-	SkilledAt1         int    `json:"skilledAt1" v:"integer|between:1,13#领域类型为整数|领域取值范围为 :min, :max"`
-	SkilledAt2         int    `json:"skilledAt2" v:"integer|between:2,13#领域类型为整数|领域取值范围为 :min, :max"`                                    //
-	SkilledAt3         int    `json:"skilledAt3" v:"integer|between:3,13#领域类型为整数|领域取值范围为 :min, :max"`                                    // 擅长领域(info_tallent_skilled_area表中的id的数组)
-	IsAppearInVideo    int    `orm:"is_appear_in_video"     json:"isAppearInVideo" v:"integer|between:0,1#是否出镜为整数类型|是否出镜取值范围 :min到:max"` // 是否出镜
-	HomePageCaptureUrl string `orm:"home_page_capture_url"  json:"homePageCaptureUrl" v:"required|url#必须输入主页截图链接|主页截图链接为url"`                              // 主页截图链接
-	AccountFrom        string `orm:"account_from"           json:"accountFrom"`                                                                            // 账号来源(仅B端批量上传的账号需要填写)
-}

+ 0 - 17
app/model/talent_model/platform_dianping.go

@@ -1,17 +0,0 @@
-package talent_model
-
-type PlatformDianping struct {
-	TalentId           int    `orm:"talent_id,unique"      json:"talentId"`                                                                               // 达人账号id(talent_info表id值)
-	PlatformId         int    `orm:"platform_id"           json:"platformId" v:"required|integer|between:1,7#必须输入平台id|平台id类型为int|平台id取值范围为 :min到:max"`    // 平台id,与third_platform_info中的id相同
-	PlatformName       string `orm:"platform_name"         json:"platformName"`                                                                           // 平台名称(冗余)
-	PlatformIconUrl    string `orm:"platform_icon_url"     json:"platformIconUrl"`                                                                        // 平台icon的url(冗余)
-	PlatformAccountId  string `orm:"platform_account_id"   json:"platformAccountId"`                                                                      // 在平台上的账号
-	PlatformNickname   string `orm:"platform_nickname"     json:"platformNickname" v:"required|length:1,30#必须输入平台昵称|platformNickname长度非法"`                // 在平台上的昵称
-	HomePageUrl        string `orm:"home_page_url"         json:"homePageUrl" v:"required|url#必须输入主页链接|主页链接为url"`                                         // 主页链接
-	FansCount          int64  `orm:"fans_count"            json:"fansCount" v:"required|integer|min:0#必须输入粉丝数|粉丝数为整数类型|必须为正整数"`                                        // 粉丝数
-	GotLikeCount       int64  `orm:"got_like_count"        json:"gotLikeCount" v:"required|integer|min:0#必须输入点赞数|点赞数类型为整数类型|必须为正整数"`                                   // 点赞数
-	MembershipLevel    int    `orm:"membership_level"      json:"membershipLevel" v:"integer|min:0#会员等级类型为整数类型|必须为正整数"`                              // 会员等级
-	IsAppearInVideo    int    `orm:"is_appear_in_video"    json:"isAppearInVideo" v:"integer|between:0,1#是否出镜为整数类型|是否出镜取值范围 :min到:max"` // 是否出镜
-	HomePageCaptureUrl string `orm:"home_page_capture_url" json:"homePageCaptureUrl" v:"required|url#必须输入主页截图链接|主页截图链接为url"`                              // 主页截图图片url
-	AccountFrom        string `orm:"account_from"          json:"accountFrom"`                                                                            // 账号来源(仅B端批量上传的账号需要填写)
-}

+ 0 - 22
app/model/talent_model/platform_kuaishou.go

@@ -1,22 +0,0 @@
-package talent_model
-
-type PlatformKuaishou struct {
-	TalentId           int    `orm:"talent_id,unique"         json:"talentId"`                                                                            // 达人账号id(talent_info表id值)
-	PlatformId         int    `orm:"platform_id"              json:"platformId" v:"required|integer|between:1,7#必须输入平台id|平台id类型为int|平台id取值范围为 :min到:max"` // 平台id,与third_platform_info中的id相同
-	PlatformName       string `orm:"platform_name"            json:"platformName"`                                                                           // 平台名称(冗余)
-	PlatformIconUrl    string `orm:"platform_icon_url"        json:"platformIconUrl"`                                                                        // 平台icon的url(冗余)
-	PlatformAccountId  string `orm:"platform_account_id"      json:"platformAccountId"`                                                                   // 在平台上的账号
-	PlatformNickname   string `orm:"platform_nickname"        json:"platformNickname" v:"required|length:1,30#必须输入平台昵称|platformNickname长度非法"`             // 在平台上的昵称
-	HomePageUrl        string `orm:"home_page_url"            json:"homePageUrl" v:"required|url#必须输入主页链接|主页链接为url"`                                      // 主页链接
-	FansCount          int64  `orm:"fans_count"               json:"fansCount" v:"required|integer|min:0#必须输入粉丝数|粉丝数为整数类型|粉丝数必须为正整数"`                                     // 粉丝数
-	CompositionCount   int64  `orm:"composition_count"        json:"compositionCount" v:"integer|min:0#作品数量为整数类型|作品数量必须为正整数"`                                              // 作品数量
-	SkilledAt          string `orm:"skilled_at"               json:"skilledAt"`                                                                           // 擅长领域(info_tallent_skilled_area表中的id的数组)
-	SkilledAt1         int    `json:"skilledAt1" v:"integer|between:1,13#领域类型为整数|领域取值范围为 :min, :max"`
-	SkilledAt2         int    `json:"skilledAt2" v:"integer|between:2,13#领域类型为整数|领域取值范围为 :min, :max"` //
-	SkilledAt3         int    `json:"skilledAt3" v:"integer|between:3,13#领域类型为整数|领域取值范围为 :min, :max"`
-	IsSupportLive      int    `orm:"is_support_live"          json:"isSupportLive" v:"integer|between:0,1#是否支持直播为整数类型|是否支持直播取值范围 :min到:max"` // 是否支持直播
-	IsOpenCart         int    `orm:"is_open_cart"             json:"isOpenCart" v:"integer|between:0,1#是否开通购物车为整数类型|是否开通购物车取值范围 :min到:max"` // 是否开通购物车
-	IsAppearInVideo    int    `orm:"is_appear_in_video"       json:"isAppearInVideo" v:"integer|between:0,1#是否出镜为整数类型|是否出镜取值范围 :min到:max"`     // 是否出镜
-	HomePageCaptureUrl string `orm:"home_page_capture_url"    json:"homePageCaptureUrl" v:"required|url#必须输入主页截图链接|主页截图链接为url"`                                  // 主页截图图片url
-	AccountFrom        string `orm:"account_from"             json:"accountFrom"`                                                                                // 账号来源(仅B端批量上传的账号需要填写)
-}

+ 0 - 24
app/model/talent_model/platform_little_red_book.go

@@ -1,24 +0,0 @@
-package talent_model
-
-type PlatformLittleRedBook struct {
-	TalentId           int    `orm:"talent_id,unique"           json:"talentId"`                                                                                        // 达人账号id(talent_info表id值)
-	PlatformId         int    `orm:"platform_id"                json:"platformId" v:"required|integer|between:1,7#必须输入平台id|平台id类型为int|平台id取值范围为 :min到:max"`             // 平台id,与third_platform_info中的id相同
-	PlatformName       string `orm:"platform_name"              json:"platformName"`                                                                                         // 平台名称(冗余)
-	PlatformIconUrl    string `orm:"platform_icon_url"          json:"platformIconUrl"`                                                                                      // 平台icon的url(冗余)
-	PlatformAccountId  string `orm:"platform_account_id"        json:"platformAccountId"`                                                                               // 在平台上的账号
-	PlatformNickname   string `orm:"platform_nickname"          json:"platformNickname" v:"required|length:1,30#必须输入平台昵称|platformNickname长度非法"`                         // 在平台上的昵称
-	HomePageUrl        string `orm:"home_page_url"              json:"homePageUrl" v:"required|url#必须输入主页链接|主页链接为url"`                                                  // 主页链接
-	FansCount          int64  `orm:"fans_count"                 json:"fansCount" v:"required|integer|min:0#必须输入粉丝数|粉丝数为整数类型|粉丝数必须为正整数"`                                                 // 粉丝数
-	GotLikeCount       int64  `orm:"got_like_count"             json:"gotLikeCount" v:"required|integer|min:0#必须输入赞藏数|赞藏数类型为整数类型|赞藏数必须为正整数"`                                            // (点)赞(收)藏数
-	NoteCount          int64  `orm:"note_count"                 json:"noteCount" v:"integer|min:0#笔记总量类型为整数类型|笔记总量必须为正整数"`                                                                // 笔记总量
-	IsSupportReporting int    `orm:"is_support_reporting"       json:"isSupportReporting" v:"integer|between:0,1#是否支持报备为整数类型|是否支持报备取值范围 :min到:max"` // 是否支持报备
-	IsSupportLive      int    `orm:"is_support_live"            json:"isSupportLive" v:"integer|between:0,1#是否支持直播为整数类型|是否支持直播取值范围 :min到:max"`      // 是否支持直播
-	CanMakeVideo       int    `orm:"can_make_video"             json:"canMakeVideo" v:"integer|between:0,1#是否可以制作视频为整数类型|是否可以制作视频取值范围 :min到:max"` // 是否可以制作视频
-	IsAppearInVideo    int    `orm:"is_appear_in_video"         json:"isAppearInVideo" v:"integer|between:0,1#是否出镜为整数类型|是否出镜取值范围 :min到:max"`          // 是否出镜
-	SkilledAt          string `orm:"skilled_at"                 json:"skilledAt"`                                                                                       // 擅长领域(info_tallent_skilled_area表中的id的数组)  {0,不限。1,母婴。2,美妆护肤。3,时尚穿搭。4,旅游。5,美食。6,数码科技。7,健康养生。8,情感。9,宠物。10,运动健身。11,家居生活。12,搞笑。13,音乐  }
-	SkilledAt1         int    `json:"skilledAt1" v:"integer|between:1,13#领域类型为整数|领域取值范围为 :min, :max"`
-	SkilledAt2         int    `json:"skilledAt2" v:"integer|between:2,13#领域类型为整数|领域取值范围为 :min, :max"` //
-	SkilledAt3         int    `json:"skilledAt3" v:"integer|between:3,13#领域类型为整数|领域取值范围为 :min, :max"`
-	HomePageCaptureUrl string `orm:"home_page_capture_url"      json:"homePageCaptureUrl" v:"required|url#必须输入主页截图链接|主页截图链接为url"` // 主页截图链接
-	AccountFrom        string `orm:"account_from"               json:"accountFrom"`                                               // 账号来源(仅B端批量上传的账号需要填写)
-}

+ 0 - 25
app/model/talent_model/platform_tiktok.go

@@ -1,25 +0,0 @@
-package talent_model
-
-type PlatformTiktok struct {
-	TalentId           int    `orm:"talent_id,unique"         json:"talentId"`                                                                                          // 达人账号id(talent_info表id值)
-	PlatformId         int    `orm:"platform_id"              json:"platformId" v:"required|integer|between:1,7#必须输入平台id|平台id类型为int|平台id取值范围为 :min到:max"`               // 平台id,与third_platform_info中的id相同
-	PlatformName       string `orm:"platform_name"            json:"platformName"`                                                                                         // 平台名称(冗余)
-	PlatformIconUrl    string `orm:"platform_icon_url"        json:"platformIconUrl"`                                                                                      // 平台icon的url(冗余)
-	PlatformAccountId  string `orm:"platform_account_id"      json:"platformAccountId"`                                                                                 // 在平台上的账号
-	PlatformNickname   string `orm:"platform_nickname"        json:"platformNickname" v:"required|length:1,30#必须输入平台昵称|platformNickname长度非法"`                           // 在平台上的昵称
-	HomePageUrl        string `orm:"home_page_url"            json:"homePageUrl" v:"required|url#必须输入主页链接|主页链接为url"`                                                    // 主页链接
-	FansCount          int64  `orm:"fans_count"               json:"fansCount" v:"required|integer|min:0#必须输入粉丝数|粉丝数为整数类型|粉丝数必须为正整数"`                                                   // 粉丝数
-	GotLikeCount       int64  `orm:"got_like_count"           json:"gotLikeCount" v:"required|integer|min:0#必须输入点赞数|点赞数类型为整数类型|点赞数必须为正整数"`                                              // 点赞数
-	CompositionCount   int64  `orm:"composition_count"        json:"compositionCount" v:"integer|min:0#作品数量为整数类型|作品数量必须为正整数"`                                                            // 作品数量
-	TiktokUid          string `orm:"tiktok_uid"               json:"tiktokUid"`                                                                                         // 抖音uid
-	IsSupportReporting int    `orm:"is_support_reporting"     json:"isSupportReporting" v:"integer|between:0,1#是否支持报备为整数类型|是否支持报备取值范围 :min到:max"`   // 是否支持报备
-	IsSupportLive      int    `orm:"is_support_live"          json:"isSupportLive" v:"integer|between:0,1#是否支持直播为整数类型|是否支持直播取值范围 :min到:max"`        // 是否支持直播
-	IsOpenShowcase     int    `orm:"is_open_showcase"         json:"isOpenShowcase" v:"integer|between:0,1#是否开通商品橱窗为整数类型|是否开通商品橱窗取值范围 :min到:max"` // 是否开通商品橱窗
-	IsAppearInVideo    int    `orm:"is_appear_in_video"       json:"isAppearInVideo" v:"integer|between:0,1#是否出镜为整数类型|是否出镜取值范围 :min到:max"`            // 是否出镜
-	SkilledAt          string `orm:"skilled_at"               json:"skilledAt"`                                                                                         // 擅长领域(info_tallent_skilled_area表中的id的数组)
-	SkilledAt1         int    `json:"skilledAt1" v:"integer|between:1,13#领域类型为整数|领域取值范围为 :min, :max"`
-	SkilledAt2         int    `json:"skilledAt2" v:"integer|between:1,13#领域类型为整数|领域取值范围为 :min, :max"` //
-	SkilledAt3         int    `json:"skilledAt3" v:"integer|between:1,13#领域类型为整数|领域取值范围为 :min, :max"`
-	HomePageCaptureUrl string `orm:"home_page_capture_url"    json:"homePageCaptureUrl" v:"required|url#必须输入主页截图链接|主页截图链接为url"` // 主页截图图片链接
-	AccountFrom        string `orm:"account_from"             json:"accountFrom"`                                // 账号来源(仅B端批量上传的账号需要填写)
-}

+ 0 - 23
app/model/talent_model/platform_weibo.go

@@ -1,23 +0,0 @@
-package talent_model
-
-type PlatformWeibo struct {
-	TalentId           int    `orm:"talent_id,unique"           json:"talentId"`                                                                                        // 达人账号id(talent_info表id值)
-	PlatformId         int    `orm:"platform_id"                json:"platformId" v:"required|integer|between:1,7#必须输入平台id|平台id类型为int|平台id取值范围为 :min到:max"`             // 平台id,与third_platform_info中的id相同
-	PlatformName       string `orm:"platform_name"              json:"platformName"`                                                                                         // 平台名称(冗余)
-	PlatformIconUrl    string `orm:"platform_icon_url"          json:"platformIconUrl"`                                                                                      // 平台icon的url(冗余)
-	PlatformAccountId  string `orm:"platform_account_id"        json:"platformAccountId"`                                                                               // 在平台上的账号
-	PlatformNickname   string `orm:"platform_nickname"          json:"platformNickname" v:"required|length:1,30#必须输入平台昵称|platformNickname长度非法"`                         // 在平台上的昵称
-	HomePageUrl        string `orm:"home_page_url"              json:"homePageUrl" v:"required|url#必须输入主页链接|主页链接为url"`                                                  // 主页链接
-	FansCount          int64  `orm:"fans_count"                 json:"fansCount" v:"required|integer|min:0#必须输入粉丝数|粉丝数为整数类型|粉丝数必须为正整数"`                                                 // 粉丝数
-	WeiboTotalNum      int64  `orm:"weibo_total_num"            json:"weiboTotalNum" v:"integer|min:0#微博总量为整数类型|微博总量必须为正整数"`                                                             // 微博总量
-	IsSupportReporting int    `orm:"is_support_reporting"       json:"isSupportReporting" v:"integer|between:0,1#是否支持报备为整数类型|是否支持报备取值范围 :min到:max"` // 是否支持报备
-	IsSupportLive      int    `orm:"is_support_live"            json:"isSupportLive" v:"integer|between:0,1#是否支持直播为整数类型|是否支持直播取值范围 :min到:max"`      // 是否支持直播
-	CanMakeVideo       int    `orm:"can_make_video"             json:"canMakeVideo" v:"integer|between:0,1#是否可以制作视频为整数类型|是否可以制作视频取值范围 :min到:max"` // 是否可以制作视频
-	IsAppearInVideo    int    `orm:"is_appear_in_video"         json:"isAppearInVideo" v:"integer|between:0,1#是否出镜为整数类型|是否出镜取值范围 :min到:max"`          // 是否出镜
-	SkilledAt          string `orm:"skilled_at"                 json:"skilledAt"`                                                                                       // 擅长领域(info_tallent_skilled_area表中的id的数组)
-	SkilledAt1         int    `json:"skilledAt1" v:"integer|between:1,13#领域类型为整数|领域取值范围为 :min, :max"`
-	SkilledAt2         int    `json:"skilledAt2" v:"integer|between:2,13#领域类型为整数|领域取值范围为 :min, :max"` //
-	SkilledAt3         int    `json:"skilledAt3" v:"integer|between:3,13#领域类型为整数|领域取值范围为 :min, :max"`
-	HomePageCaptureUrl string `orm:"home_page_capture_url"      json:"homePageCaptureUrl" v:"required|url#必须输入主页截图链接|主页截图链接为url"` // 主页截图链接
-	AccountFrom        string `orm:"account_from"               json:"accountFrom"`                                               // 账号来源(仅B端批量上传的账号需要填写)
-}

+ 0 - 20
app/model/talent_model/platform_zhihu.go

@@ -1,20 +0,0 @@
-package talent_model
-
-type PlatformZhihu struct {
-	TalentId           int    `orm:"talent_id,unique"             json:"talentId" `                                                                                                // 达人账号id(talent_info表的id值)
-	PlatformId         int    `orm:"platform_id"                  json:"platformId" v:"required|integer|between:1,7#必须输入平台id|平台id类型为int|平台id取值范围为 :min到:max"`          // 平台id,与third_platform_info中的id相同
-	PlatformName       string `orm:"platform_name"                json:"platformName"`                                                                                            // 平台名称(冗余)
-	PlatformIconUrl    string `orm:"platform_icon_url"            json:"platformIconUrl"`                                                                                         // 平台icon的url(冗余)
-	PlatformAccountId  string `orm:"platform_account_id"          json:"platformAccountId"`                                                                                       // 在平台上的账号
-	PlatformNickname   string `orm:"platform_nickname"            json:"platformNickname" v:"required|length:1,30#必须输入平台昵称|platformNickname长度非法"`                          // 在平台上的昵称
-	HomePageUrl        string `orm:"home_page_url"                json:"homePageUrl" v:"required|url#必须输入主页链接|主页链接为url"`                                                   // 主页链接
-	FansCount          int64  `orm:"fans_count"                   json:"fansCount" v:"required|integer|min:0#必须输入粉丝数|粉丝数为整数类型|粉丝数必须为正整数"`                           // 粉丝数
-	GotAgreeCount      int64  `orm:"got_agree_count"              json:"gotAgreeCount" v:"integer|min:0#被赞同总数为整数类型|被赞同总数必须为正整数"`             // 被赞同总数
-	GotLikeCount       int64  `orm:"got_like_count"               json:"gotLikeCount" v:"integer|min:0#被喜欢总数为整数类型|被喜欢总数必须为正整数"`              // 被喜欢总数
-	GotCollectCount    int64  `orm:"got_collect_count"            json:"gotCollectCount" v:"integer|min:0#被收藏总数为整数类型|被收藏总数必须为正整数"`           // 被收藏总数
-	AnswerCount        int64  `orm:"answer_count"                 json:"answerCount" v:"integer|min:0#回答数为整数类型|回答数必须为正整数"`                         // 回答总数
-	CreativeLevel      int    `orm:"creative_level"               json:"creativeLevel" v:"integer|between:1,10#创作等级为整数类型|创作等级范围在 :min到:max之间"`  // 创作等级
-	TotalReadPlayCount int64  `orm:"total_read_play_count"        json:"totalReadPlayCount" v:"integer|min:0#总阅读播放量为整数类型|总阅读播放量必须为正整数"`                              // 总阅读播放量
-	HomePageCaptureUrl string `orm:"home_page_capture_url"        json:"homePageCaptureUrl" v:"required|url#必须输入主页截图链接|主页截图链接为url"`                                      // 主页截图
-	AccountFrom        string `orm:"account_from"                 json:"accountFrom"`                                                                            // 账号来源(仅B端批量上传的账号需要填写)
-}

+ 0 - 6
app/model/talent_model/search_result.go

@@ -1,6 +0,0 @@
-package talent_model
-
-type SearchByNameResult struct {
-	SearchResult    []*SimpleTaskBaseInfo
-	RecommendResult []*SimpleTaskBaseInfo
-}

+ 0 - 9
app/model/talent_model/signup_info.go

@@ -1,9 +0,0 @@
-package talent_model
-
-type SignupInfo struct {
-	TaskId int `json:"task_id" v:"required|integer#请输入任务id|任务id类型为int"`
-	DeliveryAddrId int `json:"delivery_addr_id" v:"required|integer#请输入收货地址id|收货地址id类型为int"`
-	TaskRecruitLevelId int `json:"task_recruit_level_id" v:"required|integer#请输入招募等级id|招募等级id类型为int"`
-	ProductSpecificationIndex int `json:"product_specification_index" v:"required#请输入商品规格索引"`
-	ProductNote string `json:"product_note"`
-}

+ 0 - 8
app/model/talent_model/talent_brief_info.go

@@ -1,8 +0,0 @@
-package talent_model
-
-type TalentBriefInfo struct {
-	IsInfoComplete bool `json:"is_info_complete"`
-	PlatformCount int `json:"platform_count"`
-	BoBoCoinValue int64 `json:"bo_bo_coin_value"`
-	HasDeliveryAddr bool `json:"has_delivery_addr"`
-}

+ 0 - 12
app/model/talent_model/talent_info.go

@@ -1,12 +0,0 @@
-package talent_model
-
-// TalentSelfInputInfo 达人端用户输入的属性
-type TalentSelfInputInfo struct {
-	TalentAgeBracket  int    `orm:"talent_age_bracket"  json:"talentAgeBracket"  v:"integer|between:1, 5#达人年龄段类型为整形|达人年龄段取值范围为 :min, :max"`                // 年龄段,取talent_age_bracket表id
-	TalentSkinType    int    `orm:"talent_skin_type"    json:"talentSkinType"    v:"integer|between:1, 6#达人肤质为整形|达人肤质取值范围为 :min, :max"`                      // 肤质,取talent_skin_type表的id
-	TalentNationality int    `orm:"talent_nationality"  json:"talentNationality" v:"integer|between:1, 2#达人国籍为整形|达人国籍取值范围为 :min, :max"`                      // 国籍,取talent_nationality表id
-	VisitStoreRegion  int    `orm:"visit_store_region"  json:"visitStoreRegion"  v:"integer#探店区域类型为整形"`                                                          // 探店区域,取region_info表中的self_code
-	TalentGender      int    `orm:"talent_gender"       json:"talentGender"      v:"integer|required|between:0,2#性别类型为整数类型|性别为必填项|性别取值范围为:0未知 1男 2女"` // 性别,0未知 1男 2女
-	TalentWxNumber    string `orm:"talent_wx_number"    json:"talentWxNumber"    v:"required#必须填写微信号"`                                                            // 达人微信号
-	TalentPhoneNumber string `orm:"talent_phone_number" json:"talentPhoneNumber" v:"required|phone#必须填写电话号码|电话号码格式不正确"`                                     // 电话号码
-}

+ 0 - 149
app/model/talent_model/talent_platform_brief.go

@@ -1,149 +0,0 @@
-package talent_model
-
-import (
-	"github.com/gogf/gf/util/gmeta"
-)
-
-type BilibiliBriefInfo struct {
-	gmeta.Meta `orm:"table:platform_bilibili_account_info"`
-
-	PlatformNickname string `json:"platform_nickname"`
-	FansCount        int64  `json:"fans_count"`    // 粉丝数
-	GotLikeCount     int64  `json:"got_like_count"` // 点赞数
-	TalentId         int    `json:"talent_id"`     // 达人账号id(talent_info表id值)
-}
-
-type DianpingBriefInfo struct {
-	gmeta.Meta `orm:"table:platform_dianping_account_info"`
-
-	PlatformNickname string `json:"platform_nickname"`
-	FansCount        int64  `json:"fansCount"`    // 粉丝数
-	GotLikeCount     int64  `json:"gotLikeCount"` // 点赞数
-	TalentId         int    `json:"talentId"`     // 达人账号id(talent_info表id值)
-}
-
-type KuaishouBriefInfo struct {
-	gmeta.Meta `orm:"table:platform_kuaishou_account_info"`
-
-	PlatformNickname string `json:"platform_nickname"`
-	FansCount        int64  `json:"fansCount"`        // 粉丝数
-	CompositionCount int64  `json:"compositionCount"` // 作品数量
-	TalentId         int    `json:"talentId"`         // 达人账号id(talent_info表id值)
-}
-
-
-type LittleRedBookBriefInfo struct {
-	gmeta.Meta `orm:"table:platform_little_red_book_account_info"`
-
-	PlatformNickname string `json:"platform_nickname"`
-	FansCount        int64  `json:"fansCount"`    // 粉丝数
-	GotLikeCount     int64  `json:"gotLikeCount"` // (点)赞(收)藏数
-	TalentId         int    `json:"talentId"`     // 达人账号id(talent_info表id值)
-}
-
-
-type TiktokBriefInfo struct {
-	gmeta.Meta `orm:"table:platform_tiktok_account_info"`
-
-	PlatformNickname string `json:"platform_nickname"`
-	FansCount        int64  `json:"fansCount"`    // 粉丝数
-	GotLikeCount     int64  `json:"gotLikeCount"` // 点赞数
-	TalentId         int    `json:"talentId"`     // 达人账号id(talent_info表id值)
-}
-
-
-type WeiboBriefInfo struct {
-	gmeta.Meta `orm:"table:platform_weibo_account_info"`
-
-	PlatformNickname string `json:"platform_nickname"` //平台昵称
-	FansCount        int64  `json:"fansCount"`     // 粉丝数
-	WeiboTotalNum    int64  `json:"weiboTotalNum"` // 微博总量
-	TalentId         int    `json:"talentId"`      // 达人账号id(talent_info表id值)
-}
-
-
-type ZhihuBriefInfo struct {
-	gmeta.Meta `orm:"table:platform_zhihu_account_info"`
-
-	PlatformNickname string `json:"platform_nickname"` //平台昵称
-	FansCount        int64  `json:"fansCount"`         // 粉丝数
-	GotAgreeCount    int64  `json:"gotAgreeCount"`     // 被赞同总数
-	TalentId         int    `json:"talentId"`          // 达人账号id(talent_info表的id值)
-}
-
-type TalentLittleRedBookBriefInfo struct {
-	gmeta.Meta         `orm:"table:r_talent_platform_table"`
-	Tid                int                     `json:"-"`            // 达人id(talent_info表中的id)
-	PId                int                     `json:"p_id"`         // 平台id(info_third_platform表中的id)
-	ExamineState       int                     `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
-	FailReason         string                  `json:"failReason"`   // 审核驳回原因
-	LittleRedBookBrief *LittleRedBookBriefInfo `orm:"with:talent_id=tid"`
-}
-
-type TalentTiktokBriefInfo struct {
-	gmeta.Meta   `orm:"table:r_talent_platform_table"`
-	Tid          int              `json:"-"`            // 达人id(talent_info表中的id)
-	PId          int              `json:"p_id"`         // 平台id(info_third_platform表中的id)
-	ExamineState int              `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
-	FailReason   string           `json:"failReason"`   // 审核驳回原因
-	TiktokBrief  *TiktokBriefInfo `orm:"with:talent_id=tid"`
-}
-
-type TalentWeiboBriefInfo struct {
-	gmeta.Meta   `orm:"table:r_talent_platform_table"`
-	Tid          int             `json:"-"`            // 达人id(talent_info表中的id)
-	PId          int             `json:"p_id"`         // 平台id(info_third_platform表中的id)
-	ExamineState int             `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
-	FailReason   string          `json:"failReason"`   // 审核驳回原因
-	WeiboBrief   *WeiboBriefInfo `orm:"with:talent_id=tid"`
-}
-
-type TalentKuaishouBriefInfo struct {
-	gmeta.Meta    `orm:"table:r_talent_platform_table"`
-	Tid           int                `json:"-"`            // 达人id(talent_info表中的id)
-	PId           int                `json:"p_id"`         // 平台id(info_third_platform表中的id)
-	ExamineState  int                `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
-	FailReason    string             `json:"failReason"`   // 审核驳回原因
-	KuaishouBrief *KuaishouBriefInfo `orm:"with:talent_id=tid"`
-}
-
-type TalentBilibliBriefInfo struct {
-	gmeta.Meta    `orm:"table:r_talent_platform_table"`
-	Tid           int                `json:"-"`            // 达人id(talent_info表中的id)
-	PId           int                `json:"p_id"`         // 平台id(info_third_platform表中的id)
-	ExamineState  int                `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
-	FailReason    string             `json:"failReason"`   // 审核驳回原因
-	BilibiliBrief *BilibiliBriefInfo `orm:"with:talent_id=tid"`
-}
-
-type TalentDianpingBriefInfo struct {
-	gmeta.Meta    `orm:"table:r_talent_platform_table"`
-	Tid           int                `json:"-"`            // 达人id(talent_info表中的id)
-	PId           int                `json:"p_id"`         // 平台id(info_third_platform表中的id)
-	ExamineState  int                `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
-	FailReason    string             `json:"failReason"`   // 审核驳回原因
-	DianpingBrief *DianpingBriefInfo `orm:"with:talent_id=tid"`
-}
-
-type TalentZhihuBriefInfo struct {
-	gmeta.Meta   `orm:"table:r_talent_platform_table"`
-	Tid          int             `json:"-"`            // 达人id(talent_info表中的id)
-	PId          int             `json:"p_id"`         // 平台id(info_third_platform表中的id)
-	ExamineState int             `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
-	FailReason   string          `json:"failReason"`   // 审核驳回原因
-	ZhihuBrief   *ZhihuBriefInfo `orm:"with:talent_id=tid"`
-}
-
-type TalentPlatformBriefInfo struct {
-	gmeta.Meta `orm:"table:talent_info"`
-	Id                int         `json:"id"`                //
-	TalentWxOpenid    string      `json:"talentWxOpenid"`    // 达人的微信openid
-	TalentWxNickname  string      `json:"talentWxNickname"`  // 达人的微信昵称
-	LittleRedBookBriefInfo *TalentLittleRedBookBriefInfo `orm:"with:tid=id, where:p_id=1"`
-	TiktokBriefInfo *TalentTiktokBriefInfo `orm:"with:tid=id, where:p_id=2"`
-	WeiboBriefInfo *TalentWeiboBriefInfo `orm:"with:tid=id, where:p_id=3"`
-	KuaishouBriefInfo *TalentKuaishouBriefInfo `orm:"with:tid=id, where:p_id=4"`
-	BiliBiliBriefInfo *TalentBilibliBriefInfo `orm:"with:tid=id, where:p_id=5"`
-	DianpingBriefInfo *TalentDianpingBriefInfo `orm:"with:tid=id, where:p_id=6"`
-	ZhihuBriefInfo *TalentZhihuBriefInfo `orm:"with:tid=id, where:p_id=7"`
-}

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