MCPcopy Create free account
hub / github.com/binkuolo/fastapi / AccessLog

Class AccessLog

models/base.py:87–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86
87class AccessLog(TimestampMixin):
88 user_id = fields.IntField(description="用户ID")
89 target_url = fields.CharField(null=True, description="访问的url", max_length=255)
90 user_agent = fields.CharField(null=True, description="访问UA", max_length=255)
91 request_params = fields.JSONField(null=True, description="请求参数get|post")
92 ip = fields.CharField(null=True, max_length=32, description="访问IP")
93 note = fields.CharField(null=True, max_length=255, description="备注")
94
95 class Meta:
96 table_description = "用户操作记录表"
97 table = "access_log"
98
99
100class SystemParams(TimestampMixin):

Callers 1

get_access_logFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected