package
Version:
v0.0.0-...-28af436
Opens a new window with list of versions in this module.
Published: Nov 4, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Meta struct {
Id int64 `json:"id"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type Scope struct {
Username string `json:"Username"`
}
控制用户访问数据的访问
操作数据的时候,加上一个where条件
比如用户A10,要去编辑用户B(12)的文章, id=10 and create_by = 10
Source Files
¶
Click to show internal directories.
Click to hide internal directories.