作者 陈志颖

feat:添加修改账号DAO

package dao
import (
"fmt"
pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
)
type BidInfosDao struct {
transactionContext *pgTransaction.TransactionContext
}
//TODO ChangeBidInfosSuccessfulBidderAccount
func (dao *BidInfosDao) ChangeBidInfosSuccessfulBidderAccount() {
}
func NewBidInfosDao(transactionContext *pgTransaction.TransactionContext) (*BidInfosDao, error) {
if transactionContext == nil {
return nil, fmt.Errorf("transactionContext参数不能为nil")
} else {
return &BidInfosDao{
transactionContext: transactionContext,
}, nil
}
}
... ...
package dao
import (
"fmt"
pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
)
type BidderInfosDao struct {
transactionContext *pgTransaction.TransactionContext
}
//TODO ChangeBidderInfosBidderAccount
func (dao *BidderInfosDao) ChangeBidderInfosBidderAccount() {
}
func NewBidderInfosDao(transactionContext *pgTransaction.TransactionContext) (*BidderInfosDao, error) {
if transactionContext == nil {
return nil, fmt.Errorf("transactionContext参数不能为nil")
} else {
return &BidderInfosDao{
transactionContext: transactionContext,
}, nil
}
}
... ...
package dao
import (
"fmt"
pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
)
type OffTaskRecordsDao struct {
transactionContext *pgTransaction.TransactionContext
}
//TODO ChangeOffTaskRecordsOperatorAccount
func (dao *OffTaskRecordsDao) ChangeOffTaskRecordsOperatorAccount() {
}
func NewOffTaskRecordsDao(transactionContext *pgTransaction.TransactionContext) (*OffTaskRecordsDao, error) {
if transactionContext == nil {
return nil, fmt.Errorf("transactionContext参数不能为nil")
} else {
return &OffTaskRecordsDao{
transactionContext: transactionContext,
}, nil
}
}
... ...
package dao
import (
"fmt"
pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
)
type RejectTaskRecordsDao struct {
transactionContext *pgTransaction.TransactionContext
}
//TODO ChangeRejectTaskRecordsOperatorAccount
func (dao *RejectTaskRecordsDao) ChangeRejectTaskRecordsOperatorAccount() {
}
func NewRejectTaskRecordsDao(transactionContext *pgTransaction.TransactionContext) (*RejectTaskRecordsDao, error) {
if transactionContext == nil {
return nil, fmt.Errorf("transactionContext参数不能为nil")
} else {
return &RejectTaskRecordsDao{
transactionContext: transactionContext,
}, nil
}
}
... ...
package dao
import (
"fmt"
pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
)
type RobInfosDao struct {
transactionContext *pgTransaction.TransactionContext
}
//TODO ChangeRobInfosReceiverAccount
func (dao *RobInfosDao) ChangeRobInfosReceiverAccount() {
}
func NewRobInfosDao(transactionContext *pgTransaction.TransactionContext) (*RobInfosDao, error) {
if transactionContext == nil {
return nil, fmt.Errorf("transactionContext参数不能为nil")
} else {
return &RobInfosDao{
transactionContext: transactionContext,
}, nil
}
}
... ...
package dao
import (
"fmt"
pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
)
type SentNotificationDao struct {
transactionContext *pgTransaction.TransactionContext
}
//TODO ChangeSentNotificationReceiverAccount
func (dao *SentNotificationDao) ChangeSentNotificationReceiverAccount() {
}
func NewSentNotificationDao(transactionContext *pgTransaction.TransactionContext) (*SentNotificationDao, error) {
if transactionContext == nil {
return nil, fmt.Errorf("transactionContext参数不能为nil")
} else {
return &SentNotificationDao{
transactionContext: transactionContext,
}, nil
}
}
\ No newline at end of file
... ...
package dao
import (
"fmt"
pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
)
type SuMoneyTransactionRecordsDao struct {
transactionContext *pgTransaction.TransactionContext
}
//TODO ChangeSuMoneyTransactionRecordsEmployeeAccount
func (dao *SuMoneyTransactionRecordsDao) ChangeSuMoneyTransactionRecordsEmployeeAccount() {
}
//TODO ChangeSuMoneyTransactionRecordsOperatorAccount
func (dao *SuMoneyTransactionRecordsDao) ChangeSuMoneyTransactionRecordsOperatorAccount() {
}
func NewSuMoneyTransactionRecordsDao(transactionContext *pgTransaction.TransactionContext) (*SuMoneyTransactionRecordsDao, error) {
if transactionContext == nil {
return nil, fmt.Errorf("transactionContext参数不能为nil")
} else {
return &SuMoneyTransactionRecordsDao{
transactionContext: transactionContext,
}, nil
}
}
\ No newline at end of file
... ...
... ... @@ -362,6 +362,26 @@ func (dao *TaskDao) CalculatePersonTask(uid int64, companyId int) (map[string]in
}, nil
}
//TODO ChangeSponsorAccount 修改sponsor手机号 jsonb
func (dao *TaskDao) ChangeSponsorAccount() {
}
//TODO ChangeParticipatorAccount 修改participator手机号 jsonb_array
func (dao *TaskDao) ChangeParticipatorAccount() {
}
//TODO ChangeTaskPercentageContributorAccount 修改task_percentage contributor手机号 jsonb_array
func (dao *TaskDao) ChangeTaskPercentageContributorAccount() {
}
//TODO ChangeAssignedPersonAccount 修改assigned_person手机号 jsonb
func (dao *TaskDao) ChangeAssignedPersonAccount() {
}
func NewTaskDao(transactionContext *pgTransaction.TransactionContext) (*TaskDao, error) {
if transactionContext == nil {
return nil, fmt.Errorf("transactionContext参数不能为nil")
... ...