Documentation
¶
Index ¶
- func GetApiToken(api_type int) (error, interface{}, interface{}, interface{})
- func GetRulesByRuleName(ruleName string) (err error, requiredInfos []autocode.RequiredInfo)
- func GetValidRulesByType(ruleType int) (err error, list []autocode.Rules)
- type ApiTokenService
- func (apiTokenService *ApiTokenService) CreateApiToken(apiToken autocode.ApiToken) (err error)
- func (apiTokenService *ApiTokenService) DeleteApiToken(apiToken autocode.ApiToken) (err error)
- func (apiTokenService *ApiTokenService) DeleteApiTokenByIds(ids request.IdsReq) (err error)
- func (apiTokenService *ApiTokenService) GetApiToken(id uint) (err error, apiToken autocode.ApiToken)
- func (apiTokenService *ApiTokenService) GetApiTokenInfoList(info autoCodeReq.ApiTokenSearch) (err error, list interface{}, total int64)
- func (apiTokenService *ApiTokenService) UpdateApiToken(apiToken autocode.ApiToken) (err error)
- type AutoCodeExampleService
- func (autoCodeExampleService *AutoCodeExampleService) CreateAutoCodeExample(autoCodeExample autocode.AutoCodeExample) (err error)
- func (autoCodeExampleService *AutoCodeExampleService) DeleteAutoCodeExample(autoCodeExample autocode.AutoCodeExample) (err error)
- func (autoCodeExampleService *AutoCodeExampleService) GetAutoCodeExample(id uint) (err error, autoCodeExample autocode.AutoCodeExample)
- func (autoCodeExampleService *AutoCodeExampleService) GetAutoCodeExampleInfoList(info request.AutoCodeExampleSearch) (err error, list interface{}, total int64)
- func (autoCodeExampleService *AutoCodeExampleService) UpdateAutoCodeExample(autoCodeExample *autocode.AutoCodeExample) (err error)
- type CollectorService
- func (collectorService *CollectorService) CreateCollector(collector autocode.Collector) (err error)
- func (collectorService *CollectorService) DeleteCollector(collector autocode.Collector) (err error)
- func (collectorService *CollectorService) DeleteCollectorByIds(ids request.IdsReq) (err error)
- func (collectorService *CollectorService) GetCollector(id uint) (err error, collector autocode.Collector)
- func (collectorService *CollectorService) GetCollectorInfoList(info autoCodeReq.CollectorSearch) (err error, list interface{}, total int64)
- func (collectorService *CollectorService) UpdateCollector(collector autocode.Collector) (err error)
- type RequiredInfoService
- func (requiredInfoService *RequiredInfoService) CreaterequiredInfo(requiredInfo autocode.RequiredInfo) (err error)
- func (requiredInfoService *RequiredInfoService) DeleterequiredInfo(requiredInfo autocode.RequiredInfo) (err error)
- func (requiredInfoService *RequiredInfoService) DeleterequiredInfoByIds(ids request.IdsReq) (err error)
- func (requiredInfoService *RequiredInfoService) GetrequiredInfo(id uint) (err error, requiredInfo autocode.RequiredInfo)
- func (requiredInfoService *RequiredInfoService) GetrequiredInfoInfoList(info autoCodeReq.RequiredInfoSearch) (err error, list interface{}, total int64)
- func (requiredInfoService *RequiredInfoService) UpdaterequiredInfo(requiredInfo autocode.RequiredInfo) (err error)
- type RulesService
- func (rulesService *RulesService) CreateRules(rules autocode.Rules) (err error)
- func (rulesService *RulesService) DeleteRules(rules autocode.Rules) (err error)
- func (rulesService *RulesService) DeleteRulesByIds(ids request.IdsReq) (err error)
- func (rulesService *RulesService) GetRules(id uint) (err error, rules autocode.Rules)
- func (rulesService *RulesService) GetRulesInfoList(info autoCodeReq.RulesSearch) (err error, list interface{}, total int64)
- func (rulesService *RulesService) UpdateRules(rules autocode.Rules) (err error)
- type ServiceGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetApiToken ¶
map[string]string map[token]备注 备注相同为同组key与secret
func GetRulesByRuleName ¶
func GetRulesByRuleName(ruleName string) (err error, requiredInfos []autocode.RequiredInfo)
Types ¶
type ApiTokenService ¶
type ApiTokenService struct {
}
func (*ApiTokenService) CreateApiToken ¶
func (apiTokenService *ApiTokenService) CreateApiToken(apiToken autocode.ApiToken) (err error)
CreateApiToken 创建ApiToken记录 Author [piexlmax](https://github.com/piexlmax)
func (*ApiTokenService) DeleteApiToken ¶
func (apiTokenService *ApiTokenService) DeleteApiToken(apiToken autocode.ApiToken) (err error)
DeleteApiToken 删除ApiToken记录 Author [piexlmax](https://github.com/piexlmax)
func (*ApiTokenService) DeleteApiTokenByIds ¶
func (apiTokenService *ApiTokenService) DeleteApiTokenByIds(ids request.IdsReq) (err error)
DeleteApiTokenByIds 批量删除ApiToken记录 Author [piexlmax](https://github.com/piexlmax)
func (*ApiTokenService) GetApiToken ¶
func (apiTokenService *ApiTokenService) GetApiToken(id uint) (err error, apiToken autocode.ApiToken)
GetApiToken 根据id获取ApiToken记录 Author [piexlmax](https://github.com/piexlmax)
func (*ApiTokenService) GetApiTokenInfoList ¶
func (apiTokenService *ApiTokenService) GetApiTokenInfoList(info autoCodeReq.ApiTokenSearch) (err error, list interface{}, total int64)
GetApiTokenInfoList 分页获取ApiToken记录 Author [piexlmax](https://github.com/piexlmax)
func (*ApiTokenService) UpdateApiToken ¶
func (apiTokenService *ApiTokenService) UpdateApiToken(apiToken autocode.ApiToken) (err error)
UpdateApiToken 更新ApiToken记录 Author [piexlmax](https://github.com/piexlmax)
type AutoCodeExampleService ¶
type AutoCodeExampleService struct{}
func (*AutoCodeExampleService) CreateAutoCodeExample ¶
func (autoCodeExampleService *AutoCodeExampleService) CreateAutoCodeExample(autoCodeExample autocode.AutoCodeExample) (err error)
func (*AutoCodeExampleService) DeleteAutoCodeExample ¶
func (autoCodeExampleService *AutoCodeExampleService) DeleteAutoCodeExample(autoCodeExample autocode.AutoCodeExample) (err error)
func (*AutoCodeExampleService) GetAutoCodeExample ¶
func (autoCodeExampleService *AutoCodeExampleService) GetAutoCodeExample(id uint) (err error, autoCodeExample autocode.AutoCodeExample)
func (*AutoCodeExampleService) GetAutoCodeExampleInfoList ¶
func (autoCodeExampleService *AutoCodeExampleService) GetAutoCodeExampleInfoList(info request.AutoCodeExampleSearch) (err error, list interface{}, total int64)
func (*AutoCodeExampleService) UpdateAutoCodeExample ¶
func (autoCodeExampleService *AutoCodeExampleService) UpdateAutoCodeExample(autoCodeExample *autocode.AutoCodeExample) (err error)
type CollectorService ¶
type CollectorService struct {
}
func (*CollectorService) CreateCollector ¶
func (collectorService *CollectorService) CreateCollector(collector autocode.Collector) (err error)
CreateCollector 创建Collector记录 Author [piexlmax](https://github.com/piexlmax)
func (*CollectorService) DeleteCollector ¶
func (collectorService *CollectorService) DeleteCollector(collector autocode.Collector) (err error)
DeleteCollector 删除Collector记录 Author [piexlmax](https://github.com/piexlmax)
func (*CollectorService) DeleteCollectorByIds ¶
func (collectorService *CollectorService) DeleteCollectorByIds(ids request.IdsReq) (err error)
DeleteCollectorByIds 批量删除Collector记录 Author [piexlmax](https://github.com/piexlmax)
func (*CollectorService) GetCollector ¶
func (collectorService *CollectorService) GetCollector(id uint) (err error, collector autocode.Collector)
GetCollector 根据id获取Collector记录 Author [piexlmax](https://github.com/piexlmax)
func (*CollectorService) GetCollectorInfoList ¶
func (collectorService *CollectorService) GetCollectorInfoList(info autoCodeReq.CollectorSearch) (err error, list interface{}, total int64)
GetCollectorInfoList 分页获取Collector记录 Author [piexlmax](https://github.com/piexlmax)
func (*CollectorService) UpdateCollector ¶
func (collectorService *CollectorService) UpdateCollector(collector autocode.Collector) (err error)
UpdateCollector 更新Collector记录 Author [piexlmax](https://github.com/piexlmax)
type RequiredInfoService ¶
type RequiredInfoService struct {
}
func (*RequiredInfoService) CreaterequiredInfo ¶
func (requiredInfoService *RequiredInfoService) CreaterequiredInfo(requiredInfo autocode.RequiredInfo) (err error)
CreaterequiredInfo 创建requiredInfo记录 Author [piexlmax](https://github.com/piexlmax)
func (*RequiredInfoService) DeleterequiredInfo ¶
func (requiredInfoService *RequiredInfoService) DeleterequiredInfo(requiredInfo autocode.RequiredInfo) (err error)
DeleterequiredInfo 删除requiredInfo记录 Author [piexlmax](https://github.com/piexlmax)
func (*RequiredInfoService) DeleterequiredInfoByIds ¶
func (requiredInfoService *RequiredInfoService) DeleterequiredInfoByIds(ids request.IdsReq) (err error)
DeleterequiredInfoByIds 批量删除requiredInfo记录 Author [piexlmax](https://github.com/piexlmax)
func (*RequiredInfoService) GetrequiredInfo ¶
func (requiredInfoService *RequiredInfoService) GetrequiredInfo(id uint) (err error, requiredInfo autocode.RequiredInfo)
GetrequiredInfo 根据id获取requiredInfo记录 Author [piexlmax](https://github.com/piexlmax)
func (*RequiredInfoService) GetrequiredInfoInfoList ¶
func (requiredInfoService *RequiredInfoService) GetrequiredInfoInfoList(info autoCodeReq.RequiredInfoSearch) (err error, list interface{}, total int64)
GetrequiredInfoInfoList 分页获取requiredInfo记录 Author [piexlmax](https://github.com/piexlmax)
func (*RequiredInfoService) UpdaterequiredInfo ¶
func (requiredInfoService *RequiredInfoService) UpdaterequiredInfo(requiredInfo autocode.RequiredInfo) (err error)
UpdaterequiredInfo 更新requiredInfo记录 Author [piexlmax](https://github.com/piexlmax)
type RulesService ¶
type RulesService struct {
}
func (*RulesService) CreateRules ¶
func (rulesService *RulesService) CreateRules(rules autocode.Rules) (err error)
CreateRules 创建Rules记录 Author [piexlmax](https://github.com/piexlmax)
func (*RulesService) DeleteRules ¶
func (rulesService *RulesService) DeleteRules(rules autocode.Rules) (err error)
DeleteRules 删除Rules记录 Author [piexlmax](https://github.com/piexlmax)
func (*RulesService) DeleteRulesByIds ¶
func (rulesService *RulesService) DeleteRulesByIds(ids request.IdsReq) (err error)
DeleteRulesByIds 批量删除Rules记录 Author [piexlmax](https://github.com/piexlmax)
func (*RulesService) GetRules ¶
func (rulesService *RulesService) GetRules(id uint) (err error, rules autocode.Rules)
GetRules 根据id获取Rules记录 Author [piexlmax](https://github.com/piexlmax)
func (*RulesService) GetRulesInfoList ¶
func (rulesService *RulesService) GetRulesInfoList(info autoCodeReq.RulesSearch) (err error, list interface{}, total int64)
GetRulesInfoList 分页获取Rules记录 Author [piexlmax](https://github.com/piexlmax)
func (*RulesService) UpdateRules ¶
func (rulesService *RulesService) UpdateRules(rules autocode.Rules) (err error)
UpdateRules 更新Rules记录 Author [piexlmax](https://github.com/piexlmax)
type ServiceGroup ¶
type ServiceGroup struct {
// Code generated by github.com/779789571/gin-vue-admin/server Begin; DO NOT EDIT.
AutoCodeExampleService
CollectorService
ApiTokenService
RequiredInfoService
RulesService
}