Documentation ¶
Index ¶
- type Contest
- func (r Contest) Create(ctx context.Context, model *M) error
- func (r Contest) CreateBatch(ctx context.Context, models []M) error
- func (r Contest) Find(ctx context.Context, id string) (*M, error)
- func (r *Contest) FindByIDs(ctx context.Context, ids []string) ([]models.Contest, error)
- func (r *Contest) FindWithTasks(ctx context.Context, id string) (*models.Contest, error)
- func (r *Contest) Search(ctx context.Context, p *params.Contest) ([]models.Contest, error)
- func (r Contest) TableName() string
- func (r *Contest) Truncate(ctx context.Context) error
- func (r Contest) Tx(f func(conn *database.DBConn) error) error
- func (r Contest) Update(ctx context.Context, model *M) error
- func (r Contest) UpdateWithChilds(ctx context.Context, models *M) error
- type ContestTask
- func (r ContestTask) Create(ctx context.Context, model *M) error
- func (r ContestTask) CreateBatch(ctx context.Context, models []M) error
- func (r ContestTask) Find(ctx context.Context, id string) (*M, error)
- func (r *ContestTask) FindByIDs(ctx context.Context, contestID, taskID string) (*models.ContestTask, error)
- func (r ContestTask) TableName() string
- func (r ContestTask) Truncate(ctx context.Context) error
- func (r ContestTask) Tx(f func(conn *database.DBConn) error) error
- func (r ContestTask) Update(ctx context.Context, model *M) error
- func (r ContestTask) UpdateWithChilds(ctx context.Context, models *M) error
- type RatedType
- func (r RatedType) Create(ctx context.Context, model *M) error
- func (r RatedType) CreateBatch(ctx context.Context, models []M) error
- func (r RatedType) Find(ctx context.Context, id string) (*M, error)
- func (r RatedType) TableName() string
- func (r RatedType) Truncate(ctx context.Context) error
- func (r RatedType) Tx(f func(conn *database.DBConn) error) error
- func (r RatedType) Update(ctx context.Context, model *M) error
- func (r RatedType) UpdateWithChilds(ctx context.Context, models *M) error
- type Task
- func (r Task) Create(ctx context.Context, model *M) error
- func (r Task) CreateBatch(ctx context.Context, models []M) error
- func (r Task) Find(ctx context.Context, id string) (*M, error)
- func (r *Task) FindWithSamples(ctx context.Context, taskID string) (*models.Task, error)
- func (r Task) TableName() string
- func (r Task) Truncate(ctx context.Context) error
- func (r Task) Tx(f func(conn *database.DBConn) error) error
- func (r Task) Update(ctx context.Context, model *M) error
- func (r Task) UpdateWithChilds(ctx context.Context, models *M) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contest ¶
type Contest struct {
// contains filtered or unexported fields
}
func NewContest ¶
func NewContestWithDBConn ¶
func (Contest) CreateBatch ¶
func (*Contest) FindWithTasks ¶
func (Contest) UpdateWithChilds ¶
type ContestTask ¶
type ContestTask struct {
// contains filtered or unexported fields
}
func NewContestTask ¶
func NewContestTask(db *gorm.DB) *ContestTask
func NewContestTaskWithDBConn ¶
func NewContestTaskWithDBConn(dbConn *database.DBConn) *ContestTask
func (ContestTask) CreateBatch ¶
func (*ContestTask) FindByIDs ¶
func (r *ContestTask) FindByIDs(ctx context.Context, contestID, taskID string) (*models.ContestTask, error)
func (ContestTask) UpdateWithChilds ¶
type RatedType ¶
type RatedType struct {
// contains filtered or unexported fields
}
func NewRateType ¶
func NewRatedTypeWithDBConn ¶
func (RatedType) CreateBatch ¶
func (RatedType) UpdateWithChilds ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func NewTaskWithDBConn ¶
func (Task) CreateBatch ¶
func (*Task) FindWithSamples ¶
func (Task) UpdateWithChilds ¶
Click to show internal directories.
Click to hide internal directories.