Documentation ¶
Index ¶
- type AudioModel
- type ProblemAddParameter
- 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() domain.ProblemTypeName
- 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 ProblemSearchCondition
- type ProblemSelectParameter1
- type ProblemSelectParameter2
- type ProblemUpdateParameter
- type StatModel
- type StudentModel
- func (_m *StudentModel) GetAppUserID() domain.AppUserID
- func (_m *StudentModel) GetCreatedAt() time.Time
- func (_m *StudentModel) GetCreatedBy() uint
- func (_m *StudentModel) GetID() uint
- func (_m *StudentModel) GetLoginID() string
- func (_m *StudentModel) GetOrganizationID() domain.OrganizationID
- func (_m *StudentModel) GetProperties() map[string]string
- func (_m *StudentModel) GetRoles() []string
- func (_m *StudentModel) GetUpdatedAt() time.Time
- func (_m *StudentModel) GetUpdatedBy() uint
- func (_m *StudentModel) GetUsername() string
- func (_m *StudentModel) GetVersion() int
- func (_m *StudentModel) IsStudentModel() bool
- type StudyType
- type SystemStudentModel
- func (_m *SystemStudentModel) GetAppUserID() domain.AppUserID
- func (_m *SystemStudentModel) GetCreatedAt() time.Time
- func (_m *SystemStudentModel) GetCreatedBy() uint
- func (_m *SystemStudentModel) GetID() uint
- func (_m *SystemStudentModel) GetLoginID() string
- func (_m *SystemStudentModel) GetOrganizationID() domain.OrganizationID
- func (_m *SystemStudentModel) GetProperties() map[string]string
- func (_m *SystemStudentModel) GetRoles() []string
- func (_m *SystemStudentModel) GetUpdatedAt() time.Time
- func (_m *SystemStudentModel) GetUpdatedBy() uint
- func (_m *SystemStudentModel) GetUsername() string
- func (_m *SystemStudentModel) GetVersion() int
- func (_m *SystemStudentModel) IsSystemStudentModel() bool
- type WorkbookAddParameter
- 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() domain.ProblemTypeName
- 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) GetWorkbookID() domain.WorkbookID
- func (_m *WorkbookModel) HasPrivilege(privilege userdomain.RBACAction) bool
- type WorkbookSearchCondition
- type WorkbookSearchResult
- type WorkbookUpdateParameter
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 ProblemAddParameter ¶
ProblemAddParameter is an autogenerated mock type for the ProblemAddParameter type
func NewProblemAddParameter ¶
func NewProblemAddParameter(t testing.TB) *ProblemAddParameter
NewProblemAddParameter creates a new instance of ProblemAddParameter. It also registers a cleanup function to assert the mocks expectations.
func (*ProblemAddParameter) GetIntProperty ¶
func (_m *ProblemAddParameter) GetIntProperty(name string) (int, error)
GetIntProperty provides a mock function with given fields: name
func (*ProblemAddParameter) GetProperties ¶
func (_m *ProblemAddParameter) GetProperties() map[string]string
GetProperties provides a mock function with given fields:
func (*ProblemAddParameter) GetStringProperty ¶
func (_m *ProblemAddParameter) GetStringProperty(name string) (string, error)
GetStringProperty provides a mock function with given fields: name
func (*ProblemAddParameter) GetWorkbookID ¶
func (_m *ProblemAddParameter) GetWorkbookID() domain.WorkbookID
GetWorkbookID 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() domain.ProblemTypeName
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 ProblemSearchCondition ¶
ProblemSearchCondition is an autogenerated mock type for the ProblemSearchCondition type
func NewProblemSearchCondition ¶
func NewProblemSearchCondition(t testing.TB) *ProblemSearchCondition
NewProblemSearchCondition creates a new instance of ProblemSearchCondition. It also registers a cleanup function to assert the mocks expectations.
func (*ProblemSearchCondition) GetKeyword ¶
func (_m *ProblemSearchCondition) GetKeyword() string
GetKeyword provides a mock function with given fields:
func (*ProblemSearchCondition) GetPageNo ¶
func (_m *ProblemSearchCondition) GetPageNo() int
GetPageNo provides a mock function with given fields:
func (*ProblemSearchCondition) GetPageSize ¶
func (_m *ProblemSearchCondition) GetPageSize() int
GetPageSize provides a mock function with given fields:
func (*ProblemSearchCondition) GetWorkbookID ¶
func (_m *ProblemSearchCondition) GetWorkbookID() domain.WorkbookID
GetWorkbookID provides a mock function with given fields:
type ProblemSelectParameter1 ¶
ProblemSelectParameter1 is an autogenerated mock type for the ProblemSelectParameter1 type
func NewProblemSelectParameter1 ¶
func NewProblemSelectParameter1(t testing.TB) *ProblemSelectParameter1
NewProblemSelectParameter1 creates a new instance of ProblemSelectParameter1. It also registers a cleanup function to assert the mocks expectations.
func (*ProblemSelectParameter1) GetProblemID ¶
func (_m *ProblemSelectParameter1) GetProblemID() domain.ProblemID
GetProblemID provides a mock function with given fields:
func (*ProblemSelectParameter1) GetWorkbookID ¶
func (_m *ProblemSelectParameter1) GetWorkbookID() domain.WorkbookID
GetWorkbookID provides a mock function with given fields:
type ProblemSelectParameter2 ¶
ProblemSelectParameter2 is an autogenerated mock type for the ProblemSelectParameter2 type
func NewProblemSelectParameter2 ¶
func NewProblemSelectParameter2(t testing.TB) *ProblemSelectParameter2
NewProblemSelectParameter2 creates a new instance of ProblemSelectParameter2. It also registers a cleanup function to assert the mocks expectations.
func (*ProblemSelectParameter2) GetProblemID ¶
func (_m *ProblemSelectParameter2) GetProblemID() domain.ProblemID
GetProblemID provides a mock function with given fields:
func (*ProblemSelectParameter2) GetVersion ¶
func (_m *ProblemSelectParameter2) GetVersion() int
GetVersion provides a mock function with given fields:
func (*ProblemSelectParameter2) GetWorkbookID ¶
func (_m *ProblemSelectParameter2) GetWorkbookID() domain.WorkbookID
GetWorkbookID provides a mock function with given fields:
type ProblemUpdateParameter ¶
ProblemUpdateParameter is an autogenerated mock type for the ProblemUpdateParameter type
func NewProblemUpdateParameter ¶
func NewProblemUpdateParameter(t testing.TB) *ProblemUpdateParameter
NewProblemUpdateParameter creates a new instance of ProblemUpdateParameter. It also registers a cleanup function to assert the mocks expectations.
func (*ProblemUpdateParameter) GetIntProperty ¶
func (_m *ProblemUpdateParameter) GetIntProperty(name string) (int, error)
GetIntProperty provides a mock function with given fields: name
func (*ProblemUpdateParameter) GetProperties ¶
func (_m *ProblemUpdateParameter) GetProperties() map[string]string
GetProperties provides a mock function with given fields:
func (*ProblemUpdateParameter) GetStringProperty ¶
func (_m *ProblemUpdateParameter) GetStringProperty(name string) (string, error)
GetStringProperty provides a mock function with given fields: name
type StatModel ¶
StatModel is an autogenerated mock type for the StatModel type
func NewStatModel ¶
NewStatModel creates a new instance of StatModel. It also registers a cleanup function to assert the mocks expectations.
func (*StatModel) GetHistory ¶
func (_m *StatModel) GetHistory() domain.StatHistory
GetHistory provides a mock function with given fields:
func (*StatModel) GetUserID ¶
func (_m *StatModel) GetUserID() userdomain.AppUserID
GetUserID 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) GetAppUserID ¶
func (_m *StudentModel) GetAppUserID() domain.AppUserID
GetAppUserID provides a mock function with given fields:
func (*StudentModel) GetCreatedAt ¶
func (_m *StudentModel) GetCreatedAt() time.Time
GetCreatedAt provides a mock function with given fields:
func (*StudentModel) GetCreatedBy ¶
func (_m *StudentModel) GetCreatedBy() uint
GetCreatedBy provides a mock function with given fields:
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() domain.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) GetUpdatedAt ¶
func (_m *StudentModel) GetUpdatedAt() time.Time
GetUpdatedAt provides a mock function with given fields:
func (*StudentModel) GetUpdatedBy ¶
func (_m *StudentModel) GetUpdatedBy() uint
GetUpdatedBy provides a mock function with given fields:
func (*StudentModel) GetUsername ¶
func (_m *StudentModel) GetUsername() string
GetUsername provides a mock function with given fields:
func (*StudentModel) GetVersion ¶
func (_m *StudentModel) GetVersion() int
GetVersion provides a mock function with given fields:
func (*StudentModel) IsStudentModel ¶
func (_m *StudentModel) IsStudentModel() bool
IsStudentModel 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.
func (*StudyType) GetName ¶
func (_m *StudyType) GetName() domain.StudyTypeName
GetName provides a mock function with given fields:
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) GetAppUserID ¶
func (_m *SystemStudentModel) GetAppUserID() domain.AppUserID
GetAppUserID provides a mock function with given fields:
func (*SystemStudentModel) GetCreatedAt ¶
func (_m *SystemStudentModel) GetCreatedAt() time.Time
GetCreatedAt provides a mock function with given fields:
func (*SystemStudentModel) GetCreatedBy ¶
func (_m *SystemStudentModel) GetCreatedBy() uint
GetCreatedBy provides a mock function with given fields:
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() domain.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) GetUpdatedAt ¶
func (_m *SystemStudentModel) GetUpdatedAt() time.Time
GetUpdatedAt provides a mock function with given fields:
func (*SystemStudentModel) GetUpdatedBy ¶
func (_m *SystemStudentModel) GetUpdatedBy() uint
GetUpdatedBy provides a mock function with given fields:
func (*SystemStudentModel) GetUsername ¶
func (_m *SystemStudentModel) GetUsername() string
GetUsername provides a mock function with given fields:
func (*SystemStudentModel) GetVersion ¶
func (_m *SystemStudentModel) GetVersion() int
GetVersion provides a mock function with given fields:
func (*SystemStudentModel) IsSystemStudentModel ¶
func (_m *SystemStudentModel) IsSystemStudentModel() bool
IsSystemStudentModel provides a mock function with given fields:
type WorkbookAddParameter ¶
WorkbookAddParameter is an autogenerated mock type for the WorkbookAddParameter type
func NewWorkbookAddParameter ¶
func NewWorkbookAddParameter(t testing.TB) *WorkbookAddParameter
NewWorkbookAddParameter creates a new instance of WorkbookAddParameter. It also registers a cleanup function to assert the mocks expectations.
func (*WorkbookAddParameter) GetLang2 ¶
func (_m *WorkbookAddParameter) GetLang2() domain.Lang2
GetLang2 provides a mock function with given fields:
func (*WorkbookAddParameter) GetName ¶
func (_m *WorkbookAddParameter) GetName() string
GetName provides a mock function with given fields:
func (*WorkbookAddParameter) GetProblemType ¶
func (_m *WorkbookAddParameter) GetProblemType() domain.ProblemTypeName
GetProblemType provides a mock function with given fields:
func (*WorkbookAddParameter) GetProperties ¶
func (_m *WorkbookAddParameter) GetProperties() map[string]string
GetProperties provides a mock function with given fields:
func (*WorkbookAddParameter) GetQuestionText ¶
func (_m *WorkbookAddParameter) GetQuestionText() string
GetQuestionText 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() domain.ProblemTypeName
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) GetWorkbookID ¶
func (_m *WorkbookModel) GetWorkbookID() domain.WorkbookID
GetWorkbookID 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
type WorkbookSearchCondition ¶
WorkbookSearchCondition is an autogenerated mock type for the WorkbookSearchCondition type
func NewWorkbookSearchCondition ¶
func NewWorkbookSearchCondition(t testing.TB) *WorkbookSearchCondition
NewWorkbookSearchCondition creates a new instance of WorkbookSearchCondition. It also registers a cleanup function to assert the mocks expectations.
func (*WorkbookSearchCondition) GetPageNo ¶
func (_m *WorkbookSearchCondition) GetPageNo() int
GetPageNo provides a mock function with given fields:
func (*WorkbookSearchCondition) GetPageSize ¶
func (_m *WorkbookSearchCondition) GetPageSize() int
GetPageSize provides a mock function with given fields:
func (*WorkbookSearchCondition) GetSpaceIDs ¶
func (_m *WorkbookSearchCondition) GetSpaceIDs() []userdomain.SpaceID
GetSpaceIDs provides a mock function with given fields:
type WorkbookSearchResult ¶
WorkbookSearchResult is an autogenerated mock type for the WorkbookSearchResult type
func NewWorkbookSearchResult ¶
func NewWorkbookSearchResult(t testing.TB) *WorkbookSearchResult
NewWorkbookSearchResult creates a new instance of WorkbookSearchResult. It also registers a cleanup function to assert the mocks expectations.
func (*WorkbookSearchResult) GetResults ¶
func (_m *WorkbookSearchResult) GetResults() []domain.WorkbookModel
GetResults provides a mock function with given fields:
func (*WorkbookSearchResult) GetTotalCount ¶
func (_m *WorkbookSearchResult) GetTotalCount() int
GetTotalCount provides a mock function with given fields:
type WorkbookUpdateParameter ¶
WorkbookUpdateParameter is an autogenerated mock type for the WorkbookUpdateParameter type
func NewWorkbookUpdateParameter ¶
func NewWorkbookUpdateParameter(t testing.TB) *WorkbookUpdateParameter
NewWorkbookUpdateParameter creates a new instance of WorkbookUpdateParameter. It also registers a cleanup function to assert the mocks expectations.
func (*WorkbookUpdateParameter) GetName ¶
func (_m *WorkbookUpdateParameter) GetName() string
GetName provides a mock function with given fields:
func (*WorkbookUpdateParameter) GetQuestionText ¶
func (_m *WorkbookUpdateParameter) GetQuestionText() string
GetQuestionText provides a mock function with given fields:
Source Files ¶
- AudioModel.go
- ProblemAddParameter.go
- ProblemModel.go
- ProblemSearchCondition.go
- ProblemSelectParameter1.go
- ProblemSelectParameter2.go
- ProblemUpdateParameter.go
- StatModel.go
- StudentModel.go
- StudyType.go
- SystemStudentModel.go
- WorkbookAddParameter.go
- WorkbookModel.go
- WorkbookSearchCondition.go
- WorkbookSearchResult.go
- WorkbookUpdateParameter.go