# core **Repository Path**: gitee-go/core ## Basic Information - **Project Name**: core - **Description**: No description available - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-31 - **Last Updated**: 2021-11-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Core ## 简述 核心数据结构,通用数据结构、变量、状态定义 ## 代码结构 bean: 调用外部接口返回结构的结构体定义 ``` . ├── config.go ├── hbtpBean │ ├── client.go │ └── runner.go ├── httpBean │ ├── login.go │ ├── plugs.go │ ├── repo.go │ └── runner.go ├── oauthBean │ ├── http.go │ ├── info.go │ └── param.go ├── repobean │ └── repo.go ├── sysBean │ └── sys.go └── thirdbean └── gitee.go ``` common: 常量定义 ``` . ├── app.go ├── artifactory.go ├── artifactorytype.go ├── build.go ├── const.go ├── envs.go ├── http.go ├── msg.go ├── path.go ├── prebuild.go ├── thirdapi.go ├── web.go └── yaml.go ``` dbcore: db的驱动,分页操作 ``` . ├── db.go ├── db_test.go ├── mysql.go └── page.go ``` model: 数据库对应的结构体定义 ``` . ├── artifactory 制品库的数据结构 │ ├── t_artifact_file.go │ ├── t_artifact_package.go │ ├── t_artifact_snapshot.go │ ├── t_artifactory.go │ ├── t_artifactory_type.go │ ├── t_images.go │ ├── t_licenses.go │ ├── t_oss.go │ ├── t_oss_artifactory.go │ ├── t_token.go │ └── t_users.go ├── dbm.bat ├── dbm.sh ├── model_arti.yml ├── model_pipe.yml └── pipeline server的数据结构 ├── schema_migrations.go ├── t_artifact.go ├── t_artifact_archive.go ├── t_build.go ├── t_cmd_group.go ├── t_cmd_line.go ├── t_dag.go ├── t_depend_artifact.go ├── t_hook.go ├── t_job.go ├── t_message.go ├── t_param.go ├── t_permssion.go ├── t_pipeline.go ├── t_pipeline_branch.go ├── t_pipeline_version.go ├── t_plugin.go ├── t_repo.go ├── t_repo_variable.go ├── t_role.go ├── t_stage.go ├── t_sys_variable.go ├── t_user.go ├── t_user_msg.go ├── t_user_repo.go ├── t_user_role.go ├── t_user_token.go ├── t_webhooks.go ├── t_yml_verification.go └── t_yml_version.go ``` models: 业务接口返回给web的结构体定义 ``` . ├── artifact_dev.go ├── artifactory.go ├── models.go ├── plugin.go ├── show_plugin.go ├── t_artifact_archive.go ├── t_cmd_group.go ├── t_cmd_line.go ├── t_message.go ├── t_pipeline.go ├── t_pipeline_branch.go ├── t_pipeline_version.go ├── t_repo.go ├── t_user.go └── yml.go ``` runtime: 流水线运行时的结构体定义 ``` . ├── build.go ├── msg.go ├── msghd.go ├── plugin.go ├── prebuild.go ├── test.yml ├── test12.yml ├── testerr.yml ├── types.go └── types_test.go ``` thirdapi: 第三方的api的client接口和实现 ``` . ├── client.go client结构体 ├── files.go api返回的yml文件通用结构体 ├── giteeapi │ ├── gitee.go │ ├── giteeapi.go │ ├── giteeapi_test.go │ └── repositoryservice.go ├── repo.go api返回的仓库通用结构体 └── repositoryservice.go 接口定义 ```