<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[omdox的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/omdox</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; omdox]]></copyright><item><title><![CDATA[go-zero项目快速搭建流程]]></title><link>https://blog.youkuaiyun.com/omdox/article/details/134072091</link><guid>https://blog.youkuaiyun.com/omdox/article/details/134072091</guid><author>omdox</author><pubDate>Fri, 27 Oct 2023 15:44:01 +0800</pubDate><description><![CDATA[goctl 是 go-zero 的内置脚手架, 是提升 go-zero 开发的一大利器, 可以一键生成代码、文档、部署 k8s yaml、dockerfile 等。api 是 go-zero 自研的领域特性语言, 作为生成 http 服务最基本的描述语言. api 领域特性语言包含语法版本, info 块, 结构体声明, 服务描述等几大块语言组成, 其中结构体和 golang 结构体语法几乎一样, 只是移除了 struct 关键字在bookstore下创建 rpc/model目录。]]></description><category></category></item><item><title><![CDATA[python装饰器]]></title><link>https://blog.youkuaiyun.com/omdox/article/details/129022735</link><guid>https://blog.youkuaiyun.com/omdox/article/details/129022735</guid><author>omdox</author><pubDate>Tue, 14 Feb 2023 11:53:27 +0800</pubDate><description><![CDATA[以下实现打印函数的执行时间为例, 分别用函数装饰器和类装饰器实现。]]></description><category></category></item><item><title><![CDATA[django使用装饰器登陆方法]]></title><link>https://blog.youkuaiyun.com/omdox/article/details/87467518</link><guid>https://blog.youkuaiyun.com/omdox/article/details/87467518</guid><author>omdox</author><pubDate>Sat, 16 Feb 2019 19:36:59 +0800</pubDate><description><![CDATA[
from django.utils.decorators import method_decorator导入django自带的注册装饰器的函数
以下是校验登陆的装饰器函数
def CheckLogin(func):def CheckLogin(func):
def warpper(request, *args, **kwargs):
if ‘user_id’ in request.session...]]></description><category></category></item></channel></rss>