Skip to content

Commit f4c52ea

Browse files
committed
refator: go-kratos monorepo
1 parent 53d6a2d commit f4c52ea

File tree

16 files changed

+1405
-1
lines changed

16 files changed

+1405
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# api/basic:
2+
3+
- 基础服务 API 定义
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# api:
2+
3+
- 所有服务的 API:
4+
- protobuf 定义:
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# api/unit:
2+
3+
- 业务单元 API 定义

mono-repo/go-kratos/{{cookiecutter.repo_name}}/app/biz/readme.md renamed to mono-repo/go-kratos/{{cookiecutter.repo_name}}/app/unit/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# app/biz:
1+
# app/unit:
22

33

44
- 业务服务列表:
File renamed without changes.
File renamed without changes.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# client:
2+
3+
- 客户端
4+
- web/
5+
- h5/
6+
- admin/
7+
- mobile/
8+
- ios/
9+
- android/
10+
- desktop/
11+
- macos/
12+
- windows/
13+
- linux/
14+
15+
16+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package auth
2+
3+
import "github.com/go-kratos/kratos/v2/errors"
4+
5+
var ErrAuthFail = errors.New(401, "Authentication failed", "Missing token or token incorrect")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package pagination
2+
3+
func GetPageOffset(pageNum, pageSize int64) int64 {
4+
return (pageNum - 1) * pageSize
5+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# third_party

0 commit comments

Comments
 (0)