svc

package
v0.1.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2021 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AutoCodeExamplesDao = autoCodeExamplesDao{}
View Source
var ExaCustomersDao = exaCustomersDao{}
View Source
var ExaFileChunksDao = exaFileChunksDao{}
View Source
var ExaFileUploadAndDownloadsDao = exaFileUploadAndDownloadsDao{}
View Source
var ExaFilesDao = exaFilesDao{}
View Source
var ExaSimpleUploadersDao = exaSimpleUploadersDao{}
View Source
var JwtBlacklistsDao = jwtBlacklistsDao{}
View Source
var SysApisDao = sysApisDao{}
View Source
var SysAuthoritiesDao = sysAuthoritiesDao{}
View Source
var SysAuthorityMenusDao = sysAuthorityMenusDao{}
View Source
var SysAutoCodeHistoriesDao = sysAutoCodeHistoriesDao{}
View Source
var SysBaseMenuParametersDao = sysBaseMenuParametersDao{}
View Source
var SysBaseMenusDao = sysBaseMenusDao{}
View Source
var SysDataAuthorityIdDao = sysDataAuthorityIdDao{}
View Source
var SysDictionariesDao = sysDictionariesDao{}
View Source
var SysDictionaryDetailsDao = sysDictionaryDetailsDao{}
View Source
var SysOperationRecordsDao = sysOperationRecordsDao{}
View Source
var SysUserAuthorityDao = sysUserAuthorityDao{}
View Source
var SysUsersDao = sysUsersDao{}

Functions

This section is empty.

Types

type AutoCodeExamples

type AutoCodeExamples struct {
	Id                   int       `json:"id" form:"id" v:"id"`
	CreatedAt            time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt            time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt            time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	AutoCodeExampleField string    `json:"auto_code_example_field" form:"auto_code_example_field" v:"auto_code_example_field"` // 仅作示例条目无实际作用

}

type ExaCustomers

type ExaCustomers struct {
	Id                 int       `json:"id" form:"id" v:"id"`
	CreatedAt          time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt          time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt          time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	CustomerName       string    `json:"customer_name" form:"customer_name" v:"customer_name"`                         // 客户名
	CustomerPhoneData  string    `json:"customer_phone_data" form:"customer_phone_data" v:"customer_phone_data"`       // 客户手机号
	SysUserId          int       `json:"sys_user_id" form:"sys_user_id" v:"sys_user_id"`                               // 管理ID
	SysUserAuthorityId string    `json:"sys_user_authority_id" form:"sys_user_authority_id" v:"sys_user_authority_id"` // 管理角色ID

}

type ExaFileChunks

type ExaFileChunks struct {
	Id              int       `json:"id" form:"id" v:"id"`
	CreatedAt       time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt       time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt       time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	ExaFileId       int       `json:"exa_file_id" form:"exa_file_id" v:"exa_file_id"`
	FileChunkNumber int       `json:"file_chunk_number" form:"file_chunk_number" v:"file_chunk_number"`
	FileChunkPath   string    `json:"file_chunk_path" form:"file_chunk_path" v:"file_chunk_path"`
}

type ExaFileUploadAndDownloads

type ExaFileUploadAndDownloads struct {
	Id        int       `json:"id" form:"id" v:"id"`
	CreatedAt time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	Name      string    `json:"name" form:"name" v:"name"` // 文件名
	Url       string    `json:"url" form:"url" v:"url"`    // 文件地址
	Tag       string    `json:"tag" form:"tag" v:"tag"`    // 文件标签
	Key       string    `json:"key" form:"key" v:"key"`    // 编号

}

type ExaFiles

type ExaFiles struct {
	Id         int       `json:"id" form:"id" v:"id"`
	CreatedAt  time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt  time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt  time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	FileName   string    `json:"file_name" form:"file_name" v:"file_name"`
	FileMd5    string    `json:"file_md5" form:"file_md5" v:"file_md5"`
	FilePath   string    `json:"file_path" form:"file_path" v:"file_path"`
	ChunkTotal int       `json:"chunk_total" form:"chunk_total" v:"chunk_total"`
	IsFinish   int       `json:"is_finish" form:"is_finish" v:"is_finish"`
}

type ExaSimpleUploaders

type ExaSimpleUploaders struct {
	ChunkNumber      string `json:"chunk_number" form:"chunk_number" v:"chunk_number"`                   // 当前切片标记
	CurrentChunkSize string `json:"current_chunk_size" form:"current_chunk_size" v:"current_chunk_size"` // 当前切片容量
	CurrentChunkPath string `json:"current_chunk_path" form:"current_chunk_path" v:"current_chunk_path"` // 切片本地路径
	TotalSize        string `json:"total_size" form:"total_size" v:"total_size"`                         // 总容量
	Identifier       string `json:"identifier" form:"identifier" v:"identifier"`                         // 文件标识(md5)
	Filename         string `json:"filename" form:"filename" v:"filename"`                               // 文件名
	TotalChunks      string `json:"total_chunks" form:"total_chunks" v:"total_chunks"`                   // 切片总数
	IsDone           int    `json:"is_done" form:"is_done" v:"is_done"`                                  // 是否上传完成
	FilePath         string `json:"file_path" form:"file_path" v:"file_path"`                            // 文件本地路径

}

type JwtBlacklists

type JwtBlacklists struct {
	Id        int       `json:"id" form:"id" v:"id"`
	CreatedAt time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	Jwt       string    `json:"jwt" form:"jwt" v:"jwt"` // jwt

}

type ServiceContext

type ServiceContext struct {
	Config          config.Config
	Cache           cache.Cache
	OperationRecord rest.Middleware
}

func NewServiceContext

func NewServiceContext(c config.Config) *ServiceContext

type SysApis

type SysApis struct {
	Id          int       `json:"id" form:"id" v:"id"`
	CreatedAt   time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt   time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt   time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	Path        string    `json:"path" form:"path" v:"path"`                      // api路径
	Description string    `json:"description" form:"description" v:"description"` // api中文描述
	ApiGroup    string    `json:"api_group" form:"api_group" v:"api_group"`       // api组
	Method      string    `json:"method" form:"method" v:"method"`                // 方法

}

type SysAuthorities

type SysAuthorities struct {
	CreatedAt     time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt     time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt     time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	AuthorityId   string    `json:"authority_id" form:"authority_id" v:"authority_id"`       // 角色ID
	AuthorityName string    `json:"authority_name" form:"authority_name" v:"authority_name"` // 角色名
	ParentId      string    `json:"parent_id" form:"parent_id" v:"parent_id"`                // 父角色ID
	DefaultRouter string    `json:"default_router" form:"default_router" v:"default_router"` // 默认菜单

}

type SysAuthorityMenus

type SysAuthorityMenus struct {
	SysBaseMenuId           int    `json:"sys_base_menu_id" form:"sys_base_menu_id" v:"sys_base_menu_id"`
	SysAuthorityAuthorityId string `json:"sys_authority_authority_id" form:"sys_authority_authority_id" v:"sys_authority_authority_id"` // 角色ID

}

type SysAutoCodeHistories

type SysAutoCodeHistories struct {
	Id            int       `json:"id" form:"id" v:"id"`
	CreatedAt     time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt     time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt     time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	TableName     string    `json:"table_name" form:"table_name" v:"table_name"`
	RequestMeta   string    `json:"request_meta" form:"request_meta" v:"request_meta"`
	AutoCodePath  string    `json:"auto_code_path" form:"auto_code_path" v:"auto_code_path"`
	InjectionMeta string    `json:"injection_meta" form:"injection_meta" v:"injection_meta"`
	StructName    string    `json:"struct_name" form:"struct_name" v:"struct_name"`
	StructCnName  string    `json:"struct_cn_name" form:"struct_cn_name" v:"struct_cn_name"`
	ApiIds        string    `json:"api_ids" form:"api_ids" v:"api_ids"`
	Flag          int       `json:"flag" form:"flag" v:"flag"`
}

type SysBaseMenuParameters

type SysBaseMenuParameters struct {
	Id            int       `json:"id" form:"id" v:"id"`
	CreatedAt     time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt     time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt     time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	SysBaseMenuId int       `json:"sys_base_menu_id" form:"sys_base_menu_id" v:"sys_base_menu_id"`
	Type          string    `json:"type" form:"type" v:"type"`    // 地址栏携带参数为params还是query
	Key           string    `json:"key" form:"key" v:"key"`       // 地址栏携带参数的key
	Value         string    `json:"value" form:"value" v:"value"` // 地址栏携带参数的值

}

type SysBaseMenus

type SysBaseMenus struct {
	Id          int       `json:"id" form:"id" v:"id"`
	CreatedAt   time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt   time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt   time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	MenuLevel   int       `json:"menu_level" form:"menu_level" v:"menu_level"`
	ParentId    string    `json:"parent_id" form:"parent_id" v:"parent_id"`          // 父菜单ID
	Path        string    `json:"path" form:"path" v:"path"`                         // 路由path
	Name        string    `json:"name" form:"name" v:"name"`                         // 路由name
	Hidden      int       `json:"hidden" form:"hidden" v:"hidden"`                   // 是否在列表隐藏
	Component   string    `json:"component" form:"component" v:"component"`          // 对应前端文件路径
	Sort        int       `json:"sort" form:"sort" v:"sort"`                         // 排序标记
	KeepAlive   int       `json:"keep_alive" form:"keep_alive" v:"keep_alive"`       // 附加属性
	DefaultMenu int       `json:"default_menu" form:"default_menu" v:"default_menu"` // 附加属性
	Title       string    `json:"title" form:"title" v:"title"`                      // 附加属性
	Icon        string    `json:"icon" form:"icon" v:"icon"`                         // 附加属性
	CloseTab    int       `json:"close_tab" form:"close_tab" v:"close_tab"`          // 附加属性

}

type SysDataAuthorityId

type SysDataAuthorityId struct {
	SysAuthorityAuthorityId    string `json:"sys_authority_authority_id" form:"sys_authority_authority_id" v:"sys_authority_authority_id"`             // 角色ID
	DataAuthorityIdAuthorityId string `json:"data_authority_id_authority_id" form:"data_authority_id_authority_id" v:"data_authority_id_authority_id"` // 角色ID

}

type SysDictionaries

type SysDictionaries struct {
	Id        int       `json:"id" form:"id" v:"id"`
	CreatedAt time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	Name      string    `json:"name" form:"name" v:"name"`       // 字典名(中)
	Type      string    `json:"type" form:"type" v:"type"`       // 字典名(英)
	Status    int       `json:"status" form:"status" v:"status"` // 状态
	Desc      string    `json:"desc" form:"desc" v:"desc"`       // 描述

}

type SysDictionaryDetails

type SysDictionaryDetails struct {
	Id              int       `json:"id" form:"id" v:"id"`
	CreatedAt       time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt       time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt       time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	Label           string    `json:"label" form:"label" v:"label"`                                     // 展示值
	Value           int       `json:"value" form:"value" v:"value"`                                     // 字典值
	Status          int       `json:"status" form:"status" v:"status"`                                  // 启用状态
	Sort            int       `json:"sort" form:"sort" v:"sort"`                                        // 排序标记
	SysDictionaryId int       `json:"sys_dictionary_id" form:"sys_dictionary_id" v:"sys_dictionary_id"` // 关联标记

}

type SysOperationRecords

type SysOperationRecords struct {
	Id           int       `json:"id" form:"id" v:"id"`
	CreatedAt    time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt    time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt    time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	Ip           string    `json:"ip" form:"ip" v:"ip"`                                  // 请求ip
	Method       string    `json:"method" form:"method" v:"method"`                      // 请求方法
	Path         string    `json:"path" form:"path" v:"path"`                            // 请求路径
	Status       int       `json:"status" form:"status" v:"status"`                      // 请求状态
	Latency      int       `json:"latency" form:"latency" v:"latency"`                   // 延迟
	Agent        string    `json:"agent" form:"agent" v:"agent"`                         // 代理
	ErrorMessage string    `json:"error_message" form:"error_message" v:"error_message"` // 错误信息
	Body         string    `json:"body" form:"body" v:"body"`                            // 请求Body
	Resp         string    `json:"resp" form:"resp" v:"resp"`                            // 响应Body
	UserId       int       `json:"user_id" form:"user_id" v:"user_id"`                   // 用户id

}

type SysUserAuthority

type SysUserAuthority struct {
	SysUserId               int    `json:"sys_user_id" form:"sys_user_id" v:"sys_user_id"`
	SysAuthorityAuthorityId string `json:"sys_authority_authority_id" form:"sys_authority_authority_id" v:"sys_authority_authority_id"` // 角色ID

}

type SysUsers

type SysUsers struct {
	Id          int       `json:"id" form:"id" v:"id"`
	CreatedAt   time.Time `json:"created_at" form:"created_at" v:"created_at"`
	UpdatedAt   time.Time `json:"updated_at" form:"updated_at" v:"updated_at"`
	DeletedAt   time.Time `json:"deleted_at" form:"deleted_at" v:"deleted_at"`
	Uuid        string    `json:"uuid" form:"uuid" v:"uuid"`                         // 用户UUID
	Username    string    `json:"username" form:"username" v:"username"`             // 用户登录名
	Password    string    `json:"password" form:"password" v:"password"`             // 用户登录密码
	NickName    string    `json:"nick_name" form:"nick_name" v:"nick_name"`          // 用户昵称
	HeaderImg   string    `json:"header_img" form:"header_img" v:"header_img"`       // 用户头像
	AuthorityId string    `json:"authority_id" form:"authority_id" v:"authority_id"` // 用户角色ID
	SideMode    string    `json:"side_mode" form:"side_mode" v:"side_mode"`          // 用户角色ID
	ActiveColor string    `json:"active_color" form:"active_color" v:"active_color"` // 用户角色ID
	BaseColor   string    `json:"base_color" form:"base_color" v:"base_color"`       // 用户角色ID

}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL