feat: 合并Gin_Vue
This commit is contained in:
15
src/modules/system/model/sys_user_post.go
Normal file
15
src/modules/system/model/sys_user_post.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package model
|
||||
|
||||
// SysUserPost 用户和岗位关联对象 sys_user_post
|
||||
type SysUserPost struct {
|
||||
UserID string `json:"userId"` // 用户ID
|
||||
PostID string `json:"postId"` // 岗位ID
|
||||
}
|
||||
|
||||
// NewSysUserPost 创建用户和岗位关联对象的构造函数
|
||||
func NewSysUserPost(userID string, postID string) SysUserPost {
|
||||
return SysUserPost{
|
||||
UserID: userID,
|
||||
PostID: postID,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user