Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
U
utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
library
utils
Commits
07b52e30
Verified
Commit
07b52e30
authored
Nov 11, 2019
by
Cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update depency
parent
8268e27e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
21 deletions
+36
-21
caller_test.go
caller_test.go
+1
-1
go.mod
go.mod
+4
-4
go.sum
go.sum
+22
-9
gzh.go
sender/gzh.go
+2
-1
jpush.go
sender/jpush.go
+3
-3
sms.go
sender/sms.go
+3
-2
wrapper.go
sender/wrapper.go
+1
-1
No files found.
caller_test.go
View file @
07b52e30
...
@@ -12,7 +12,7 @@ import (
...
@@ -12,7 +12,7 @@ import (
func
TestGetCurrentFunctionName
(
t
*
testing
.
T
)
{
func
TestGetCurrentFunctionName
(
t
*
testing
.
T
)
{
funcName
:=
GetCurrentFunctionName
()
funcName
:=
GetCurrentFunctionName
()
if
funcName
==
"gitlab.qingclass.c
n
/library/utils.TestGetCurrentFunctionName"
{
if
funcName
==
"gitlab.qingclass.c
c
/library/utils.TestGetCurrentFunctionName"
{
t
.
Log
(
"success"
)
t
.
Log
(
"success"
)
}
else
{
}
else
{
t
.
Failed
()
t
.
Failed
()
...
...
go.mod
View file @
07b52e30
module gitlab.qingclass.c
n
/library/utils
module gitlab.qingclass.c
c
/library/utils
require (
require (
github.com/heycayc/chkcki v0.0.0-20180425093509-ad62647adf04
github.com/heycayc/chkcki v0.0.0-20180425093509-ad62647adf04
github.com/sirupsen/logrus v1.
3.0
github.com/sirupsen/logrus v1.
4.2
github.com/valyala/fasthttp v1.
0
.0
github.com/valyala/fasthttp v1.
6
.0
gitlab.qingclass.c
n/library/jpush v0.0.3
gitlab.qingclass.c
c/library/jpush v0.0.5
)
)
go 1.13
go 1.13
go.sum
View file @
07b52e30
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/heycayc/chkcki v0.0.0-20180425093509-ad62647adf04 h1:S+9Ua2s9IVhZUzuqEBRtgvGyE0BNOwAVtl5zvVsoNAw=
github.com/heycayc/chkcki v0.0.0-20180425093509-ad62647adf04/go.mod h1:68nSgivWifFndv3X4OMS7EIuHaNxJb1PlYECLiH99jU=
github.com/heycayc/chkcki v0.0.0-20180425093509-ad62647adf04/go.mod h1:68nSgivWifFndv3X4OMS7EIuHaNxJb1PlYECLiH99jU=
github.com/klauspost/compress v1.4.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/klauspost/compress v1.8.2 h1:Bx0qjetmNjdFXASH02NSAREKpiaDwkO1DRZ3dV2KCcs=
github.com/klauspost/cpuid v0.0.0-20180405133222-e7e905edc00e/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek=
github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/klauspost/cpuid v1.2.1 h1:vJi+O/nMdFt0vqm8NZBI6wzALWdA2X+egi0ogNyrC/w=
github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek=
github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sirupsen/logrus v1.3.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasthttp v1.0.0/go.mod h1:4vX61m6KN+xDduDNwXrhIAVZaZaZiQ1luJk8LWSxF3s=
github.com/valyala/fasthttp v1.6.0 h1:uWF8lgKmeaIewWVPwi4GRq2P6+R46IgYZdxWtM+GtEY=
github.com/valyala/fasthttp v1.6.0/go.mod h1:FstJa9V+Pj9vQ7OJie2qMHdwemEDaDiSdBnvPM1Su9w=
github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio=
github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio=
gitlab.qingclass.cn/library/jpush v0.0.3 h1:wMeADXoapAWWjjHUCqxMHVRPUakIa9e3A+6MGHJtOAc=
gitlab.qingclass.cc/library/jpush v0.0.5 h1:Ek/OsD8b0JnFMt2jwO+tqDwCAZY26WsLGxPJPBxPa/k=
gitlab.qingclass.cn/library/jpush v0.0.3/go.mod h1:h4wvcwtBQSlZKJhpE2FwcXFLIZREfB7fBNYJSCWdGhE=
gitlab.qingclass.cc/library/jpush v0.0.5/go.mod h1:+QcYvsykSgXARkoRX1S+B77rw1g9w9MA+ixGaD9zMaM=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20180911220305-26e67e76b6c3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894 h1:Cz4ceDQGXuKRnVBDTS23GTn/pU5OE2C0WrNTOYK1Uuc=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
sender/gzh.go
View file @
07b52e30
...
@@ -2,8 +2,9 @@ package sender
...
@@ -2,8 +2,9 @@ package sender
import
(
import
(
"encoding/json"
"encoding/json"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
.
"gitlab.qingclass.c
n
/library/utils"
.
"gitlab.qingclass.c
c
/library/utils"
)
)
const
(
const
(
...
...
sender/jpush.go
View file @
07b52e30
...
@@ -6,10 +6,10 @@ import (
...
@@ -6,10 +6,10 @@ import (
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
.
"gitlab.qingclass.c
n
/library/utils"
.
"gitlab.qingclass.c
c
/library/utils"
Push
"gitlab.qingclass.c
n
/library/jpush"
Push
"gitlab.qingclass.c
c
/library/jpush"
"gitlab.qingclass.c
n
/library/jpush/push"
"gitlab.qingclass.c
c
/library/jpush/push"
)
)
// const appKey = "2eccc8d57e1bfd374e690f9d"
// const appKey = "2eccc8d57e1bfd374e690f9d"
...
...
sender/sms.go
View file @
07b52e30
...
@@ -2,10 +2,11 @@ package sender
...
@@ -2,10 +2,11 @@ package sender
import
(
import
(
"encoding/json"
"encoding/json"
"github.com/sirupsen/logrus"
.
"gitlab.qingclass.cn/library/utils"
"strconv"
"strconv"
"time"
"time"
"github.com/sirupsen/logrus"
.
"gitlab.qingclass.cc/library/utils"
)
)
const
(
const
(
...
...
sender/wrapper.go
View file @
07b52e30
...
@@ -5,7 +5,7 @@ import (
...
@@ -5,7 +5,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
.
"gitlab.qingclass.c
n
/library/utils"
.
"gitlab.qingclass.c
c
/library/utils"
)
)
func
Sender
(
accessToken
string
,
message
MessageStruct
)
(
code
int
,
msg
string
)
{
func
Sender
(
accessToken
string
,
message
MessageStruct
)
(
code
int
,
msg
string
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment