You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
jaydan d4858f92ae user profile add avatar extra field 1 year ago
activity/v1 u 1 year ago
address/v1 adjust address 2 years ago
advert/v1 up 1 year ago
background_management_gateway/v1 uyp 1 year ago
background_management_user/v1 管理后台接口更改 1 year ago
common page 1 year ago
conf 增加财务的默认配置 1 year ago
configure/v1 iup 1 year ago
document/v1 update 1 year ago
dress_up/v1 delete 1 year ago
dynamic/v1 增加查询动态评论总数接口 1 year ago
error up 1 year ago
feedback/v1 up 1 year ago
finance/v1 update 1 year ago
gateway/v1 user profile add avatar extra field 1 year ago
gift/v1 update 1 year ago
helloword/v1 up 2 years ago
hot_live/v1 up 1 year ago
im/v1 im消息增加新的消息类型 1 year ago
logger/v1 u 2 years ago
message/v1 message 1 year ago
monitor/v1 up 2 years ago
room/v1 up 1 year ago
sms/v1 update sms request and response 2 years ago
third_party save 2 years ago
user_auth/v1 删除多余接口 1 year ago
user_profile/v1 user profile add avatar extra field 1 year ago
wallet/v1 wallet recharge interface add response body 1 year ago
.gitignore 管理后台增加用户相关接口 2 years ago
Makefile room 1 year ago
README.md up 2 years ago
go.mod up 1 year ago
openapi.yaml user profile add avatar extra field 1 year ago

README.md

jmproto

proto统一管理文件

初始化环境

## 在项目中初始化仓库变量
# 设置环境变量
export GIT_TERMINAL_PROMPT=1

# 绑定仓库SSH公钥
git config --global url."git.gz.internal.jumaiyx.cn:222".insteadof "https://git.gz.internal.jumaiyx.cn/"

#go env GOINSECURE="git.gz.internal.jumaiyx.cn"
 
# 指定仓库   
go env -w GOPRIVATE="git.gz.internal.jumaiyx.cn/"
go env -w GONOSUMDB="git.gz.internal.jumaiyx.cn/"
go env -w GONOPROXY="git.gz.internal.jumaiyx.cn/"

实操参考:Kratos API定义

例子

# 生成 proto 模板

kratos proto add api/helloworld/v1/helloword.proto

# 生成 client 源码
make api file_name=helloword

支持http

PS:如果服务需要接通网关对外支持,需要提供http支持,网关会代理到grpc

#导入
import "google/api/annotations.proto";
# service层下增加以下代码:
option (google.api.http) = {
  post: "/helloworld/{name}"
};

枚举类

# 常用枚举可以直接定义在error