Skip to content

Commit 5112f51

Browse files
committed
style: transfer ownership
1 parent 21ed683 commit 5112f51

File tree

371 files changed

+1258
-1227
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

371 files changed

+1258
-1227
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ linters:
4747

4848
linters-settings:
4949
goimports:
50-
local-prefixes: github.com/zhufuyi/sponge
50+
local-prefixes: github.com/go-dev-frame/sponge
5151
gofmt:
5252
rewrite-rules:
5353
- pattern: 'interface{}'

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 zhufuyi
3+
Copyright (c) 2022 zhuyasen
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SHELL := /bin/bash
22

3-
PROJECT_NAME := "github.com/zhufuyi/sponge"
3+
PROJECT_NAME := "github.com/go-dev-frame/sponge"
44
PKG := "$(PROJECT_NAME)"
55
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/ | grep -v /api/ | grep -v /cmd/)
66

@@ -12,8 +12,8 @@ install:
1212
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
1313
go install github.com/envoyproxy/protoc-gen-validate@latest
1414
go install github.com/srikrsna/protoc-gen-gotag@latest
15-
go install github.com/zhufuyi/sponge/cmd/protoc-gen-go-gin@latest
16-
go install github.com/zhufuyi/sponge/cmd/protoc-gen-go-rpc-tmpl@latest
15+
go install github.com/go-dev-frame/sponge/cmd/protoc-gen-go-gin@latest
16+
go install github.com/go-dev-frame/sponge/cmd/protoc-gen-go-rpc-tmpl@latest
1717
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@latest
1818
go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@latest
1919
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
@@ -48,7 +48,7 @@ cover:
4848
graph:
4949
@echo "generating graph ......"
5050
@cp -f cmd/serverNameExample_mixExample/main.go .
51-
go-callvis -skipbrowser -format=svg -nostd -file=serverNameExample_mixExample github.com/zhufuyi/sponge
51+
go-callvis -skipbrowser -format=svg -nostd -file=serverNameExample_mixExample github.com/go-dev-frame/sponge
5252
@rm -f main.go serverNameExample_mixExample.gv
5353

5454
# delete the templates code start

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
## English | [简体中文](assets/readme-cn.md)
22

33
<p align="center">
4-
<img width="500px" src="https://raw.githubusercontent.com/zhufuyi/sponge/main/assets/logo.png">
4+
<img width="500px" src="https://raw.githubusercontent.com/go-dev-frame/sponge/main/assets/logo.png">
55
</p>
66

77
<div align=center>
88

9-
[![Go Report](https://goreportcard.com/badge/github.com/zhufuyi/sponge)](https://goreportcard.com/report/github.com/zhufuyi/sponge)
10-
[![codecov](https://codecov.io/gh/zhufuyi/sponge/branch/main/graph/badge.svg)](https://codecov.io/gh/zhufuyi/sponge)
11-
[![Go Reference](https://pkg.go.dev/badge/github.com/zhufuyi/sponge.svg)](https://pkg.go.dev/github.com/zhufuyi/sponge)
12-
[![Go](https://github.com/zhufuyi/sponge/workflows/Go/badge.svg?branch=main)](https://github.com/zhufuyi/sponge/actions)
9+
[![Go Report](https://goreportcard.com/badge/github.com/go-dev-frame/sponge)](https://goreportcard.com/report/github.com/go-dev-frame/sponge)
10+
[![codecov](https://codecov.io/gh/go-dev-frame/sponge/branch/main/graph/badge.svg)](https://codecov.io/gh/go-dev-frame/sponge)
11+
[![Go Reference](https://pkg.go.dev/badge/github.com/go-dev-frame/sponge.svg)](https://pkg.go.dev/github.com/go-dev-frame/sponge)
12+
[![Go](https://github.com/go-dev-frame/sponge/workflows/Go/badge.svg?branch=main)](https://github.com/go-dev-frame/sponge/actions)
1313
[![Awesome Go](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/avelino/awesome-go)
14-
[![License: MIT](https://img.shields.io/github/license/zhufuyi/sponge)](https://img.shields.io/github/license/zhufuyi/sponge)
14+
[![License: MIT](https://img.shields.io/github/license/go-dev-frame/sponge)](https://img.shields.io/github/license/go-dev-frame/sponge)
1515

1616
</div>
1717

@@ -58,7 +58,7 @@ Additionally, developers can use custom templates to generate various types of c
5858

5959
1. **Install sponge**
6060

61-
sponge supports installation on Windows, macOS, and Linux. Click to view the [**sponge installation guide**](https://github.com/zhufuyi/sponge/blob/main/assets/install-cn.md).
61+
Sponge supports installation on Windows, macOS, and Linux. Click to view the [**sponge installation guide**](https://github.com/go-dev-frame/sponge/blob/main/assets/install-cn.md).
6262

6363
2. **Open the code generation UI**
6464

@@ -71,10 +71,10 @@ Additionally, developers can use custom templates to generate various types of c
7171
Access `http://localhost:24631` in a local browser to generate code through the UI interface, as shown below:
7272

7373
<p align="center">
74-
<img width="1500px" src="https://raw.githubusercontent.com/zhufuyi/sponge/main/assets/en_sponge-ui.png">
74+
<img width="1500px" src="https://raw.githubusercontent.com/go-dev-frame/sponge/main/assets/en_sponge-ui.png">
7575
</p>
7676

77-
> To access from a browser on a different host, specify the host IP or domain when starting the UI, e.g., `sponge run -a http://your_host_ip:24631`. Alternatively, you can run the UI service in Docker to support cross-host access. Click to view the guide on [running the sponge UI service in Docker](https://github.com/zhufuyi/sponge/blob/main/assets/install-cn.md#Docker%E7%8E%AF%E5%A2%83).
77+
> To access from a browser on a different host, specify the host IP or domain when starting the UI, e.g., `sponge run -a http://your_host_ip:24631`. Alternatively, you can run the UI service in Docker to support cross-host access. Click to view the guide on [running the sponge UI service in Docker](https://github.com/go-dev-frame/sponge/blob/main/assets/install-cn.md#Docker%E7%8E%AF%E5%A2%83).
7878
7979
<br>
8080

@@ -85,15 +85,15 @@ Sponge supports generating code using both built-in templates and custom templat
8585
1. The code generation framework based on Sponge's built-in templates is shown below. There are two approaches: SQL and Protobuf.
8686

8787
<p align="center">
88-
<img width="1500px" src="https://raw.githubusercontent.com/zhufuyi/sponge/main/assets/sponge-framework.png">
88+
<img width="1500px" src="https://raw.githubusercontent.com/go-dev-frame/sponge/main/assets/sponge-framework.png">
8989
</p>
9090

9191
<br>
9292

9393
2. The code generation framework based on custom templates is shown below. There are three approaches: JSON, SQL, and Protobuf.
9494

9595
<p align="center">
96-
<img width="1200px" src="https://raw.githubusercontent.com/zhufuyi/sponge/main/assets/template-framework.png">
96+
<img width="1200px" src="https://raw.githubusercontent.com/go-dev-frame/sponge/main/assets/template-framework.png">
9797
</p>
9898

9999
<br>
@@ -103,7 +103,7 @@ Sponge supports generating code using both built-in templates and custom templat
103103
Sponge supports creating six types of backend services, all based on microservice architecture. The diagram below illustrates a typical layered microservice structure, featuring high performance, scalability, and built-in service governance capabilities.
104104

105105
<p align="center">
106-
<img width="1000px" src="https://raw.githubusercontent.com/zhufuyi/sponge/main/assets/microservices-framework.png">
106+
<img width="1000px" src="https://raw.githubusercontent.com/go-dev-frame/sponge/main/assets/microservices-framework.png">
107107
</p>
108108

109109
<br>
@@ -132,10 +132,10 @@ Click to view the [**test code**](https://github.com/zhufuyi/microservices_frame
132132
- Crontab [cron](https://github.com/robfig/cron)
133133
- Message Queue [rabbitmq](https://github.com/rabbitmq/amqp091-go), [kafka](https://github.com/IBM/sarama)
134134
- Distributed Transaction Manager [dtm](https://github.com/dtm-labs/dtm)
135-
- Distributed lock [dlock](https://github.com/zhufuyi/sponge/tree/main/pkg/dlock)
135+
- Distributed lock [dlock](https://github.com/go-dev-frame/sponge/tree/main/pkg/dlock)
136136
- Parameter validation [validator](https://github.com/go-playground/validator)
137-
- Adaptive rate limiting [ratelimit](https://github.com/zhufuyi/sponge/tree/main/pkg/shield/ratelimit)
138-
- Adaptive circuit breaking [circuitbreaker](https://github.com/zhufuyi/sponge/tree/main/pkg/shield/circuitbreaker)
137+
- Adaptive rate limiting [ratelimit](https://github.com/go-dev-frame/sponge/tree/main/pkg/shield/ratelimit)
138+
- Adaptive circuit breaking [circuitbreaker](https://github.com/go-dev-frame/sponge/tree/main/pkg/shield/circuitbreaker)
139139
- Distributed Tracing [opentelemetry](https://github.com/open-telemetry/opentelemetry-go)
140140
- Metrics monitoring [prometheus](https://github.com/prometheus/client_golang/prometheus), [grafana](https://github.com/grafana/grafana)
141141
- Service registration and discovery [etcd](https://github.com/etcd-io/etcd), [consul](https://github.com/hashicorp/consul), [nacos](https://github.com/alibaba/nacos)
@@ -144,7 +144,7 @@ Click to view the [**test code**](https://github.com/zhufuyi/microservices_frame
144144
- Configuration center [nacos](https://github.com/alibaba/nacos)
145145
- Code quality checking [golangci-lint](https://github.com/golangci/golangci-lint)
146146
- Continuous integration and deployment [jenkins](https://github.com/jenkinsci/jenkins), [docker](https://www.docker.com/), [kubernetes](https://github.com/kubernetes/kubernetes)
147-
- Generate project business architecture diagram [spograph](https://github.com/zhufuyi/spograph)
147+
- Generate project business architecture diagram [spograph](https://github.com/go-dev-frame/spograph)
148148
- Custom template generation code [go template](https://pkg.go.dev/text/template@go1.23.3)
149149

150150
<br>
@@ -217,23 +217,23 @@ Click to view [the detailed documentation](https://go-sponge.com/) for Sponge de
217217

218218
#### Examples of create services
219219

220-
- [Create **web** service based on **sql** (including CRUD)](https://github.com/zhufuyi/sponge_examples/tree/main/1_web-gin-CRUD)
221-
- [Create **grpc** service based on **sql** (including CRUD)](https://github.com/zhufuyi/sponge_examples/tree/main/2_micro-grpc-CRUD)
222-
- [Create **web** service based on **protobuf**](https://github.com/zhufuyi/sponge_examples/tree/main/3_web-gin-protobuf)
223-
- [Create **grpc** service based on **protobuf** ](https://github.com/zhufuyi/sponge_examples/tree/main/4_micro-grpc-protobuf)
224-
- [Create **grpc gateway** service based on **protobuf**](https://github.com/zhufuyi/sponge_examples/tree/main/5_micro-gin-rpc-gateway)
225-
- [Create **grpc+http** service based on **protobuf**](https://github.com/zhufuyi/sponge_examples/tree/main/_10_micro-grpc-http-protobuf)
220+
- [Create **web** service based on **sql** (including CRUD)](https://github.com/go-dev-frame/sponge_examples/tree/main/1_web-gin-CRUD)
221+
- [Create **grpc** service based on **sql** (including CRUD)](https://github.com/go-dev-frame/sponge_examples/tree/main/2_micro-grpc-CRUD)
222+
- [Create **web** service based on **protobuf**](https://github.com/go-dev-frame/sponge_examples/tree/main/3_web-gin-protobuf)
223+
- [Create **grpc** service based on **protobuf** ](https://github.com/go-dev-frame/sponge_examples/tree/main/4_micro-grpc-protobuf)
224+
- [Create **grpc gateway** service based on **protobuf**](https://github.com/go-dev-frame/sponge_examples/tree/main/5_micro-gin-rpc-gateway)
225+
- [Create **grpc+http** service based on **protobuf**](https://github.com/go-dev-frame/sponge_examples/tree/main/_10_micro-grpc-http-protobuf)
226226

227227
#### Examples of develop complete project
228228

229-
- [Simple community web backend service](https://github.com/zhufuyi/sponge_examples/tree/main/7_community-single)
230-
- [Simple community web service broken down into microservice](https://github.com/zhufuyi/sponge_examples/tree/main/8_community-cluster)
229+
- [Simple community web backend service](https://github.com/go-dev-frame/sponge_examples/tree/main/7_community-single)
230+
- [Simple community web service broken down into microservice](https://github.com/go-dev-frame/sponge_examples/tree/main/8_community-cluster)
231231

232232
#### Distributed transaction examples
233233

234-
- [Simple distributed order system](https://github.com/zhufuyi/sponge_examples/tree/main/9_order-grpc-distributed-transaction)
235-
- [Flash sale](https://github.com/zhufuyi/sponge_examples/tree/main/_12_sponge-dtm-flashSale)
236-
- [E-Commerce system](https://github.com/zhufuyi/sponge_examples/tree/main/_14_eshop)
234+
- [Simple distributed order system](https://github.com/go-dev-frame/sponge_examples/tree/main/9_order-grpc-distributed-transaction)
235+
- [Flash sale](https://github.com/go-dev-frame/sponge_examples/tree/main/_12_sponge-dtm-flashSale)
236+
- [E-Commerce system](https://github.com/go-dev-frame/sponge_examples/tree/main/_14_eshop)
237237

238238
<br>
239239
<br>

api/serverNameExample/v1/userExample.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/serverNameExample/v1/userExample.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import "google/api/annotations.proto";
1111
import "protoc-gen-openapiv2/options/annotations.proto";
1212
import "tagger/tagger.proto";
1313

14-
option go_package = "github.com/zhufuyi/sponge/api/serverNameExample/v1;v1";
14+
option go_package = "github.com/go-dev-frame/sponge/api/serverNameExample/v1;v1";
1515

1616
// Default settings for generating *.swagger.json documents
1717
// NOTE: because json does not support 64 bits, the int64 and uint64 types under *.swagger.json are automatically converted to string types

api/serverNameExample/v1/userExample_router.pb.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/types/types.pb.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/types/types.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto3";
22

33
package api.types;
44

5-
option go_package = "github.com/zhufuyi/sponge/api/types;types";
5+
option go_package = "github.com/go-dev-frame/sponge/api/types;types";
66

77
message Params {
88
int32 page = 1; // page number, starting from 0
@@ -13,9 +13,9 @@ message Params {
1313

1414
message Column {
1515
string name = 1; // column name
16-
string exp = 2; // expressions, which default to = when the value is null, have =, !=, >, >=, <, <=, like, in
16+
string exp = 2; // expressions, default value is "=", support =, !=, >, >=, <, <=, like, in
1717
string value = 3; // column value
18-
string logic = 4; // logical type, defaults to and when value is null, only &(and), ||(or)
18+
string logic = 4; // logical type, default value is "and", support &, and, ||, or
1919
}
2020

2121
message Conditions {

assets/install-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ go env GOBIN
9191

9292
```bash
9393
# 安装sponge
94-
go install github.com/zhufuyi/sponge/cmd/sponge@latest
94+
go install github.com/go-dev-frame/sponge/cmd/sponge@latest
9595

9696
# 初始化sponge,自动安装sponge依赖插件
9797
sponge init

0 commit comments

Comments
 (0)