repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/py_pkg.go
server/service/interfacecase/py_pkg.go
package interfacecase import ( "encoding/json" "errors" "fmt" "github.com/test-instructor/yangfan/proto/tools" "github.com/test-instructor/yangfan/server/core/pkg" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/grpc" "github.com/test-instructor/yangfan/server/mode...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/reset_response.go
server/service/interfacecase/reset_response.go
package interfacecase import ( "encoding/json" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/interfacecase" "gorm.io/datatypes" ) func resetApiCaseStep(apicase ...*interfacecase.ApiStep) { for i := 0; i < len(apicase); i++ { resetApiCaseStepModel(apicase[i...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/CI.go
server/service/interfacecase/CI.go
package interfacecase import ( "errors" "fmt" uuid "github.com/satori/go.uuid" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" interfacecaseReq "github.com/test-instructor/yangfan...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/apimenu.go
server/service/interfacecase/apimenu.go
package interfacecase import ( "errors" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" interfacecaseReq "github.com/test-instructor/yangfan/server/model/interfacecase/request" ) /...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/timer_task.go
server/service/interfacecase/timer_task.go
package interfacecase import ( "github.com/test-instructor/yangfan/proto/tools" "github.com/test-instructor/yangfan/server/grpc" "gorm.io/gorm" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/int...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/interface_template.go
server/service/interfacecase/interface_template.go
package interfacecase import ( "github.com/pkg/errors" "github.com/test-instructor/grpc-plugin/plugin" "gorm.io/gorm" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" interfacecase...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/environment.go
server/service/interfacecase/environment.go
package interfacecase import ( "github.com/gin-gonic/gin" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/interfacecase" interfacecaseReq "github.com/test-instructor/yangfan/server/model/interfacecase/request" ) type EnvironmentService struct { } func (env *En...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/operation.go
server/service/interfacecase/operation.go
package interfacecase
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/performance.go
server/service/interfacecase/performance.go
package interfacecase import ( "fmt" "gorm.io/gorm" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/interfacecase" "github.com/test-instructor/yangfan/server/model/interfacecase/request" interfacecaseReq "github.com/test-instructor/yangfan/server/model/interf...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/api_config.go
server/service/interfacecase/api_config.go
package interfacecase import ( "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" interfacecaseReq "github.com/test-instructor/yangfan/server/model/interfacecase/request" ) type ApiConf...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/api_case_step.go
server/service/interfacecase/api_case_step.go
package interfacecase import ( "gorm.io/gorm" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" interfacecaseReq "github.com/test-instructor/yangfan/server/model/interfacecase/request...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/report.go
server/service/interfacecase/report.go
package interfacecase import ( "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/interfacecase" interfacecaseReq "github.com/test-instructor/yangfan/server/model/interfacecase/request" ) type ReportService struct { } func (reportService *ReportService) GetReportLi...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/message.go
server/service/interfacecase/message.go
package interfacecase import ( "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/interfacecase" interfacecaseReq "github.com/test-instructor/yangfan/server/model/interfacecase/request" ) type MessageServer struct{} func (msgs *MessageServer) CreateMessage(msg inte...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/enter.go
server/service/interfacecase/enter.go
package interfacecase type ServiceGroup struct { // Code generated by server Begin; DO NOT EDIT. ApiMenuService InterfaceTemplateService ApiConfigService TestCaseService RunCaseService ReportService ApiCaseService TimerTaskService PerformanceService PyPkgService EnvironmentService MessageServer ApiCIServ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/api_case.go
server/service/interfacecase/api_case.go
package interfacecase import ( "strconv" "gorm.io/gorm" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" interfacecaseReq "github.com/test-instructor/yangfan/server/model/interface...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/runBoomer.go
server/service/interfacecase/runTestCase/runBoomer.go
package runTestCase import ( "errors" "fmt" "github.com/rs/zerolog" "github.com/test-instructor/yangfan/hrp" "github.com/test-instructor/yangfan/hrp/pkg/boomer" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfa...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/runCase.go
server/service/interfacecase/runTestCase/runCase.go
package runTestCase import ( "encoding/json" "errors" "testing" "gorm.io/gorm" "github.com/test-instructor/yangfan/hrp" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" ) func N...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/recoverHrp.go
server/service/interfacecase/runTestCase/recoverHrp.go
package runTestCase import ( "fmt" "github.com/test-instructor/yangfan/server/global" ) func recoverHrp(reportOperation *ReportOperation) { if msg := recover(); msg != nil { global.GVA_LOG.Error("测试用例运行时报错:") global.GVA_LOG.Error(fmt.Sprintln(msg)) reportOperation.Recover(fmt.Sprintln(msg)) } }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/caseToHRP.go
server/service/interfacecase/runTestCase/caseToHRP.go
package runTestCase import ( "encoding/json" "fmt" "go.uber.org/zap" "github.com/test-instructor/yangfan/hrp" "github.com/test-instructor/yangfan/server/global" mic "github.com/test-instructor/yangfan/server/model/interfacecase" ) func yangfanTestCaseToHrpCase(testCaseList []mic.HrpCase, debugTalkFilePath stri...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/runBoomerMaster.go
server/service/interfacecase/runTestCase/runBoomerMaster.go
package runTestCase import ( "errors" "fmt" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" "gorm.io/gorm" ) func NewRunBoomerMaster(id uint) TestCase { return &RunBoomerMaster{ ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/debugTalk.go
server/service/interfacecase/runTestCase/debugTalk.go
package runTestCase import ( "fmt" "github.com/test-instructor/yangfan/hrp" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/interfacecase" "math/rand" "os" "sync" ) type debugTalkOperation struct { ID uint ProjectID uint FilePath string } func (d ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/runStep.go
server/service/interfacecase/runTestCase/runStep.go
package runTestCase import ( "encoding/json" "errors" "testing" "gorm.io/gorm" "github.com/test-instructor/yangfan/hrp" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" ) func N...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/caseSort.go
server/service/interfacecase/runTestCase/caseSort.go
package runTestCase import ( "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/interfacecase" "gorm.io/gorm" ) func caseSort(caseId uint) []interfacecase.ApiCaseRelationship { var apiCaseCase []interfacecase.ApiCaseRelationship caseDB := global.GVA_DB.Model(inter...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/runTask.go
server/service/interfacecase/runTestCase/runTask.go
package runTestCase import ( "encoding/json" "errors" "testing" "github.com/test-instructor/yangfan/hrp" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" ) func NewRunTask(runCase...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/runAPI.go
server/service/interfacecase/runTestCase/runAPI.go
package runTestCase import ( "encoding/json" "errors" "testing" "github.com/test-instructor/yangfan/hrp" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" ) func NewRunApi(runCaseR...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/apiCaseStep.go
server/service/interfacecase/runTestCase/apiCaseStep.go
package runTestCase import ( "github.com/test-instructor/yangfan/server/model/interfacecase" ) type ApiCaseStep struct { ID uint Name string `json:"name" form:"name" gorm:"column:name;comment:;"` FrontCase *bool `json:"front_case" orm:"front_case"` TStep []inter...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/taskStruct.go
server/service/interfacecase/runTestCase/taskStruct.go
package runTestCase import "github.com/test-instructor/yangfan/server/model/interfacecase" type TaskCaseHrp struct { Name string `json:"name"` Config interfacecase.ApiConfig `json:"Config"` TestSteps []TestSteps `json:"TestSteps"` } type TestSteps struct { Name string ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/testCase.go
server/service/interfacecase/runTestCase/testCase.go
package runTestCase import ( "errors" "fmt" "strconv" "gorm.io/gorm" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/interfacecase" ) func getCaseStep(id uint) (apiCaseStep interfacecase.ApiCaseStep) { global.GVA_DB.Model(&interfacecase.ApiCaseStep{}). Pr...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/runAllCase.go
server/service/interfacecase/runTestCase/runAllCase.go
package runTestCase import ( "context" "fmt" "github.com/test-instructor/yangfan/proto/run" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/grpc/client" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/runBoomerDebug.go
server/service/interfacecase/runTestCase/runBoomerDebug.go
package runTestCase import ( "encoding/json" "errors" "fmt" "testing" "gorm.io/gorm" "github.com/test-instructor/yangfan/hrp" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" ) ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/report.go
server/service/interfacecase/runTestCase/report.go
package runTestCase import ( "encoding/json" "github.com/test-instructor/yangfan/hrp" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/interfacecase" ) type ReportOperation struct { report *interfacecase.ApiReport } func (r *ReportOperation) CreateReport() { ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/runTag.go
server/service/interfacecase/runTestCase/runTag.go
package runTestCase import ( "encoding/json" "errors" "fmt" "testing" "github.com/test-instructor/yangfan/hrp" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/interfacecase" ) func NewRunTag(r...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/interfacecase/runTestCase/caseModel.go
server/service/interfacecase/runTestCase/caseModel.go
package runTestCase import ( "github.com/test-instructor/yangfan/hrp" "github.com/test-instructor/yangfan/server/model/interfacecase" ) type ApisCaseModel struct { Case []hrp.ITestCase Config interfacecase.ApiConfig SetupCase bool Environs map[string]string } type CaseList struct { Case []hrp.IT...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/example/exa_customer.go
server/service/example/exa_customer.go
package example import ( "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/example" "github.com/test-instructor/yangfan/server/model/system" systemService "github.com/test-instructor/yangfan/server/s...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/example/exa_excel_parse.go
server/service/example/exa_excel_parse.go
package example import ( "errors" "fmt" "strconv" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/system" "github.com/xuri/excelize/v2" ) type ExcelService struct{} func (exa *ExcelService) ParseInfoList2Excel(infoList []system.SysBaseMenu, filePath string) ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/example/exa_breakpoint_continue.go
server/service/example/exa_breakpoint_continue.go
package example import ( "errors" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/example" "gorm.io/gorm" ) type FileUploadAndDownloadService struct{} //@author: [piexlmax](https://github.com/piexlmax) //@function: FindOrCreateFile //@description: 上传文件时检测当前文件属...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/example/exa_file_upload_download.go
server/service/example/exa_file_upload_download.go
package example import ( "errors" "mime/multipart" "strings" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/example" "github.com/test-instructor/yangfan/server/utils/upload" ) //@author: [piex...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/service/example/enter.go
server/service/example/enter.go
package example type ServiceGroup struct { ExcelService CustomerService FileUploadAndDownloadService }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/plugin-tool/utils/check.go
server/plugin/plugin-tool/utils/check.go
package utils import ( "fmt" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/system" "strconv" ) func RegisterApis(apis ...system.SysApi) { var count int64 var apiPaths []string for i := range apis { apiPaths = append(apiPaths, apis[i].Path) } global.GVA_...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/ws/ws.go
server/plugin/ws/ws.go
package ws import ( "github.com/flipped-aurora/ws/core/biz" "github.com/flipped-aurora/ws/core/data" "github.com/gin-gonic/gin" "go.uber.org/zap" "nhooyr.io/websocket" ) type wsPlugin struct { logger *zap.Logger // 日志输出对象 manageBuf int64 ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/email/main.go
server/plugin/email/main.go
package email import ( "github.com/gin-gonic/gin" "github.com/test-instructor/yangfan/server/plugin/email/global" "github.com/test-instructor/yangfan/server/plugin/email/router" ) type emailPlugin struct{} func CreateEmailPlug(To, From, Host, Secret, Nickname string, Port int, IsSSL bool) *emailPlugin { global.G...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/email/service/sys_email.go
server/plugin/email/service/sys_email.go
package service import ( "github.com/test-instructor/yangfan/server/plugin/email/utils" ) type EmailService struct{} //@author: [maplepie](https://github.com/maplepie) //@function: EmailTest //@description: 发送邮件测试 //@return: err error func (e *EmailService) EmailTest() (err error) { subject := "test" body := "te...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/email/service/enter.go
server/plugin/email/service/enter.go
package service type ServiceGroup struct { EmailService } var ServiceGroupApp = new(ServiceGroup)
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/email/global/gloabl.go
server/plugin/email/global/gloabl.go
package global import "github.com/test-instructor/yangfan/server/plugin/email/config" var GlobalConfig = new(config.Email)
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/email/model/response/email.go
server/plugin/email/model/response/email.go
package response type Email struct { To string `json:"to"` // 邮件发送给谁 Subject string `json:"subject"` // 邮件标题 Body string `json:"body"` // 邮件内容 }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/email/utils/email.go
server/plugin/email/utils/email.go
package utils import ( "crypto/tls" "fmt" "net/smtp" "strings" "github.com/test-instructor/yangfan/server/plugin/email/global" "github.com/jordan-wright/email" ) //@author: [maplepie](https://github.com/maplepie) //@function: Email //@description: Email发送方法 //@param: subject string, body string //@return: err...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/email/api/sys_email.go
server/plugin/email/api/sys_email.go
package api import ( "github.com/gin-gonic/gin" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/response" email_response "github.com/test-instructor/yangfan/server/plugin/email/model/response" "github.com/test-instructor/yangfan/server/plugin/email/servic...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/email/api/enter.go
server/plugin/email/api/enter.go
package api type ApiGroup struct { EmailApi } var ApiGroupApp = new(ApiGroup)
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/email/config/email.go
server/plugin/email/config/email.go
package config type Email struct { To string `mapstructure:"to" json:"to" yaml:"to"` // 收件人:多个以英文逗号分隔 例:a@qq.com b@qq.com 正式开发中请把此项目作为参数使用 From string `mapstructure:"from" json:"from" yaml:"from"` // 发件人 你自己要发邮件的邮箱 Host string `mapstructure:"host" json:"host" yaml:"host"...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/email/router/sys_email.go
server/plugin/email/router/sys_email.go
package router import ( "github.com/gin-gonic/gin" "github.com/test-instructor/yangfan/server/middleware" "github.com/test-instructor/yangfan/server/plugin/email/api" ) type EmailRouter struct{} func (s *EmailRouter) InitEmailRouter(Router *gin.RouterGroup) { emailRouter := Router.Use(middleware.OperationRecord(...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/email/router/enter.go
server/plugin/email/router/enter.go
package router type RouterGroup struct { EmailRouter } var RouterGroupApp = new(RouterGroup)
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/fslogin/main.go
server/plugin/fslogin/main.go
package fslogin import ( "fmt" "github.com/gin-gonic/gin" cp "github.com/otiai10/copy" global2 "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/plugin/fslogin/global" "github.com/test-instructor/yangfan/server/plugin/fslogin/model" "github.com/test-instructor/yangfan...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/fslogin/service/service.go
server/plugin/fslogin/service/service.go
package service import ( "errors" global2 "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/system" "github.com/test-instructor/yangfan/server/plugin/fslogin/global" "github.com/test-instructor/yangfan/server/plugin/fslogin/model" "github.com/test-instructor/yan...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/fslogin/service/enter.go
server/plugin/fslogin/service/enter.go
package service type ServiceGroup struct { FsLoginService } var ServiceGroupApp = new(ServiceGroup)
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/fslogin/global/global.go
server/plugin/fslogin/global/global.go
package global import "github.com/test-instructor/yangfan/server/plugin/fslogin/config" var GlobalConfig = new(config.FsLogin)
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/fslogin/model/model.go
server/plugin/fslogin/model/model.go
package model import model "github.com/test-instructor/yangfan/server/model/system" type AccessReq struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` TokenType string `json:"token_type"` ExpiresIn int `json:"expires_in"` RefreshExpiresIn int ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/fslogin/api/api.go
server/plugin/fslogin/api/api.go
package api import ( "github.com/gin-gonic/gin" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/response" "github.com/test-instructor/yangfan/server/model/system" systemReq "github.com/test-instructor/yangfan/server/model/system/request" "github.com/test...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/fslogin/api/enter.go
server/plugin/fslogin/api/enter.go
package api import "github.com/test-instructor/yangfan/server/plugin/fslogin/passport" type ApiGroup struct { FsLoginApi } var ApiGroupApp = new(ApiGroup) var ( fsLoginPassPort = new(passport.FsLoginPassport) )
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/fslogin/passport/fsLogin.go
server/plugin/fslogin/passport/fsLogin.go
package passport import ( "bytes" "encoding/json" "fmt" "github.com/test-instructor/yangfan/server/plugin/fslogin/global" "github.com/test-instructor/yangfan/server/plugin/fslogin/model" "io" "net/http" ) type FsLoginPassport struct { } func (f *FsLoginPassport) FsLogin(code string) (userInfo model.FsUserInfo...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/fslogin/passport/enter.go
server/plugin/fslogin/passport/enter.go
package passport type PassportGroup struct { FsLoginPassport } var PassportGroupApp = new(FsLoginPassport)
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/fslogin/config/config.go
server/plugin/fslogin/config/config.go
package config type FsLogin struct { AppID string `mapstructure:"appID" json:"appID" yaml:"appID"` // 飞书应用APPID AppSecret string `mapstructure:"appSecret" json:"from" yaml:"appSecret"` // 飞书应用AppSecret RedirectUri string `mapstructure:"redirectUri" json:"redirectUri" yaml:"redir...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/fslogin/router/router.go
server/plugin/fslogin/router/router.go
package router import ( "github.com/gin-gonic/gin" "github.com/test-instructor/yangfan/server/plugin/fslogin/api" ) type FsLoginRouter struct { } func (s *FsLoginRouter) InitFsLoginRouter(Router *gin.RouterGroup) { plugRouter := Router plugApi := api.ApiGroupApp.FsLoginApi { plugRouter.GET("login", plugApi.Lo...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/plugin/fslogin/router/enter.go
server/plugin/fslogin/router/enter.go
package router type RouterGroup struct { FsLoginRouter } var RouterGroupApp = new(RouterGroup)
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/global/model.go
server/global/model.go
package global import ( "time" "gorm.io/gorm" ) type GVA_MODEL struct { ID uint `gorm:"primarykey"` // 主键ID CreatedAt time.Time `json:"CreatedAt"` // 创建时间 UpdatedAt time.Time `json:"UpdatedAt"` // 更新时间 DeletedAt gorm.DeletedAt `json:"-" gorm:"...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/global/global.go
server/global/global.go
package global import ( "github.com/songzhibin97/gkit/cache/local_cache" "github.com/test-instructor/yangfan/server/utils/timer" "sync" "golang.org/x/sync/singleflight" "go.uber.org/zap" "github.com/test-instructor/yangfan/server/config" "github.com/go-redis/redis/v8" "github.com/spf13/viper" "gorm.io/gor...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/resource/autocode_template/subcontract/data.go
server/resource/autocode_template/subcontract/data.go
package subcontract import ( _ "embed" ) //go:embed api_enter.go.tpl var API []byte //go:embed router_enter.go.tpl var Router []byte //go:embed service_enter.go.tpl var Server []byte
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/resource/example_plugin/main.go
server/resource/example_plugin/main.go
package example_plugin // 我们为您准备了一个需要提供api的插件模板 您只需要按照此模板注册路由即可 插件使用请把此包放置在plugin下 import ( "github.com/gin-gonic/gin" ) var ExamplePlugin = new(pluginExample) type pluginExample struct{} func NewPluginExample() *pluginExample { // 此处为注册生命周期 可以在此处写初始化内容 return &pluginExample{} } func (*pluginExample) Register(g...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_dictionary_detail.go
server/model/system/sys_dictionary_detail.go
// 自动生成模板SysDictionaryDetail package system import ( "github.com/test-instructor/yangfan/server/global" ) // 如果含有time.Time 请自行import time包 type SysDictionaryDetail struct { global.GVA_MODEL Label string `json:"label" form:"label" gorm:"column:label;comment:展示值"` // 展示值 V...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_user_project.go
server/model/system/sys_user_project.go
package system type SysUserProject struct { SysUser *SysUser `json:"-"` SysUserID uint `gorm:"column:sys_user_id"` Project *Project `json:"-"` ProjectID uint `gorm:"column:project_id"` Select bool `json:"select" gorm:"column:select"` Delete bool `json:"delete" gorm:"column:delete"` Sav...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_dictionary.go
server/model/system/sys_dictionary.go
// 自动生成模板SysDictionary package system import ( "github.com/test-instructor/yangfan/server/global" ) // 如果含有time.Time 请自行import time包 type SysDictionary struct { global.GVA_MODEL Name string `json:"name" form:"name" gorm:"column:name;comment:字典名(中)"` // 字典名(中) Type ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_authority.go
server/model/system/sys_authority.go
package system import ( "time" ) type SysAuthority struct { CreatedAt time.Time // 创建时间 UpdatedAt time.Time // 更新时间 DeletedAt *time.Time `sql:"index"` AuthorityId uint `json:"authorityId" gorm:"not null;unique;primary_key;comment:角色ID;size:90"` // 角色ID Authority...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_authority_btn.go
server/model/system/sys_authority_btn.go
package system type SysAuthorityBtn struct { AuthorityId uint `gorm:"comment:角色ID"` SysMenuID uint `gorm:"comment:菜单ID"` SysBaseMenuBtnID uint `gorm:"comment:菜单按钮ID"` SysBaseMenuBtn SysBaseMenuBtn ` gorm:"comment:按钮详情"` }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_system.go
server/model/system/sys_system.go
package system import ( "github.com/test-instructor/yangfan/server/config" ) // 配置文件结构体 type System struct { Config config.Server `json:"config"` }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_authority_menu.go
server/model/system/sys_authority_menu.go
package system type SysMenu struct { SysBaseMenu MenuId string `json:"menuId" gorm:"comment:菜单ID"` AuthorityId uint `json:"-" gorm:"comment:角色ID"` Children []SysMenu `json:"children" gorm:"-"` Parameters []SysBaseMenuParameter `json:"parameters" gorm:"foreig...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_auto_code.go
server/model/system/sys_auto_code.go
package system import ( "errors" "github.com/test-instructor/yangfan/server/global" "go/token" "strings" ) // AutoCodeStruct 初始版本自动化代码工具 type AutoCodeStruct struct { StructName string `json:"structName"` // Struct名称 TableName string `json:"tableName"` // 表名 PackageName ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_operation_record.go
server/model/system/sys_operation_record.go
// 自动生成模板SysOperationRecord package system import ( "time" "github.com/test-instructor/yangfan/server/global" ) // 如果含有time.Time 请自行import time包 type SysOperationRecord struct { global.GVA_MODEL Ip string `json:"ip" form:"ip" gorm:"column:ip;comment:请求ip"` // 请求...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_base_menu.go
server/model/system/sys_base_menu.go
package system import ( "github.com/test-instructor/yangfan/server/global" ) type SysBaseMenu struct { global.GVA_MODEL MenuLevel uint `json:"-"` ParentId string `json:"parentId" gorm:"comment:父菜单ID"` // 父菜单ID Path st...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_autocode_history.go
server/model/system/sys_autocode_history.go
package system import ( "strconv" "strings" "github.com/test-instructor/yangfan/server/global" "github.com/test-instructor/yangfan/server/model/common/request" ) // SysAutoCodeHistory 自动迁移代码记录,用于回滚,重放使用 type SysAutoCodeHistory struct { global.GVA_MODEL Package string `json:"package"` TableName strin...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_api.go
server/model/system/sys_api.go
package system import ( "github.com/test-instructor/yangfan/server/global" ) type SysApi struct { global.GVA_MODEL Path string `json:"path" gorm:"comment:api路径"` // api路径 Description string `json:"description" gorm:"comment:api中文描述"` // api中文描述 ApiGroup string `json:"apiGroup" gorm:"comm...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_user_authority.go
server/model/system/sys_user_authority.go
package system // SysUserAuthority 是 sysUser 和 sysAuthority 的连接表 type SysUserAuthority struct { SysUserId uint `gorm:"column:sys_user_id"` SysAuthorityAuthorityId uint `gorm:"column:sys_authority_authority_id"` } func (s *SysUserAuthority) TableName() string { return "sys_user_authority" }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_menu_btn.go
server/model/system/sys_menu_btn.go
package system import "github.com/test-instructor/yangfan/server/global" type SysBaseMenuBtn struct { global.GVA_MODEL Name string `json:"name" gorm:"comment:按钮关键key"` Desc string `json:"desc" gorm:"按钮备注"` SysBaseMenuID uint `json:"sysBaseMenuID" gorm:"comment:菜单ID"` }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/project.go
server/model/system/project.go
// 自动生成模板Project package system import ( "github.com/test-instructor/yangfan/server/global" ) // Project 结构体 // 如果含有time.Time 请自行import time包 type Project struct { global.GVA_MODEL Name string `json:"name" form:"name" gorm:"column:name;comment:;comment:项目名称"` Admin string `json:"admin" form:"admin" gorm:"c...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_jwt_blacklist.go
server/model/system/sys_jwt_blacklist.go
package system import ( "github.com/test-instructor/yangfan/server/global" ) type JwtBlacklist struct { global.GVA_MODEL Jwt string `gorm:"type:text;comment:jwt"` }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/sys_user.go
server/model/system/sys_user.go
package system import ( "github.com/satori/go.uuid" "github.com/test-instructor/yangfan/server/global" ) type SysUser struct { global.GVA_MODEL UUID uuid.UUID `json:"uuid" gorm:"comment:用户UUID"` // 用户UUID Username string `json:"user...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/response/sys_auto_code_history.go
server/model/system/response/sys_auto_code_history.go
package response import "time" type AutoCodeHistory struct { ID uint `json:"ID" gorm:"column:id"` CreatedAt time.Time `json:"CreatedAt" gorm:"column:created_at"` UpdatedAt time.Time `json:"UpdatedAt" gorm:"column:updated_at"` TableName string `json:"tableName" gorm:"column:table_name"` ...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/response/sys_authority.go
server/model/system/response/sys_authority.go
package response import "github.com/test-instructor/yangfan/server/model/system" type SysAuthorityResponse struct { Authority system.SysAuthority `json:"authority"` } type SysAuthorityCopyResponse struct { Authority system.SysAuthority `json:"authority"` OldAuthorityId uint `json:"oldAuthority...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/response/sys_authority_btn.go
server/model/system/response/sys_authority_btn.go
package response type SysAuthorityBtnRes struct { Selected []uint `json:"selected"` }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/response/sys_system.go
server/model/system/response/sys_system.go
package response import "github.com/test-instructor/yangfan/server/config" type SysConfigResponse struct { Config config.Server `json:"config"` }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/response/sys_auto_code.go
server/model/system/response/sys_auto_code.go
package response type Db struct { Database string `json:"database" gorm:"column:database"` } type Table struct { TableName string `json:"tableName" gorm:"column:table_name"` } type Column struct { DataType string `json:"dataType" gorm:"column:data_type"` ColumnName string `json:"columnName" gorm:"column:...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/response/sys_api.go
server/model/system/response/sys_api.go
package response import "github.com/test-instructor/yangfan/server/model/system" type SysAPIResponse struct { Api system.SysApi `json:"api"` } type SysAPIListResponse struct { Apis []system.SysApi `json:"apis"` }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/response/sys_menu.go
server/model/system/response/sys_menu.go
package response import "github.com/test-instructor/yangfan/server/model/system" type SysMenusResponse struct { Menus []system.SysMenu `json:"menus"` } type SysBaseMenusResponse struct { Menus []system.SysBaseMenu `json:"menus"` } type SysBaseMenuResponse struct { Menu system.SysBaseMenu `json:"menu"` }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/response/sys_captcha.go
server/model/system/response/sys_captcha.go
package response type SysCaptchaResponse struct { CaptchaId string `json:"captchaId"` PicPath string `json:"picPath"` CaptchaLength int `json:"captchaLength""` }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/response/sys_casbin.go
server/model/system/response/sys_casbin.go
package response import ( "github.com/test-instructor/yangfan/server/model/system/request" ) type PolicyPathResponse struct { Paths []request.CasbinInfo `json:"paths"` }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/response/sys_user.go
server/model/system/response/sys_user.go
package response import ( "github.com/test-instructor/yangfan/server/model/system" ) type SysUserResponse struct { User system.SysUser `json:"user"` } type LoginResponse struct { User system.SysUser `json:"user"` Token string `json:"token"` ExpiresAt int64 `json:"expiresAt"` }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/request/sys_dictionary_detail.go
server/model/system/request/sys_dictionary_detail.go
package request import ( "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/system" ) type SysDictionaryDetailSearch struct { system.SysDictionaryDetail request.PageInfo }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/request/sys_init.go
server/model/system/request/sys_init.go
package request import ( "fmt" "github.com/test-instructor/yangfan/server/config" ) type InitDB struct { DBType string `json:"dbType"` // 数据库类型 Host string `json:"host"` // 服务器地址 Port string `json:"port"` // 数据库连接端口 UserName string `j...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/request/sys_dictionary.go
server/model/system/request/sys_dictionary.go
package request import ( "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/system" ) type SysDictionarySearch struct { system.SysDictionary request.PageInfo }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/request/sys_authority_btn.go
server/model/system/request/sys_authority_btn.go
package request type SysAuthorityBtnReq struct { MenuID uint `json:"menuID"` AuthorityId uint `json:"authorityId"` Selected []uint `json:"selected"` }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/request/sys_operation_record.go
server/model/system/request/sys_operation_record.go
package request import ( "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/system" ) type SysOperationRecordSearch struct { system.SysOperationRecord request.PageInfo }
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false
test-instructor/yangfan
https://github.com/test-instructor/yangfan/blob/b652da8cc7c6973b1ff10c8154fac49f2d99834d/server/model/system/request/sys_api.go
server/model/system/request/sys_api.go
package request import ( "github.com/test-instructor/yangfan/server/model/common/request" "github.com/test-instructor/yangfan/server/model/system" ) // api分页条件查询及排序结构体 type SearchApiParams struct { system.SysApi request.PageInfo OrderKey string `json:"orderKey"` // 排序 Desc bool `json:"desc"` // 排序方式:升...
go
Apache-2.0
b652da8cc7c6973b1ff10c8154fac49f2d99834d
2026-01-07T09:45:38.570425Z
false