2023-06-04 22:54:54 +08:00
|
|
|
package repository
|
|
|
|
|
2024-02-21 12:04:40 +08:00
|
|
|
import "context"
|
2023-06-04 22:54:54 +08:00
|
|
|
|
|
|
|
type thirdCorpInfoRepository interface {
|
2024-02-21 12:04:40 +08:00
|
|
|
QueryPage(ctx context.Context, page, size int) *[]FThirdCorpInfoDO
|
|
|
|
FindById(ctx context.Context, id uint64) *FThirdCorpInfoDO
|
|
|
|
Count(ctx context.Context) int64
|
2023-06-04 22:54:54 +08:00
|
|
|
|
2024-02-21 12:04:40 +08:00
|
|
|
Create(ctx context.Context, data *FThirdCorpInfoDO) error
|
|
|
|
UpdateById(ctx context.Context, data FThirdCorpInfoDO) error
|
|
|
|
UpdateStatusById(ctx context.Context, id uint64, state int, operator string) error
|
|
|
|
deleteById(ctx context.Context, id uint64, operator string) error
|
2023-06-04 22:54:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
var ThirdCorpInfo thirdCorpInfoRepository = new(thirdCorpInfoRepositoryImpl)
|