![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Beego
文章平均质量分 50
关于Beego
undertale flower
这个作者很懒,什么都没留下…
展开
-
Go项目优化——动态缓存Redis的使用
Go项目优化——使用Redis作为动态缓存本文使用的第三方包是github.com/gomodule/redigo/redis,讲述了如何使用go连接redis、连接池、以及在项目中的使用。原创 2022-10-15 18:05:16 · 1355 阅读 · 0 评论 -
Go项目优化——使用Elasticsearch搜索引擎
go项目——搜索优化:使用Elasticsearch搜索引擎原创 2022-10-14 22:16:23 · 761 阅读 · 0 评论 -
Beego学习——腾讯云上传图片
文章目录1. 配置文件 app.conf2. `utils/tencent_cloud_cos.go`3. `controller/tencent_cloud_cos_controller.go`4. 测试 test.html1. 配置文件 app.conf# TencentCloud 腾讯云# 储存桶名称COS_BUCKET_NAME = ""# 所属地域COS_REGION = ""# 密钥:APPIDCOS_APP_ID = ""# 密钥:SecretIdCOS_SECRET_原创 2022-02-13 21:56:32 · 666 阅读 · 0 评论 -
Beego学习——Jwt实现用户登录注册
目录1. models包1.1 jwt.go1.2 user.go2. controller包2.1 user.go3.routers包3.1 router.go4. conf包5. main.go启动:bee run -gendoc=true -downdoc=true文章内容中有的注释是个人的理解,可能不严谨1. models包1.1 jwt.go// JWT : header payload signature// json web token: 标头 有效负载 签名const (原创 2021-10-29 22:13:31 · 544 阅读 · 0 评论 -
Beego学习——实现用户登录登出
controller user.goimport ( "demo03.cn/models" "encoding/json" "fmt" "github.com/astaxie/beego" "github.com/astaxie/beego/orm")type UserController struct { beego.Controller}func (c *UserController) Reg() { resp :=make(map[string]interface{.原创 2021-09-19 03:43:47 · 669 阅读 · 0 评论 -
Beego学习——orm实现简单的crud
package mainimport ( "fmt" "github.com/astaxie/beego/logs" "github.com/astaxie/beego/orm" _ "github.com/go-sql-driver/mysql")// Model Structtype User0 struct { Id int // beego 默认设置id为主键,自动递增 Name string `orm:"size(100)"`}func init() {原创 2021-09-11 17:32:36 · 252 阅读 · 0 评论