Documentation ¶
Overview ¶
Copyright © 2020 Marvin
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Marvin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Marvin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type IParams
- type RWTaskParams
- func (rw *RWTaskParams) CreateTaskCustomParam(ctx context.Context, data *TaskCustomParam) (*TaskCustomParam, error)
- func (rw *RWTaskParams) CreateTaskDefaultParam(ctx context.Context, data *TaskDefaultParam) (*TaskDefaultParam, error)
- func (rw *RWTaskParams) DeleteTaskCustomParam(ctx context.Context, taskName []string) error
- func (rw *RWTaskParams) DeleteTaskDefaultParam(ctx context.Context, ids []uint64) error
- func (rw *RWTaskParams) ListTaskCustomParam(ctx context.Context, page uint64, pageSize uint64) ([]*TaskCustomParam, error)
- func (rw *RWTaskParams) ListTaskDefaultParam(ctx context.Context, page uint64, pageSize uint64) ([]*TaskDefaultParam, error)
- func (rw *RWTaskParams) QueryTaskCustomParam(ctx context.Context, data *TaskCustomParam) ([]*TaskCustomParam, error)
- func (rw *RWTaskParams) QueryTaskDefaultParam(ctx context.Context, data *TaskDefaultParam) ([]*TaskDefaultParam, error)
- func (rw *RWTaskParams) TaskCustomParamTableName(ctx context.Context) string
- func (rw *RWTaskParams) TaskDefaultParamTableName(ctx context.Context) string
- func (rw *RWTaskParams) UpdateTaskCustomParam(ctx context.Context, data *TaskCustomParam) (*TaskCustomParam, error)
- func (rw *RWTaskParams) UpdateTaskDefaultParam(ctx context.Context, data *TaskDefaultParam) (*TaskDefaultParam, error)
- type TaskCustomParam
- type TaskDefaultParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IParams ¶
type IParams interface { CreateTaskDefaultParam(ctx context.Context, data *TaskDefaultParam) (*TaskDefaultParam, error) UpdateTaskDefaultParam(ctx context.Context, data *TaskDefaultParam) (*TaskDefaultParam, error) ListTaskDefaultParam(ctx context.Context, page uint64, pageSize uint64) ([]*TaskDefaultParam, error) QueryTaskDefaultParam(ctx context.Context, data *TaskDefaultParam) ([]*TaskDefaultParam, error) DeleteTaskDefaultParam(ctx context.Context, ids []uint64) error CreateTaskCustomParam(ctx context.Context, data *TaskCustomParam) (*TaskCustomParam, error) UpdateTaskCustomParam(ctx context.Context, data *TaskCustomParam) (*TaskCustomParam, error) ListTaskCustomParam(ctx context.Context, page uint64, pageSize uint64) ([]*TaskCustomParam, error) QueryTaskCustomParam(ctx context.Context, data *TaskCustomParam) ([]*TaskCustomParam, error) DeleteTaskCustomParam(ctx context.Context, taskName []string) error }
type RWTaskParams ¶
func NewTaskParamsRW ¶
func NewTaskParamsRW(db *gorm.DB) *RWTaskParams
func (*RWTaskParams) CreateTaskCustomParam ¶
func (rw *RWTaskParams) CreateTaskCustomParam(ctx context.Context, data *TaskCustomParam) (*TaskCustomParam, error)
func (*RWTaskParams) CreateTaskDefaultParam ¶
func (rw *RWTaskParams) CreateTaskDefaultParam(ctx context.Context, data *TaskDefaultParam) (*TaskDefaultParam, error)
func (*RWTaskParams) DeleteTaskCustomParam ¶
func (rw *RWTaskParams) DeleteTaskCustomParam(ctx context.Context, taskName []string) error
func (*RWTaskParams) DeleteTaskDefaultParam ¶
func (rw *RWTaskParams) DeleteTaskDefaultParam(ctx context.Context, ids []uint64) error
func (*RWTaskParams) ListTaskCustomParam ¶
func (rw *RWTaskParams) ListTaskCustomParam(ctx context.Context, page uint64, pageSize uint64) ([]*TaskCustomParam, error)
func (*RWTaskParams) ListTaskDefaultParam ¶
func (rw *RWTaskParams) ListTaskDefaultParam(ctx context.Context, page uint64, pageSize uint64) ([]*TaskDefaultParam, error)
func (*RWTaskParams) QueryTaskCustomParam ¶
func (rw *RWTaskParams) QueryTaskCustomParam(ctx context.Context, data *TaskCustomParam) ([]*TaskCustomParam, error)
func (*RWTaskParams) QueryTaskDefaultParam ¶
func (rw *RWTaskParams) QueryTaskDefaultParam(ctx context.Context, data *TaskDefaultParam) ([]*TaskDefaultParam, error)
func (*RWTaskParams) TaskCustomParamTableName ¶
func (rw *RWTaskParams) TaskCustomParamTableName(ctx context.Context) string
func (*RWTaskParams) TaskDefaultParamTableName ¶
func (rw *RWTaskParams) TaskDefaultParamTableName(ctx context.Context) string
func (*RWTaskParams) UpdateTaskCustomParam ¶
func (rw *RWTaskParams) UpdateTaskCustomParam(ctx context.Context, data *TaskCustomParam) (*TaskCustomParam, error)
func (*RWTaskParams) UpdateTaskDefaultParam ¶
func (rw *RWTaskParams) UpdateTaskDefaultParam(ctx context.Context, data *TaskDefaultParam) (*TaskDefaultParam, error)
type TaskCustomParam ¶
type TaskCustomParam struct { ID uint `gorm:"primary_key;autoIncrement;comment:id" json:"id"` TaskName string `gorm:"type:varchar(100);not null;uniqueIndex:uniq_task_param_complex;comment:task name" json:"taskName"` TaskMode string `gorm:"type:varchar(100);not null;uniqueIndex:uniq_task_param_complex;comment:task mode" json:"taskMode"` ParamName string `gorm:"type:varchar(100);not null;uniqueIndex:uniq_task_param_complex;comment:task params name" json:"paramName"` ParamValue string `gorm:"type:varchar(100);not null;comment:task params value" json:"paramValue"` *common.Entity }
type TaskDefaultParam ¶
type TaskDefaultParam struct { ID uint `gorm:"primary_key;autoIncrement;comment:id" json:"id"` TaskMode string `gorm:"type:varchar(100);not null;uniqueIndex:uniq_task_param_complex;comment:task mode" json:"taskMode"` ParamName string `gorm:"type:varchar(100);not null;uniqueIndex:uniq_task_param_complex;comment:task params name" json:"paramName"` ParamValue string `gorm:"type:varchar(100);not null;comment:task params value" json:"paramValue"` *common.Entity }