正在显示
8 个修改的文件
包含
200 行增加
和
0 行删除
pkg/infrastructure/dao/pg_bid_infos_dao.go
0 → 100644
1 | +package dao | ||
2 | + | ||
3 | +import ( | ||
4 | + "fmt" | ||
5 | + pgTransaction "github.com/linmadan/egglib-go/transaction/pg" | ||
6 | +) | ||
7 | + | ||
8 | +type BidInfosDao struct { | ||
9 | + transactionContext *pgTransaction.TransactionContext | ||
10 | +} | ||
11 | + | ||
12 | +//TODO ChangeBidInfosSuccessfulBidderAccount | ||
13 | +func (dao *BidInfosDao) ChangeBidInfosSuccessfulBidderAccount() { | ||
14 | + | ||
15 | +} | ||
16 | + | ||
17 | +func NewBidInfosDao(transactionContext *pgTransaction.TransactionContext) (*BidInfosDao, error) { | ||
18 | + if transactionContext == nil { | ||
19 | + return nil, fmt.Errorf("transactionContext参数不能为nil") | ||
20 | + } else { | ||
21 | + return &BidInfosDao{ | ||
22 | + transactionContext: transactionContext, | ||
23 | + }, nil | ||
24 | + } | ||
25 | +} |
1 | +package dao | ||
2 | + | ||
3 | +import ( | ||
4 | + "fmt" | ||
5 | + pgTransaction "github.com/linmadan/egglib-go/transaction/pg" | ||
6 | +) | ||
7 | + | ||
8 | +type BidderInfosDao struct { | ||
9 | + transactionContext *pgTransaction.TransactionContext | ||
10 | +} | ||
11 | + | ||
12 | +//TODO ChangeBidderInfosBidderAccount | ||
13 | +func (dao *BidderInfosDao) ChangeBidderInfosBidderAccount() { | ||
14 | + | ||
15 | +} | ||
16 | + | ||
17 | +func NewBidderInfosDao(transactionContext *pgTransaction.TransactionContext) (*BidderInfosDao, error) { | ||
18 | + if transactionContext == nil { | ||
19 | + return nil, fmt.Errorf("transactionContext参数不能为nil") | ||
20 | + } else { | ||
21 | + return &BidderInfosDao{ | ||
22 | + transactionContext: transactionContext, | ||
23 | + }, nil | ||
24 | + } | ||
25 | +} |
1 | +package dao | ||
2 | + | ||
3 | +import ( | ||
4 | + "fmt" | ||
5 | + pgTransaction "github.com/linmadan/egglib-go/transaction/pg" | ||
6 | +) | ||
7 | + | ||
8 | +type OffTaskRecordsDao struct { | ||
9 | + transactionContext *pgTransaction.TransactionContext | ||
10 | +} | ||
11 | + | ||
12 | +//TODO ChangeOffTaskRecordsOperatorAccount | ||
13 | +func (dao *OffTaskRecordsDao) ChangeOffTaskRecordsOperatorAccount() { | ||
14 | + | ||
15 | +} | ||
16 | + | ||
17 | +func NewOffTaskRecordsDao(transactionContext *pgTransaction.TransactionContext) (*OffTaskRecordsDao, error) { | ||
18 | + if transactionContext == nil { | ||
19 | + return nil, fmt.Errorf("transactionContext参数不能为nil") | ||
20 | + } else { | ||
21 | + return &OffTaskRecordsDao{ | ||
22 | + transactionContext: transactionContext, | ||
23 | + }, nil | ||
24 | + } | ||
25 | +} |
1 | +package dao | ||
2 | + | ||
3 | +import ( | ||
4 | + "fmt" | ||
5 | + pgTransaction "github.com/linmadan/egglib-go/transaction/pg" | ||
6 | +) | ||
7 | + | ||
8 | +type RejectTaskRecordsDao struct { | ||
9 | + transactionContext *pgTransaction.TransactionContext | ||
10 | +} | ||
11 | + | ||
12 | +//TODO ChangeRejectTaskRecordsOperatorAccount | ||
13 | +func (dao *RejectTaskRecordsDao) ChangeRejectTaskRecordsOperatorAccount() { | ||
14 | + | ||
15 | +} | ||
16 | + | ||
17 | +func NewRejectTaskRecordsDao(transactionContext *pgTransaction.TransactionContext) (*RejectTaskRecordsDao, error) { | ||
18 | + if transactionContext == nil { | ||
19 | + return nil, fmt.Errorf("transactionContext参数不能为nil") | ||
20 | + } else { | ||
21 | + return &RejectTaskRecordsDao{ | ||
22 | + transactionContext: transactionContext, | ||
23 | + }, nil | ||
24 | + } | ||
25 | +} |
pkg/infrastructure/dao/pg_rob_infos_dao.go
0 → 100644
1 | +package dao | ||
2 | + | ||
3 | +import ( | ||
4 | + "fmt" | ||
5 | + pgTransaction "github.com/linmadan/egglib-go/transaction/pg" | ||
6 | +) | ||
7 | + | ||
8 | +type RobInfosDao struct { | ||
9 | + transactionContext *pgTransaction.TransactionContext | ||
10 | +} | ||
11 | + | ||
12 | +//TODO ChangeRobInfosReceiverAccount | ||
13 | +func (dao *RobInfosDao) ChangeRobInfosReceiverAccount() { | ||
14 | + | ||
15 | +} | ||
16 | + | ||
17 | +func NewRobInfosDao(transactionContext *pgTransaction.TransactionContext) (*RobInfosDao, error) { | ||
18 | + if transactionContext == nil { | ||
19 | + return nil, fmt.Errorf("transactionContext参数不能为nil") | ||
20 | + } else { | ||
21 | + return &RobInfosDao{ | ||
22 | + transactionContext: transactionContext, | ||
23 | + }, nil | ||
24 | + } | ||
25 | +} |
1 | +package dao | ||
2 | + | ||
3 | +import ( | ||
4 | + "fmt" | ||
5 | + pgTransaction "github.com/linmadan/egglib-go/transaction/pg" | ||
6 | +) | ||
7 | + | ||
8 | +type SentNotificationDao struct { | ||
9 | + transactionContext *pgTransaction.TransactionContext | ||
10 | +} | ||
11 | + | ||
12 | +//TODO ChangeSentNotificationReceiverAccount | ||
13 | +func (dao *SentNotificationDao) ChangeSentNotificationReceiverAccount() { | ||
14 | + | ||
15 | +} | ||
16 | + | ||
17 | +func NewSentNotificationDao(transactionContext *pgTransaction.TransactionContext) (*SentNotificationDao, error) { | ||
18 | + if transactionContext == nil { | ||
19 | + return nil, fmt.Errorf("transactionContext参数不能为nil") | ||
20 | + } else { | ||
21 | + return &SentNotificationDao{ | ||
22 | + transactionContext: transactionContext, | ||
23 | + }, nil | ||
24 | + } | ||
25 | +} |
1 | +package dao | ||
2 | + | ||
3 | +import ( | ||
4 | + "fmt" | ||
5 | + pgTransaction "github.com/linmadan/egglib-go/transaction/pg" | ||
6 | +) | ||
7 | + | ||
8 | +type SuMoneyTransactionRecordsDao struct { | ||
9 | + transactionContext *pgTransaction.TransactionContext | ||
10 | +} | ||
11 | + | ||
12 | +//TODO ChangeSuMoneyTransactionRecordsEmployeeAccount | ||
13 | +func (dao *SuMoneyTransactionRecordsDao) ChangeSuMoneyTransactionRecordsEmployeeAccount() { | ||
14 | + | ||
15 | +} | ||
16 | + | ||
17 | +//TODO ChangeSuMoneyTransactionRecordsOperatorAccount | ||
18 | +func (dao *SuMoneyTransactionRecordsDao) ChangeSuMoneyTransactionRecordsOperatorAccount() { | ||
19 | + | ||
20 | +} | ||
21 | + | ||
22 | +func NewSuMoneyTransactionRecordsDao(transactionContext *pgTransaction.TransactionContext) (*SuMoneyTransactionRecordsDao, error) { | ||
23 | + if transactionContext == nil { | ||
24 | + return nil, fmt.Errorf("transactionContext参数不能为nil") | ||
25 | + } else { | ||
26 | + return &SuMoneyTransactionRecordsDao{ | ||
27 | + transactionContext: transactionContext, | ||
28 | + }, nil | ||
29 | + } | ||
30 | +} |
@@ -362,6 +362,26 @@ func (dao *TaskDao) CalculatePersonTask(uid int64, companyId int) (map[string]in | @@ -362,6 +362,26 @@ func (dao *TaskDao) CalculatePersonTask(uid int64, companyId int) (map[string]in | ||
362 | }, nil | 362 | }, nil |
363 | } | 363 | } |
364 | 364 | ||
365 | +//TODO ChangeSponsorAccount 修改sponsor手机号 jsonb | ||
366 | +func (dao *TaskDao) ChangeSponsorAccount() { | ||
367 | + | ||
368 | +} | ||
369 | + | ||
370 | +//TODO ChangeParticipatorAccount 修改participator手机号 jsonb_array | ||
371 | +func (dao *TaskDao) ChangeParticipatorAccount() { | ||
372 | + | ||
373 | +} | ||
374 | + | ||
375 | +//TODO ChangeTaskPercentageContributorAccount 修改task_percentage contributor手机号 jsonb_array | ||
376 | +func (dao *TaskDao) ChangeTaskPercentageContributorAccount() { | ||
377 | + | ||
378 | +} | ||
379 | + | ||
380 | +//TODO ChangeAssignedPersonAccount 修改assigned_person手机号 jsonb | ||
381 | +func (dao *TaskDao) ChangeAssignedPersonAccount() { | ||
382 | + | ||
383 | +} | ||
384 | + | ||
365 | func NewTaskDao(transactionContext *pgTransaction.TransactionContext) (*TaskDao, error) { | 385 | func NewTaskDao(transactionContext *pgTransaction.TransactionContext) (*TaskDao, error) { |
366 | if transactionContext == nil { | 386 | if transactionContext == nil { |
367 | return nil, fmt.Errorf("transactionContext参数不能为nil") | 387 | return nil, fmt.Errorf("transactionContext参数不能为nil") |
-
请 注册 或 登录 后发表评论