Documentation ¶
Index ¶
- type AudioModel
- type ProblemModel
- func (_m *ProblemModel) GetCreatedAt() time.Time
- func (_m *ProblemModel) GetCreatedBy() uint
- func (_m *ProblemModel) GetID() uint
- func (_m *ProblemModel) GetNumber() int
- func (_m *ProblemModel) GetProblemType() string
- func (_m *ProblemModel) GetProperties(ctx context.Context) map[string]interface{}
- func (_m *ProblemModel) GetUpdatedAt() time.Time
- func (_m *ProblemModel) GetUpdatedBy() uint
- func (_m *ProblemModel) GetVersion() int
- type StudentModel
- type StudyType
- type SystemStudentModel
- func (_m *SystemStudentModel) GetID() uint
- func (_m *SystemStudentModel) GetLoginID() string
- func (_m *SystemStudentModel) GetOrganizationID() userdomain.OrganizationID
- func (_m *SystemStudentModel) GetProperties() map[string]string
- func (_m *SystemStudentModel) GetRoles() []string
- func (_m *SystemStudentModel) GetUsername() string
- type WorkbookModel
- func (_m *WorkbookModel) GetCreatedAt() time.Time
- func (_m *WorkbookModel) GetCreatedBy() uint
- func (_m *WorkbookModel) GetID() uint
- func (_m *WorkbookModel) GetLang2() domain.Lang2
- func (_m *WorkbookModel) GetName() string
- func (_m *WorkbookModel) GetOwnerID() userdomain.AppUserID
- func (_m *WorkbookModel) GetProblemType() string
- func (_m *WorkbookModel) GetProperties() map[string]string
- func (_m *WorkbookModel) GetQuestionText() string
- func (_m *WorkbookModel) GetSpaceID() userdomain.SpaceID
- func (_m *WorkbookModel) GetUpdatedAt() time.Time
- func (_m *WorkbookModel) GetUpdatedBy() uint
- func (_m *WorkbookModel) GetVersion() int
- func (_m *WorkbookModel) HasPrivilege(privilege userdomain.RBACAction) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioModel ¶
AudioModel is an autogenerated mock type for the AudioModel type
func NewAudioModel ¶
func NewAudioModel(t testing.TB) *AudioModel
NewAudioModel creates a new instance of AudioModel. It also registers a cleanup function to assert the mocks expectations.
func (*AudioModel) GetContent ¶
func (_m *AudioModel) GetContent() string
GetContent provides a mock function with given fields:
func (*AudioModel) GetID ¶
func (_m *AudioModel) GetID() uint
GetID provides a mock function with given fields:
func (*AudioModel) GetLang2 ¶
func (_m *AudioModel) GetLang2() domain.Lang2
GetLang2 provides a mock function with given fields:
func (*AudioModel) GetText ¶
func (_m *AudioModel) GetText() string
GetText provides a mock function with given fields:
type ProblemModel ¶
ProblemModel is an autogenerated mock type for the ProblemModel type
func NewProblemModel ¶
func NewProblemModel(t testing.TB) *ProblemModel
NewProblemModel creates a new instance of ProblemModel. It also registers a cleanup function to assert the mocks expectations.
func (*ProblemModel) GetCreatedAt ¶
func (_m *ProblemModel) GetCreatedAt() time.Time
GetCreatedAt provides a mock function with given fields:
func (*ProblemModel) GetCreatedBy ¶
func (_m *ProblemModel) GetCreatedBy() uint
GetCreatedBy provides a mock function with given fields:
func (*ProblemModel) GetID ¶
func (_m *ProblemModel) GetID() uint
GetID provides a mock function with given fields:
func (*ProblemModel) GetNumber ¶
func (_m *ProblemModel) GetNumber() int
GetNumber provides a mock function with given fields:
func (*ProblemModel) GetProblemType ¶
func (_m *ProblemModel) GetProblemType() string
GetProblemType provides a mock function with given fields:
func (*ProblemModel) GetProperties ¶
func (_m *ProblemModel) GetProperties(ctx context.Context) map[string]interface{}
GetProperties provides a mock function with given fields: ctx
func (*ProblemModel) GetUpdatedAt ¶
func (_m *ProblemModel) GetUpdatedAt() time.Time
GetUpdatedAt provides a mock function with given fields:
func (*ProblemModel) GetUpdatedBy ¶
func (_m *ProblemModel) GetUpdatedBy() uint
GetUpdatedBy provides a mock function with given fields:
func (*ProblemModel) GetVersion ¶
func (_m *ProblemModel) GetVersion() int
GetVersion provides a mock function with given fields:
type StudentModel ¶
StudentModel is an autogenerated mock type for the StudentModel type
func NewStudentModel ¶
func NewStudentModel(t testing.TB) *StudentModel
NewStudentModel creates a new instance of StudentModel. It also registers a cleanup function to assert the mocks expectations.
func (*StudentModel) GetID ¶
func (_m *StudentModel) GetID() uint
GetID provides a mock function with given fields:
func (*StudentModel) GetLoginID ¶
func (_m *StudentModel) GetLoginID() string
GetLoginID provides a mock function with given fields:
func (*StudentModel) GetOrganizationID ¶
func (_m *StudentModel) GetOrganizationID() userdomain.OrganizationID
GetOrganizationID provides a mock function with given fields:
func (*StudentModel) GetProperties ¶
func (_m *StudentModel) GetProperties() map[string]string
GetProperties provides a mock function with given fields:
func (*StudentModel) GetRoles ¶
func (_m *StudentModel) GetRoles() []string
GetRoles provides a mock function with given fields:
func (*StudentModel) GetUsername ¶
func (_m *StudentModel) GetUsername() string
GetUsername provides a mock function with given fields:
type StudyType ¶
StudyType is an autogenerated mock type for the StudyType type
func NewStudyType ¶
NewStudyType creates a new instance of StudyType. It also registers a cleanup function to assert the mocks expectations.
type SystemStudentModel ¶
SystemStudentModel is an autogenerated mock type for the SystemStudentModel type
func NewSystemStudentModel ¶
func NewSystemStudentModel(t testing.TB) *SystemStudentModel
NewSystemStudentModel creates a new instance of SystemStudentModel. It also registers a cleanup function to assert the mocks expectations.
func (*SystemStudentModel) GetID ¶
func (_m *SystemStudentModel) GetID() uint
GetID provides a mock function with given fields:
func (*SystemStudentModel) GetLoginID ¶
func (_m *SystemStudentModel) GetLoginID() string
GetLoginID provides a mock function with given fields:
func (*SystemStudentModel) GetOrganizationID ¶
func (_m *SystemStudentModel) GetOrganizationID() userdomain.OrganizationID
GetOrganizationID provides a mock function with given fields:
func (*SystemStudentModel) GetProperties ¶
func (_m *SystemStudentModel) GetProperties() map[string]string
GetProperties provides a mock function with given fields:
func (*SystemStudentModel) GetRoles ¶
func (_m *SystemStudentModel) GetRoles() []string
GetRoles provides a mock function with given fields:
func (*SystemStudentModel) GetUsername ¶
func (_m *SystemStudentModel) GetUsername() string
GetUsername provides a mock function with given fields:
type WorkbookModel ¶
WorkbookModel is an autogenerated mock type for the WorkbookModel type
func NewWorkbookModel ¶
func NewWorkbookModel(t testing.TB) *WorkbookModel
NewWorkbookModel creates a new instance of WorkbookModel. It also registers a cleanup function to assert the mocks expectations.
func (*WorkbookModel) GetCreatedAt ¶
func (_m *WorkbookModel) GetCreatedAt() time.Time
GetCreatedAt provides a mock function with given fields:
func (*WorkbookModel) GetCreatedBy ¶
func (_m *WorkbookModel) GetCreatedBy() uint
GetCreatedBy provides a mock function with given fields:
func (*WorkbookModel) GetID ¶
func (_m *WorkbookModel) GetID() uint
GetID provides a mock function with given fields:
func (*WorkbookModel) GetLang2 ¶
func (_m *WorkbookModel) GetLang2() domain.Lang2
GetLang2 provides a mock function with given fields:
func (*WorkbookModel) GetName ¶
func (_m *WorkbookModel) GetName() string
GetName provides a mock function with given fields:
func (*WorkbookModel) GetOwnerID ¶
func (_m *WorkbookModel) GetOwnerID() userdomain.AppUserID
GetOwnerID provides a mock function with given fields:
func (*WorkbookModel) GetProblemType ¶
func (_m *WorkbookModel) GetProblemType() string
GetProblemType provides a mock function with given fields:
func (*WorkbookModel) GetProperties ¶
func (_m *WorkbookModel) GetProperties() map[string]string
GetProperties provides a mock function with given fields:
func (*WorkbookModel) GetQuestionText ¶
func (_m *WorkbookModel) GetQuestionText() string
GetQuestionText provides a mock function with given fields:
func (*WorkbookModel) GetSpaceID ¶
func (_m *WorkbookModel) GetSpaceID() userdomain.SpaceID
GetSpaceID provides a mock function with given fields:
func (*WorkbookModel) GetUpdatedAt ¶
func (_m *WorkbookModel) GetUpdatedAt() time.Time
GetUpdatedAt provides a mock function with given fields:
func (*WorkbookModel) GetUpdatedBy ¶
func (_m *WorkbookModel) GetUpdatedBy() uint
GetUpdatedBy provides a mock function with given fields:
func (*WorkbookModel) GetVersion ¶
func (_m *WorkbookModel) GetVersion() int
GetVersion provides a mock function with given fields:
func (*WorkbookModel) HasPrivilege ¶
func (_m *WorkbookModel) HasPrivilege(privilege userdomain.RBACAction) bool
HasPrivilege provides a mock function with given fields: privilege