msg
This commit is contained in:
@@ -57,3 +57,6 @@ func Send(text string) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
33
msg/msg_test.go
Normal file
33
msg/msg_test.go
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* @Author: jager
|
||||
* @Email: lhj168os@gmail.com
|
||||
* @File: msg_test
|
||||
* @Date: 2021/12/17 5:56 下午
|
||||
* @package: msg
|
||||
* @Version: v1.0.0
|
||||
*
|
||||
* @Description:
|
||||
*
|
||||
*/
|
||||
|
||||
package msg
|
||||
|
||||
import (
|
||||
"github.com/jageros/hawox/httpc"
|
||||
"stock/stock"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_Post(t *testing.T) {
|
||||
url := ""
|
||||
stk, err := stock.NewStocks(600905)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
}
|
||||
stk.ForEachStock(func(stk stock.IArg) {
|
||||
arg := stk.Arg("o-KDV6NbRaanYz55fJuSgyR0qxxU")
|
||||
httpc.RequestWithInterface(httpc.POST, url, httpc.JSON, arg, nil)
|
||||
})
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user