@@ -7,16 +7,13 @@ require ( | |||||
github.com/syyongx/php2go v0.9.8 | github.com/syyongx/php2go v0.9.8 | ||||
go.uber.org/zap v1.13.0 | go.uber.org/zap v1.13.0 | ||||
gopkg.in/natefinch/lumberjack.v2 v2.2.1 | gopkg.in/natefinch/lumberjack.v2 v2.2.1 | ||||
gopkg.in/yaml.v3 v3.0.1 | |||||
xorm.io/xorm v1.3.1 | xorm.io/xorm v1.3.1 | ||||
) | ) | ||||
require ( | require ( | ||||
filippo.io/edwards25519 v1.1.0 // indirect | 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/goccy/go-json v0.10.2 // indirect | ||||
github.com/golang/snappy v0.0.4 // 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/json-iterator/go v1.1.12 // indirect | ||||
github.com/mattn/go-isatty v0.0.19 // indirect | github.com/mattn/go-isatty v0.0.19 // indirect | ||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // 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/sys v0.8.0 // indirect | ||||
golang.org/x/tools v0.0.0-20201124115921-2c860bdd6e78 // indirect | golang.org/x/tools v0.0.0-20201124115921-2c860bdd6e78 // indirect | ||||
xorm.io/builder v0.3.13 // indirect | xorm.io/builder v0.3.13 // indirect | ||||
xorm.io/core v0.7.3 // indirect | |||||
) | ) |
@@ -12,4 +12,5 @@ type PublicPlatoonBasicSettingDao interface { | |||||
PublicPlatoonBasicSettingUpdate(id interface{}, PublicPlatoonBasicSetting *model.PublicPlatoonBasicSetting, forceColums ...string) (int64, error) | PublicPlatoonBasicSettingUpdate(id interface{}, PublicPlatoonBasicSetting *model.PublicPlatoonBasicSetting, forceColums ...string) (int64, error) | ||||
PublicPlatoonBasicSettingGetOneByParams(params map[string]interface{}) (*model.PublicPlatoonBasicSetting, error) | PublicPlatoonBasicSettingGetOneByParams(params map[string]interface{}) (*model.PublicPlatoonBasicSetting, error) | ||||
PublicPlatoonBasicSettingFindByParams(params map[string]interface{}) (*[]model.PublicPlatoonBasicSetting, error) | PublicPlatoonBasicSettingFindByParams(params map[string]interface{}) (*[]model.PublicPlatoonBasicSetting, error) | ||||
PublicPlatoonBasicSettingGetOne() (*model.PublicPlatoonBasicSetting, error) | |||||
} | } |
@@ -13,4 +13,5 @@ type PublicPlatoonUserRelationDao interface { | |||||
PublicPlatoonUserRelationFindByPid(fatherUid int64, fatherName, positionName string) ([]model.PublicPlatoonUserRelation, error) | PublicPlatoonUserRelationFindByPid(fatherUid int64, fatherName, positionName string) ([]model.PublicPlatoonUserRelation, error) | ||||
PublicPlatoonUserRelationFindCountByPosition(fatherUid int64, fatherName, positionName string, startPosition, endPosition int64) ([]model.PublicPlatoonUserRelation, int64, 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) | PublicPlatoonUserRelationFindByParamsByPage(params map[string]interface{}, page, pageSize int) (*[]model.PublicPlatoonUserRelation, error) | ||||
PublicPlatoonUserRelationGet(phone int, uid int64, inviteCode string) (mm *[]model.PublicPlatoonUserRelation, err error) | |||||
} | } |
@@ -19,6 +19,14 @@ type PublicPlatoonBasicSettingDb struct { | |||||
Db *xorm.Engine | 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) { | func (p PublicPlatoonBasicSettingDb) PublicPlatoonBasicSettingInsert(PublicPlatoonBasicSetting *model.PublicPlatoonBasicSetting) (int, error) { | ||||
_, err := p.Db.InsertOne(PublicPlatoonBasicSetting) | _, err := p.Db.InsertOne(PublicPlatoonBasicSetting) | ||||
if err != nil { | if err != nil { | ||||
@@ -119,3 +119,7 @@ func (p PublicPlatoonUserRelationDb) PublicPlatoonUserRelationFindByParamsByPage | |||||
} | } | ||||
} | } | ||||
} | } | ||||
func (p PublicPlatoonUserRelationDb) agPublicPlatoonUserRelationGet(phone int, uid int64, inviteCode string) (mm *[]model.PublicPlatoonUserRelation, err error) { | |||||
return | |||||
} |