2 Commits
a4eea36ac7
...
10698c8c06
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
10698c8c06 |
4.1
|
2 weeks ago |
|
|
a581de1145 |
3.31
|
2 weeks ago |
9 changed files with 129 additions and 180 deletions
-
1.gitIgnore
-
10.idea/.gitignore
-
6.idea/misc.xml
-
8.idea/modules.xml
-
9.idea/practiceGit.iml
-
6.idea/vcs.xml
-
141.idea/workspace.xml
-
116吴迎召学习笔记/吴迎召4.01学习笔记(技术部分).txt
-
12吴迎召学习笔记/吴迎召4.01学习笔记(金融部分).txt
@ -0,0 +1 @@ |
|||
.idea/ |
|||
@ -1,10 +0,0 @@ |
|||
# 默认忽略的文件 |
|||
/shelf/ |
|||
/workspace.xml |
|||
# 基于编辑器的 HTTP 客户端请求 |
|||
/httpRequests/ |
|||
# 已忽略包含查询文件的默认文件夹 |
|||
/queries/ |
|||
# Datasource local storage ignored files |
|||
/dataSources/ |
|||
/dataSources.local.xml |
|||
@ -1,6 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project version="4"> |
|||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK"> |
|||
<output url="file://$PROJECT_DIR$/out" /> |
|||
</component> |
|||
</project> |
|||
@ -1,8 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project version="4"> |
|||
<component name="ProjectModuleManager"> |
|||
<modules> |
|||
<module fileurl="file://$PROJECT_DIR$/.idea/practiceGit.iml" filepath="$PROJECT_DIR$/.idea/practiceGit.iml" /> |
|||
</modules> |
|||
</component> |
|||
</project> |
|||
@ -1,9 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<module type="JAVA_MODULE" version="4"> |
|||
<component name="NewModuleRootManager" inherit-compiler-output="true"> |
|||
<exclude-output /> |
|||
<content url="file://$MODULE_DIR$" /> |
|||
<orderEntry type="inheritedJdk" /> |
|||
<orderEntry type="sourceFolder" forTests="false" /> |
|||
</component> |
|||
</module> |
|||
@ -1,6 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project version="4"> |
|||
<component name="VcsDirectoryMappings"> |
|||
<mapping directory="" vcs="Git" /> |
|||
</component> |
|||
</project> |
|||
@ -1,141 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project version="4"> |
|||
<component name="AutoImportSettings"> |
|||
<option name="autoReloadType" value="SELECTIVE" /> |
|||
</component> |
|||
<component name="ChangeListManager"> |
|||
<list default="true" id="46fcace5-02b8-477e-a4cb-e346f99227d5" name="Changes" comment="2026.03.27"> |
|||
<change beforePath="$PROJECT_DIR$/吴迎召3.26学习笔记.txt" beforeDir="false" /> |
|||
<change beforePath="$PROJECT_DIR$/吴迎召3.27学习笔记.txt" beforeDir="false" /> |
|||
</list> |
|||
<option name="SHOW_DIALOG" value="false" /> |
|||
<option name="HIGHLIGHT_CONFLICTS" value="true" /> |
|||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> |
|||
<option name="LAST_RESOLUTION" value="IGNORE" /> |
|||
</component> |
|||
<component name="Git.Settings"> |
|||
<option name="RECENT_BRANCH_BY_REPOSITORY"> |
|||
<map> |
|||
<entry key="$PROJECT_DIR$" value="milestone-20260325-学习笔记" /> |
|||
</map> |
|||
</option> |
|||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> |
|||
</component> |
|||
<component name="ProjectColorInfo">{ |
|||
"associatedIndex": 1, |
|||
"fromUser": false |
|||
}</component> |
|||
<component name="ProjectId" id="3BWFpx21OqJ9SjBVKLMNyDgcaIv" /> |
|||
<component name="ProjectViewState"> |
|||
<option name="hideEmptyMiddlePackages" value="true" /> |
|||
<option name="showLibraryContents" value="true" /> |
|||
</component> |
|||
<component name="PropertiesComponent">{ |
|||
"keyToString": { |
|||
"ModuleVcsDetector.initialDetectionPerformed": "true", |
|||
"RunOnceActivity.ShowReadmeOnStart": "true", |
|||
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true", |
|||
"RunOnceActivity.git.unshallow": "true", |
|||
"RunOnceActivity.typescript.service.memoryLimit.init": "true", |
|||
"codeWithMe.voiceChat.enabledByDefault": "false", |
|||
"git-widget-placeholder": "wuyingzhao", |
|||
"ignore.virus.scanning.warn.message": "true", |
|||
"kotlin-language-version-configured": "true", |
|||
"last_opened_file_path": "C:/Users/Administrator/Desktop/practiceGit", |
|||
"node.js.detected.package.eslint": "true", |
|||
"node.js.detected.package.tslint": "true", |
|||
"node.js.selected.package.eslint": "(autodetect)", |
|||
"node.js.selected.package.tslint": "(autodetect)", |
|||
"nodejs_package_manager_path": "npm", |
|||
"settings.editor.selected.configurable": "preferences.language.and.region", |
|||
"vue.rearranger.settings.migration": "true" |
|||
} |
|||
}</component> |
|||
<component name="TaskManager"> |
|||
<task active="true" id="Default" summary="Default task"> |
|||
<changelist id="46fcace5-02b8-477e-a4cb-e346f99227d5" name="Changes" comment="" /> |
|||
<created>1774597105469</created> |
|||
<option name="number" value="Default" /> |
|||
<option name="presentableId" value="Default" /> |
|||
<updated>1774597105469</updated> |
|||
<workItem from="1774597106737" duration="1547000" /> |
|||
<workItem from="1774598682364" duration="3258000" /> |
|||
</task> |
|||
<task id="LOCAL-00001" summary="2026.03.27"> |
|||
<option name="closed" value="true" /> |
|||
<created>1774598998341</created> |
|||
<option name="number" value="00001" /> |
|||
<option name="presentableId" value="LOCAL-00001" /> |
|||
<option name="project" value="LOCAL" /> |
|||
<updated>1774598998341</updated> |
|||
</task> |
|||
<task id="LOCAL-00002" summary="2026.03.27"> |
|||
<option name="closed" value="true" /> |
|||
<created>1774599148219</created> |
|||
<option name="number" value="00002" /> |
|||
<option name="presentableId" value="LOCAL-00002" /> |
|||
<option name="project" value="LOCAL" /> |
|||
<updated>1774599148219</updated> |
|||
</task> |
|||
<task id="LOCAL-00003" summary="2026.03.27"> |
|||
<option name="closed" value="true" /> |
|||
<created>1774599288945</created> |
|||
<option name="number" value="00003" /> |
|||
<option name="presentableId" value="LOCAL-00003" /> |
|||
<option name="project" value="LOCAL" /> |
|||
<updated>1774599288945</updated> |
|||
</task> |
|||
<task id="LOCAL-00004" summary="2026.03.27"> |
|||
<option name="closed" value="true" /> |
|||
<created>1774600524394</created> |
|||
<option name="number" value="00004" /> |
|||
<option name="presentableId" value="LOCAL-00004" /> |
|||
<option name="project" value="LOCAL" /> |
|||
<updated>1774600524394</updated> |
|||
</task> |
|||
<task id="LOCAL-00005" summary="2026.03.27"> |
|||
<option name="closed" value="true" /> |
|||
<created>1774601140534</created> |
|||
<option name="number" value="00005" /> |
|||
<option name="presentableId" value="LOCAL-00005" /> |
|||
<option name="project" value="LOCAL" /> |
|||
<updated>1774601140534</updated> |
|||
</task> |
|||
<option name="localTasksCounter" value="6" /> |
|||
<servers /> |
|||
</component> |
|||
<component name="TypeScriptGeneratedFilesManager"> |
|||
<option name="version" value="3" /> |
|||
</component> |
|||
<component name="Vcs.Log.Tabs.Properties"> |
|||
<option name="TAB_STATES"> |
|||
<map> |
|||
<entry key="MAIN"> |
|||
<value> |
|||
<State> |
|||
<option name="FILTERS"> |
|||
<map> |
|||
<entry key="branch"> |
|||
<value> |
|||
<list> |
|||
<option value="milestone-20260325-学习笔记" /> |
|||
</list> |
|||
</value> |
|||
</entry> |
|||
</map> |
|||
</option> |
|||
</State> |
|||
</value> |
|||
</entry> |
|||
</map> |
|||
</option> |
|||
</component> |
|||
<component name="VcsManagerConfiguration"> |
|||
<MESSAGE value="2026.03.27" /> |
|||
<option name="LAST_COMMIT_MESSAGE" value="2026.03.27" /> |
|||
</component> |
|||
<component name="XSLT-Support.FileAssociations.UIState"> |
|||
<expand /> |
|||
<select /> |
|||
</component> |
|||
</project> |
|||
@ -0,0 +1,116 @@ |
|||
GoFrame 标准结构 |
|||
api/ dto 包 + 接口定义 定义前后端交互的接口规范(入参 / 出参) |
|||
internal/ src/main/java 核心业务代码(Controller/Service/DAO 全在这) |
|||
manifest/ resources/application.yml 项目配置文件(数据库 / 端口 / 环境配置) |
|||
resource/ resources/static + templates 静态资源(前端页面 / CSS / 图片) |
|||
utility/ utils 工具包 通用工具函数(加密 / 时间 / 字符串处理) |
|||
hack/ script 脚本目录 编译 / CI/CD 辅助脚本(非业务代码) |
|||
|
|||
# 生成名为「gf_demo」的 GoFrame 项目(-u 强制拉取最新模板) |
|||
gf init gf_demo -u |
|||
数据库go连接 |
|||
# 服务端口配置 |
|||
server: |
|||
address: ":8000" |
|||
|
|||
# 数据库配置(重点!) |
|||
database: |
|||
default: |
|||
# 连接串格式:mysql:账号:密码@tcp(IP:端口)/数据库名?参数1&参数2 |
|||
link: "mysql:root:root@tcp(127.0.0.1:3306)/gf_demo?charset=utf8mb4&parseTime=True&loc=Local" |
|||
debug: true # 开启调试,控制台会打印执行的SQL(新手必备) |
|||
maxIdle: 10 # 连接池最大空闲连接数 |
|||
maxOpen: 100 # 连接池最大活跃连接数 |
|||
package main |
|||
|
|||
import ( |
|||
"context" |
|||
// 1. 导入 MySQL 驱动(下划线表示只初始化,不直接调用) |
|||
_ "github.com/gogf/gf/v2/contrib/drivers/mysql" |
|||
// 2. 导入 GoFrame 核心包 |
|||
"github.com/gogf/gf/v2/frame/g" |
|||
"github.com/gogf/gf/v2/os/gctx" |
|||
) |
|||
|
|||
func main() { |
|||
// 初始化上下文(GoFrame 所有操作都需要 ctx) |
|||
ctx := gctx.New() |
|||
|
|||
// 测试数据库连接(核心代码) |
|||
testDBConnection(ctx) |
|||
|
|||
// 启动 GoFrame 服务(Web 项目必备) |
|||
g.Server().Run() |
|||
} |
|||
|
|||
// 定义和表对应的结构体(db标签映射数据库字段) |
|||
type User struct { |
|||
UserName string `json:"user_name" db:"user_name"` |
|||
Password string `json:"pwd" db:"pwd"` |
|||
Age int `json:"age" db:"age"` |
|||
} |
|||
|
|||
// 新增用户 |
|||
func addUser(ctx context.Context) { |
|||
db := g.DB() |
|||
// Insert():插入数据,支持结构体/Map |
|||
result, err := db.Model("user").Ctx(ctx).Insert(User{ |
|||
UserName: "小明", |
|||
Password: "123456", |
|||
Age: 18, |
|||
}) |
|||
if err != nil { |
|||
g.Log().Error(ctx, "新增失败:", err) |
|||
return |
|||
} |
|||
g.Log().Info(ctx, "新增成功,用户ID:", result.LastInsertId()) |
|||
} |
|||
// 查询所有用户 |
|||
func queryUsers(ctx context.Context) { |
|||
db := g.DB() |
|||
var users []User |
|||
// Scan():把查询结果赋值给切片 |
|||
err := db.Model("user").Ctx(ctx).Scan(&users) |
|||
if err != nil { |
|||
g.Log().Error(ctx, "查询失败:", err) |
|||
return |
|||
} |
|||
g.Log().Info(ctx, "查询到用户:", users) |
|||
} |
|||
// 条件查询(比如查年龄=18的用户) |
|||
func queryUserByAge(ctx context.Context) { |
|||
db := g.DB() |
|||
var user User |
|||
// Where():添加查询条件 |
|||
err := db.Model("user").Ctx(ctx).Where("age", 18).Scan(&user) |
|||
if err != nil { |
|||
g.Log().Error(ctx, "条件查询失败:", err) |
|||
return |
|||
} |
|||
g.Log().Info(ctx, "年龄18的用户:", user) |
|||
} |
|||
// 修改用户年龄 |
|||
func updateUser(ctx context.Context) { |
|||
db := g.DB() |
|||
// Update():修改数据,参数是 Map(键=数据库字段) |
|||
result, err := db.Model("user").Ctx(ctx). |
|||
Where("user_name", "小明"). // 条件:用户名=小明 |
|||
Update(g.Map{"age": 20}) // 修改:年龄=20 |
|||
if err != nil { |
|||
g.Log().Error(ctx, "修改失败:", err) |
|||
return |
|||
} |
|||
g.Log().Info(ctx, "修改成功,影响行数:", result.RowsAffected()) |
|||
} |
|||
// 删除用户 |
|||
func deleteUser(ctx context.Context) { |
|||
db := g.DB() |
|||
result, err := db.Model("user").Ctx(ctx). |
|||
Where("user_name", "小明"). |
|||
Delete() |
|||
if err != nil { |
|||
g.Log().Error(ctx, "删除失败:", err) |
|||
return |
|||
} |
|||
g.Log().Info(ctx, "删除成功,影响行数:", result.RowsAffected()) |
|||
} |
|||
@ -0,0 +1,12 @@ |
|||
股票核心基础术语 |
|||
全面梳理股票交易高频术语,涵盖证券、股票、A 股 / B 股 / H 股 / ST 股等标的定义;散户 / 大户 / 庄家 / 主力等投资者分类;基本面 / 政策面 / 技术面、系统 / 非系统风险等分析维度;一级 / 二级市场、牛熊市、多空、T+0/T+1、涨跌停、停牌等市场规则术语;还有送股 / 转增 / 配股、除权除息、北上 / 南下资金、融资融券等实操概念。 |
|||
国内证券市场基础 |
|||
明确国内仅有沪、深两大证券交易所;按板块划分股票代码规则(创业板 300、沪市 A 股 600/601/603、深市 A 股 000、中小板 002);介绍上证综指、深证成指、中小板 / 创业板指数等核心市场指数。 |
|||
股票交易核心规则 |
|||
明确交易时间(周一至周五法定假日除外,9:30-11:30、13:00-15:00)、交易单位(1 手 = 100 股)、常规个股 10% 涨跌幅限制、委托可撤单、A 股实行T+1 交收(当日买次日卖)四大核心规则。 |
|||
股票交易界面解读 |
|||
拆解交易界面核心数据(现价、量比、换手率、委比、内外盘、总市值、市盈率 / 市净率等);讲解分时图、五档买卖盘、成交明细的含义;介绍 K 线图与成交量的基础看法。 |
|||
常用技术指标 |
|||
讲解 K 线(阴阳线、周期、形态信号)、移动平均线(MA,多头 / 空头排列)、MACD(金叉 / 死叉)、RSI(超买超卖)四大核心技术指标的用法与信号含义。 |
|||
股票投资三大派别 |
|||
划分价值投资(基本面分析、长线持有)、技术分析(短线交易、看指标趋势)、趋势交易(中长线、介于两者之间)三类主流投资流派。 |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue