Skip to content

Commit

Permalink
mod: 修改依赖的仓库
Browse files Browse the repository at this point in the history
  • Loading branch information
dezhiShen authored and dezhiShen committed Feb 24, 2024
1 parent c40010a commit ba0c9f0
Show file tree
Hide file tree
Showing 24 changed files with 56 additions and 56 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
go语言开发的[satori](https://satori.chat/zh-CN)协议的sdk客户端

[![](https://img.shields.io/github/license/dezhishen/satori-sdk-go.svg?logo=github)](./LICENSE)
[![](https://img.shields.io/github/stars/dezhishen/satori-sdk-go.svg?logo=github)](https://github.com/dezhishen/satori-sdk-go/stargazers)
[![](https://img.shields.io/github/forks/dezhishen/satori-sdk-go.svg?logo=github)](https://github.com/dezhishen/satori-sdk-go/network/members)
[![](https://img.shields.io/github/contributors/dezhishen/satori-sdk-go.svg?logo=github)](https://github.com/dezhishen/satori-sdk-go/graphs/contributors)
[![](https://img.shields.io/github/stars/dezhishen/satori-sdk-go.svg?logo=github)](https://github.com/satori-protocol-go/satori-sdk-go/stargazers)
[![](https://img.shields.io/github/forks/dezhishen/satori-sdk-go.svg?logo=github)](https://github.com/satori-protocol-go/satori-sdk-go/network/members)
[![](https://img.shields.io/github/contributors/dezhishen/satori-sdk-go.svg?logo=github)](https://github.com/satori-protocol-go/satori-sdk-go/graphs/contributors)

[![](https://img.shields.io/github/commit-activity/m/dezhishen/satori-sdk-go?logo=github)](https://github.com/dezhishen/satori-sdk-go/graphs/commit-activity)
[![](https://img.shields.io/github/last-commit/dezhishen/satori-sdk-go.svg?logo=github)](https://github.com/dezhishen/satori-sdk-go/commits)
[![](https://img.shields.io/github/commit-activity/m/dezhishen/satori-sdk-go?logo=github)](https://github.com/satori-protocol-go/satori-sdk-go/graphs/commit-activity)
[![](https://img.shields.io/github/last-commit/dezhishen/satori-sdk-go.svg?logo=github)](https://github.com/satori-protocol-go/satori-sdk-go/commits)
[![wakatime](https://wakatime.com/badge/user/a2c981ca-317d-4b34-8ed9-4264fbfdb775/project/018b2817-27cb-454d-b957-5a4686855dcd.svg)](https://wakatime.com/badge/user/a2c981ca-317d-4b34-8ed9-4264fbfdb775/project/018b2817-27cb-454d-b957-5a4686855dcd)
## 架构图
![](doc/images/架构图.png)
Expand Down Expand Up @@ -46,8 +46,8 @@ go语言开发的[satori](https://satori.chat/zh-CN)协议的sdk客户端
- [x] Message
- [x] API
- [x] Event
- [x] ~~Model~~[dezhishen/satori-model-go](https://github.com/dezhishen/satori-model-go)提供
- [x] ~~[元素]构建器和解析器~~[dezhishen/satori-model-go](https://github.com/dezhishen/satori-model-go)提供
- [x] ~~Model~~[dezhishen/satori-model-go](https://github.com/satori-protocol-go/satori-model-go)提供
- [x] ~~[元素]构建器和解析器~~[dezhishen/satori-model-go](https://github.com/satori-protocol-go/satori-model-go)提供
- [x] Reaction
- [x] API
- [x] Event
Expand Down
6 changes: 3 additions & 3 deletions examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"fmt"

"github.com/dezhishen/satori-sdk-go/pkg/api"
"github.com/dezhishen/satori-sdk-go/pkg/config"
"github.com/dezhishen/satori-sdk-go/pkg/event"
"github.com/satori-protocol-go/satori-sdk-go/pkg/api"
"github.com/satori-protocol-go/satori-sdk-go/pkg/config"
"github.com/satori-protocol-go/satori-sdk-go/pkg/event"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/dezhishen/satori-sdk-go
module github.com/satori-protocol-go/satori-sdk-go

go 1.20

require (
github.com/dezhishen/satori-model-go v0.0.4
github.com/gin-gonic/gin v1.9.1
github.com/satori-protocol-go/satori-model-go v0.0.6
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnht
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
github.com/dezhishen/satori-model-go v0.0.4 h1:bN2T/wLo1Pn3itiw8UIcLf1zFdxfQYVBgHxFeO0llCw=
github.com/dezhishen/satori-model-go v0.0.4/go.mod h1:HmE03g6z9clHGKMXLJCwgBRlr4NN6Clsayubx628j84=
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
Expand Down Expand Up @@ -190,6 +188,8 @@ github.com/sagikazarmark/locafero v0.3.0 h1:zT7VEGWC2DTflmccN/5T1etyKvxSxpHsjb9c
github.com/sagikazarmark/locafero v0.3.0/go.mod h1:w+v7UsPNFwzF1cHuOajOOzoq4U7v/ig1mpRjqV+Bu1U=
github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE=
github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ=
github.com/satori-protocol-go/satori-model-go v0.0.6 h1:Cxe6emS+gxTIU9NxmDUYqqDWcPX+me+zGqxqJn9G8iU=
github.com/satori-protocol-go/satori-model-go v0.0.6/go.mod h1:R+7VkMNjo74rCmvHijpmQywU/Ahc9DcC/0YUCaYYLuE=
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo=
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/api.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package api

import (
"github.com/dezhishen/satori-sdk-go/pkg/client"
"github.com/dezhishen/satori-sdk-go/pkg/config"
"github.com/satori-protocol-go/satori-sdk-go/pkg/client"
"github.com/satori-protocol-go/satori-sdk-go/pkg/config"
)

type SatoriApi interface {
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/channel.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package api

import (
"github.com/dezhishen/satori-model-go/pkg/channel"
"github.com/dezhishen/satori-sdk-go/pkg/client"
"github.com/satori-protocol-go/satori-model-go/pkg/channel"
"github.com/satori-protocol-go/satori-sdk-go/pkg/client"
)

type SatoriChannelApi interface {
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/guild.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package api

import (
"github.com/dezhishen/satori-model-go/pkg/guild"
"github.com/dezhishen/satori-sdk-go/pkg/client"
"github.com/satori-protocol-go/satori-model-go/pkg/guild"
"github.com/satori-protocol-go/satori-sdk-go/pkg/client"
)

type SatoriGuildApi interface {
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/guildmember.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package api

import (
"github.com/dezhishen/satori-model-go/pkg/guildmember"
"github.com/dezhishen/satori-sdk-go/pkg/client"
"github.com/satori-protocol-go/satori-model-go/pkg/guildmember"
"github.com/satori-protocol-go/satori-sdk-go/pkg/client"
)

type SatoriGuildMemberApi interface {
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/guildrole.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package api

import (
"github.com/dezhishen/satori-model-go/pkg/guildrole"
"github.com/dezhishen/satori-sdk-go/pkg/client"
"github.com/satori-protocol-go/satori-model-go/pkg/guildrole"
"github.com/satori-protocol-go/satori-sdk-go/pkg/client"
)

type SatoriGuildRoleApi interface {
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/login.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package api

import (
"github.com/dezhishen/satori-model-go/pkg/login"
"github.com/dezhishen/satori-sdk-go/pkg/client"
"github.com/satori-protocol-go/satori-model-go/pkg/login"
"github.com/satori-protocol-go/satori-sdk-go/pkg/client"
)

type SatoriLoginApi interface {
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/message.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package api

import (
"github.com/dezhishen/satori-model-go/pkg/message"
"github.com/dezhishen/satori-sdk-go/pkg/client"
"github.com/satori-protocol-go/satori-model-go/pkg/message"
"github.com/satori-protocol-go/satori-sdk-go/pkg/client"
)

type SatoriMessageApi interface {
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/reaction.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package api

import (
"github.com/dezhishen/satori-model-go/pkg/user"
"github.com/dezhishen/satori-sdk-go/pkg/client"
"github.com/satori-protocol-go/satori-model-go/pkg/user"
"github.com/satori-protocol-go/satori-sdk-go/pkg/client"
)

type SatoriReactionApi interface {
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/user.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package api

import (
"github.com/dezhishen/satori-model-go/pkg/user"
"github.com/dezhishen/satori-sdk-go/pkg/client"
"github.com/satori-protocol-go/satori-model-go/pkg/user"
"github.com/satori-protocol-go/satori-sdk-go/pkg/client"
)

type SatoriUserApi interface {
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package client
import (
"fmt"

"github.com/dezhishen/satori-sdk-go/pkg/config"
"github.com/satori-protocol-go/satori-sdk-go/pkg/config"
)

type ApiTemplate interface {
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/api_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http"
"strings"

"github.com/dezhishen/satori-sdk-go/pkg/config"
"github.com/satori-protocol-go/satori-sdk-go/pkg/config"
)

type HttpChannel struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/api_ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package client
// "strings"
// "time"

// "github.com/dezhishen/satori-sdk-go/pkg/config"
// "github.com/satori-protocol-go/satori-sdk-go/pkg/config"
// "github.com/gorilla/websocket"
// log "github.com/sirupsen/logrus"
// )
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"fmt"

"github.com/dezhishen/satori-sdk-go/pkg/config"
"github.com/satori-protocol-go/satori-sdk-go/pkg/config"
)

type EventTemplate interface {
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/event_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"io"
"net/http"

"github.com/dezhishen/satori-sdk-go/pkg/config"
"github.com/gin-gonic/gin"
"github.com/satori-protocol-go/satori-sdk-go/pkg/config"
)

type WebhookEventChannel struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/client/event_ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"sync"
"time"

"github.com/dezhishen/satori-sdk-go/pkg/config"
"github.com/dezhishen/satori-sdk-go/pkg/constant"
"github.com/gorilla/websocket"
"github.com/satori-protocol-go/satori-sdk-go/pkg/config"
"github.com/satori-protocol-go/satori-sdk-go/pkg/constant"
log "github.com/sirupsen/logrus"
)

Expand Down
8 changes: 4 additions & 4 deletions pkg/event/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (

log "github.com/sirupsen/logrus"

"github.com/dezhishen/satori-model-go/pkg/login"
"github.com/dezhishen/satori-sdk-go/pkg/client"
"github.com/dezhishen/satori-sdk-go/pkg/config"
"github.com/dezhishen/satori-sdk-go/pkg/constant"
"github.com/satori-protocol-go/satori-model-go/pkg/login"
"github.com/satori-protocol-go/satori-sdk-go/pkg/client"
"github.com/satori-protocol-go/satori-sdk-go/pkg/config"
"github.com/satori-protocol-go/satori-sdk-go/pkg/constant"
"github.com/tidwall/gjson"
)

Expand Down
14 changes: 7 additions & 7 deletions pkg/event/model.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package event

import (
"github.com/dezhishen/satori-model-go/pkg/channel"
"github.com/dezhishen/satori-model-go/pkg/guild"
"github.com/dezhishen/satori-model-go/pkg/guildmember"
"github.com/dezhishen/satori-model-go/pkg/guildrole"
"github.com/dezhishen/satori-model-go/pkg/login"
"github.com/dezhishen/satori-model-go/pkg/message"
"github.com/dezhishen/satori-model-go/pkg/user"
"github.com/satori-protocol-go/satori-model-go/pkg/channel"
"github.com/satori-protocol-go/satori-model-go/pkg/guild"
"github.com/satori-protocol-go/satori-model-go/pkg/guildmember"
"github.com/satori-protocol-go/satori-model-go/pkg/guildrole"
"github.com/satori-protocol-go/satori-model-go/pkg/login"
"github.com/satori-protocol-go/satori-model-go/pkg/message"
"github.com/satori-protocol-go/satori-model-go/pkg/user"
)

type SignInfo struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/resource/guildmember/guildmember.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package guildmember

import "github.com/dezhishen/satori-model-go/pkg/user"
import "github.com/satori-protocol-go/satori-model-go/pkg/user"

type GuildMember struct {
User *user.User `json:"user"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/resource/login/login.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package login

import "github.com/dezhishen/satori-model-go/pkg/user"
import "github.com/satori-protocol-go/satori-model-go/pkg/user"

type LoginStatus int32

Expand Down
8 changes: 4 additions & 4 deletions pkg/resource/message/message.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package message

import (
"github.com/dezhishen/satori-model-go/pkg/channel"
"github.com/dezhishen/satori-model-go/pkg/guild"
"github.com/dezhishen/satori-model-go/pkg/guildmember"
"github.com/dezhishen/satori-model-go/pkg/user"
"github.com/satori-protocol-go/satori-model-go/pkg/channel"
"github.com/satori-protocol-go/satori-model-go/pkg/guild"
"github.com/satori-protocol-go/satori-model-go/pkg/guildmember"
"github.com/satori-protocol-go/satori-model-go/pkg/user"
)

type Message struct {
Expand Down

0 comments on commit ba0c9f0

Please sign in to comment.