Browse Source

add todo

dev
Tooooommy 4 years ago
parent
commit
02facc2fa8
  1. 5
      TODO
  2. 5
      controllers/client/sign.go
  3. 2
      go.mod
  4. 2
      go.sum
  5. 1
      ready.md

5
TODO

@ -0,0 +1,5 @@
Todo:
[ ] 使用gin代替原来的框架
[ ] 重新设计微信支付模块
[ ] 重新设计IM模块
[ ] 重新设计定时模块

5
controllers/client/sign.go

@ -26,11 +26,6 @@ func (t *SignCtl) CheckSign() {
t.CheckErr(err)
t.Assert(exist, code.MSG_ACTIVITY_NOT_EXIST, "互动不存在")
customer := models.Customer{}
exist, err = models.Get(&customer, activity.CustomerId)
t.CheckErr(err)
t.Assert(exist, code.MSG_CUSTOMER_NOT_EXIST, "客户不存在")
area := &models.AreaStore{}
exist, err = models.Get(area, areaId)
t.CheckErr(err)

2
go.mod

@ -42,7 +42,7 @@ require (
github.com/wailovet/overseer v0.0.0-20190412102736-c280479fa09f // indirect
github.com/xormplus/builder v0.0.0-20200331055651-240ff40009be // indirect
github.com/xormplus/core v0.0.0-20200308074340-f3bce19d5f31 // indirect
github.com/xormplus/xorm v0.0.0-20200912034818-5d90dcd4e3d6
github.com/xormplus/xorm v0.0.0-20201020065950-782d727a761a
go.uber.org/atomic v1.7.0
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.16.0

2
go.sum

@ -145,6 +145,8 @@ github.com/xormplus/core v0.0.0-20200308074340-f3bce19d5f31 h1:Xc/TNcIKyvLIp1Y9K
github.com/xormplus/core v0.0.0-20200308074340-f3bce19d5f31/go.mod h1:V3p6iAR/MaICgU6GJqxGQxspfljTyfOTv4Czz0B5atU=
github.com/xormplus/xorm v0.0.0-20200912034818-5d90dcd4e3d6 h1:8wMAe6KZ0YOG1RvjxyK5VhB29grvQbhb6MZTDIdpSd4=
github.com/xormplus/xorm v0.0.0-20200912034818-5d90dcd4e3d6/go.mod h1:+v6b10b4x5IcQmp1/Cbo9IqaknxVeuhQng+fhya6bdI=
github.com/xormplus/xorm v0.0.0-20201020065950-782d727a761a h1:TIJMWUrN8fYGn9penwk6ZtyHMsVvvxaeac6eW6UTu0Q=
github.com/xormplus/xorm v0.0.0-20201020065950-782d727a761a/go.mod h1:+v6b10b4x5IcQmp1/Cbo9IqaknxVeuhQng+fhya6bdI=
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw=
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=

1
ready.md

@ -1 +0,0 @@
go + gorm + mysql
Loading…
Cancel
Save