zhoushuguang / lebron Goto Github PK
View Code? Open in Web Editor NEWHighly concurrent mall system built on go-zero
Highly concurrent mall system built on go-zero
go-zero微服务实战系列(五、缓存代码怎么写)里面的 ProductListRequest 结构为什么会有 ProductId
message ProductListRequest {
int32 category_id = 1;
int64 cursor = 2;
int32 ps = 3;
int64 product_id = 4;
}
请问这个 ProductId 的作用是什么?
请问接口鉴权如何做呢?
For example:
errors.Wrap()
errors.Is()
errors.As()
errors.Unwrap()
同一个服务,为啥要把rpc api admin分开成多个进程?
放一个里面不行么?
Line 107 in faf0719
CREATE TABLE orderitem
(
id
bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '订单子表id',
orderid
varchar(64) NOT NULL DEFAULT '' COMMENT '订单id',
userid
bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
proid
bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
proname
varchar(100) NOT NULL DEFAULT '' COMMENT '商品名称',
proimage
varchar(500) NOT NULL DEFAULT '' COMMENT '商品图片地址',
currentunitprice
decimal(20, 2) NOT NULL DEFAULT 0 COMMENT '生成订单时的商品单价,单位是元,保留两位小数',
quantity
int(10) NOT NULL DEFAULT 0 COMMENT '商品数量',
totalprice
decimal(20, 2) NOT NULL DEFAULT 0 COMMENT '商品总价,单位是元,保留两位小数',
create_time
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
update_time
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (id
),
KEY ix_orderid
(orderid
),
KEY ix_userid
(userid
),
KEY ix_proid
(proid
)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='订单明细表';
自己配置的 一直无法消费
cannot use zrpc.MustNewClient(c.GraphRPC) (value of type "github.com/zeromicro/go-zero/zrpc/internal".Client) as grpc.ClientConnInterface value in argument to graph.NewGraphClient: "github.com/zeromicro/go-zero/zrpc/internal".Client does not implement grpc.ClientConnInterface (missing method Invoke)",
请问示例的前端小程序代码有吗?
为什么这两个地方要对err做判断而不是e?
l.ctx
更合适还是context.Background()
更合适呢A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.