Browse Source

update

tags/v0.0.2
shenjiachi 1 month ago
parent
commit
a640da92ba
5 changed files with 14 additions and 4 deletions
  1. +0
    -4
      go.mod
  2. +1
    -0
      src/dao/egg_public_platoon_basic_setting_dao.go
  3. +1
    -0
      src/dao/public_platoon_user_relation_dao.go
  4. +8
    -0
      src/implement/public_platoon_basic_setting_implement.go
  5. +4
    -0
      src/implement/public_platoon_user_relation_implement.go

+ 0
- 4
go.mod View File

@@ -7,16 +7,13 @@ require (
github.com/syyongx/php2go v0.9.8
go.uber.org/zap v1.13.0
gopkg.in/natefinch/lumberjack.v2 v2.2.1
gopkg.in/yaml.v3 v3.0.1
xorm.io/xorm v1.3.1
)

require (
filippo.io/edwards25519 v1.1.0 // indirect
github.com/go-xorm/xorm v0.7.9 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/jinzhu/copier v0.4.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
@@ -30,5 +27,4 @@ require (
golang.org/x/sys v0.8.0 // indirect
golang.org/x/tools v0.0.0-20201124115921-2c860bdd6e78 // indirect
xorm.io/builder v0.3.13 // indirect
xorm.io/core v0.7.3 // indirect
)

+ 1
- 0
src/dao/egg_public_platoon_basic_setting_dao.go View File

@@ -12,4 +12,5 @@ type PublicPlatoonBasicSettingDao interface {
PublicPlatoonBasicSettingUpdate(id interface{}, PublicPlatoonBasicSetting *model.PublicPlatoonBasicSetting, forceColums ...string) (int64, error)
PublicPlatoonBasicSettingGetOneByParams(params map[string]interface{}) (*model.PublicPlatoonBasicSetting, error)
PublicPlatoonBasicSettingFindByParams(params map[string]interface{}) (*[]model.PublicPlatoonBasicSetting, error)
PublicPlatoonBasicSettingGetOne() (*model.PublicPlatoonBasicSetting, error)
}

+ 1
- 0
src/dao/public_platoon_user_relation_dao.go View File

@@ -13,4 +13,5 @@ type PublicPlatoonUserRelationDao interface {
PublicPlatoonUserRelationFindByPid(fatherUid int64, fatherName, positionName string) ([]model.PublicPlatoonUserRelation, error)
PublicPlatoonUserRelationFindCountByPosition(fatherUid int64, fatherName, positionName string, startPosition, endPosition int64) ([]model.PublicPlatoonUserRelation, int64, error)
PublicPlatoonUserRelationFindByParamsByPage(params map[string]interface{}, page, pageSize int) (*[]model.PublicPlatoonUserRelation, error)
PublicPlatoonUserRelationGet(phone int, uid int64, inviteCode string) (mm *[]model.PublicPlatoonUserRelation, err error)
}

+ 8
- 0
src/implement/public_platoon_basic_setting_implement.go View File

@@ -19,6 +19,14 @@ type PublicPlatoonBasicSettingDb struct {
Db *xorm.Engine
}

func (p PublicPlatoonBasicSettingDb) PublicPlatoonBasicSettingGetOne() (*model.PublicPlatoonBasicSetting, error) {
var m model.PublicPlatoonBasicSetting
if has, err := p.Db.Where("id >= 1").Get(&m); err != nil || has == false {
return nil, zhios_order_relate_logx.Error(err)
}
return &m, nil
}

func (p PublicPlatoonBasicSettingDb) PublicPlatoonBasicSettingInsert(PublicPlatoonBasicSetting *model.PublicPlatoonBasicSetting) (int, error) {
_, err := p.Db.InsertOne(PublicPlatoonBasicSetting)
if err != nil {


+ 4
- 0
src/implement/public_platoon_user_relation_implement.go View File

@@ -119,3 +119,7 @@ func (p PublicPlatoonUserRelationDb) PublicPlatoonUserRelationFindByParamsByPage
}
}
}

func (p PublicPlatoonUserRelationDb) agPublicPlatoonUserRelationGet(phone int, uid int64, inviteCode string) (mm *[]model.PublicPlatoonUserRelation, err error) {
return
}

Loading…
Cancel
Save