zhufuyi / sponge

Sponge is a powerful Go development framework, it's easy to develop web, gRPC and microservice projects.
https://go-sponge.com
MIT License
1.46k stars 143 forks source link

panic: num range must be between 0 to 100 #83

Open hanwenbo opened 1 week ago

hanwenbo commented 1 week ago
func HCode(num int) int {
    if num > 99 || num < 1 {
        panic("num range must be between 0 to 100")
    }
    return 20000 + num*100
}

可以改大点吗 因为模块多了 100不够用的 希望支持到1000,比如订单的有日志/退款/会员卡/优惠券/满减送/分佣等等 现在我就不够用了

zhufuyi commented 1 week ago

好的,修改为一个项目默认扩展到1000个表

hanwenbo commented 1 week ago

好的谢谢啦

hanwenbo commented 1 week ago

大佬 这个急需 我需要如何在你没发布新版本的时候提前用上呢 是自己fork一下吗