增加获取所有股票代码的接口

This commit is contained in:
injoyai
2024-10-28 14:15:37 +08:00
parent ec6e93d845
commit c5cfc2bc98
13 changed files with 84 additions and 81 deletions

View File

@@ -1,12 +1,6 @@
package main
import (
"bytes"
"encoding/binary"
"github.com/injoyai/goutil/g"
"github.com/injoyai/ios/client"
"github.com/injoyai/ios/server"
"github.com/injoyai/ios/server/listen"
"github.com/injoyai/logs"
"github.com/injoyai/tdx"
"github.com/injoyai/tdx/protocol"
@@ -40,20 +34,3 @@ func main() {
select {}
}
// 监听第三方包发送的数据,确定协议用
func _listen() {
listen.RunTCP(7709, func(s *server.Server) {
s.SetClientOption(func(c *client.Client) {
c.Logger.WithHEX()
})
})
buf := new(bytes.Buffer)
err := binary.Write(buf, binary.LittleEndian, g.Map{
"name": "名称",
"age": 17,
})
logs.PrintErr(err)
logs.Debug(buf.String())
}

View File

@@ -14,7 +14,7 @@ func main() {
logs.PrintErr(err)
for _, v := range resp.List {
logs.Debugf("%#v\n", v)
logs.Debug(v)
}
select {}