Documentation ¶
Index ¶
- Variables
- func CollectFormID(openID string, formID string) error
- func GetCollectionFormID(openID string) (string, error)
- type Admin
- type BlackUser
- type FormIDStruct
- type Group
- type GroupUser
- func (*GroupUser) Create(groupUser *GroupUser) error
- func (t *GroupUser) GetFormIds(openIds []string) []string
- func (t *GroupUser) GetUserJoinGroups(openID string) (*[]Group, error)
- func (t *GroupUser) GetUserOpenIDs(groupID int) ([]string, error)
- func (t *GroupUser) GetUsers(groupId int) ([]GroupUser, error)
- func (t *GroupUser) IsExist(openId string, groupId int) (bool, error)
- func (t *GroupUser) ListMyCreateGroup(openId string) ([]GroupUser, error)
- func (t *GroupUser) ListMyJoinGroup(openId string) ([]GroupUser, error)
- func (*GroupUser) TableName() string
- type Task
- func (t *Task) ChangeStatus(id int, status int) error
- func (t *Task) CountTask(openId string, status int) (int, error)
- func (*Task) Create(task *Task) error
- func (t *Task) GetTask(id int) (*Task, error)
- func (t *Task) ListTask(openId string, status int, title string) ([]Task, error)
- func (t *Task) SetRead(id int) error
- func (*Task) TableName() string
- func (t *Task) TaskDelete(id int) error
- func (t *Task) TaskList() (*[]Task, error)
- type TaskUser
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var MAdmin = &Admin{}
MAdmin 引用
View Source
var MBlackUser = &BlackUser{}
MBlackUser 引用
View Source
var MGroup = &Group{}
MGroup 引用
View Source
var MGroupUser = &GroupUser{}
MGroupUser 实体外部引用
View Source
var MTask = &Task{}
View Source
var MTaskUser = &TaskUser{}
View Source
var MUser = &User{}
MUser 引用
Functions ¶
Types ¶
type Admin ¶
type Admin struct { ID int `gorm:"column:id"` UserName string `gorm:"column:username"` Desc string `gorm:"column:desc"` Salt string `gorm:"column:salt"` Password string `gorm:"column:password"` IsDelete bool `gorm:"column:is_delete"` CreateTime time.Time `gorm:"column:create_time"` }
User 用户表
func (*Admin) AdminDelete ¶
type BlackUser ¶
type BlackUser struct { ID int `gorm:"column:id"` UserName string `gorm:"column:username"` Reason string `gorm:"column:reason"` OpenId string `gorm:"column:open_id"` IsDelete bool `gorm:"column:is_delete"` CreateTime time.Time `gorm:"column:create_time"` }
User 用户表
type FormIDStruct ¶
type Group ¶
type Group struct { ID int `gorm:"column:id;primary_key"` GroupName string `gorm:"column:group_name"` GroupDescribe string `gorm:"column:group_describe"` GroupMaster string `gorm:"column:group_master"` GroupCode string `gorm:"column:group_code"` CreateUser string `gorm:"column:create_user"` CreateTime time.Time `gorm:"column:create_time"` UpdateTime time.Time `gorm:"column:update_time"` IsDelete bool `gorm:"column:is_delete"` JoinMethod string `gorm:"column:join_method"` Question string `gorm:"column:question"` Answer string `gorm:"column:answer"` }
Group 组织表
func (*Group) GetGroupByID ¶
GetGroupByID 根据ID获取组织
func (*Group) GetUserCreateGroups ¶
GetGroupsByUserID 获取用户创建的组织
func (*Group) GroupDelete ¶
type GroupUser ¶
type GroupUser struct { ID int `gorm:"column:id;primary_key"` GroupID int `gorm:"group_id"` GroupName string `gorm:"group_name"` UserID string `gorm:"user_id"` //用户OpenID UserName string `gorm:"user_name"` //用户名 CreateTime time.Time `gorm:"column:create_time"` IsDelete bool `gorm:"column:is_delete"` IsCreate bool `gorm:"column:is_create"` }
GroupUser 组织用户关联实体
func (*GroupUser) GetFormIds ¶
func (*GroupUser) GetUserJoinGroups ¶
GetGroupsByUserOpenID 获取用户加入的群
func (*GroupUser) GetUserOpenIDs ¶
GetUserOpenIDs 获取某个群的所有群成员的OpenID
func (*GroupUser) ListMyCreateGroup ¶
func (*GroupUser) ListMyJoinGroup ¶
type Task ¶
type Task struct { ID int `gorm:"column:id;primary_key"` TaskTitle string `gorm:"column:task_title"` TaskContent string `gorm:"column:task_content"` TaskHTML string `gorm:"column:task_html"` AppointTo string `gorm:"column:appoint_to"` CreateUser string `gorm:"column:create_user"` GroupName string `gorm:"column:group_name"` GroupID int `gorm:"column:group_id"` Status int `gorm:"column:status"` Tips string `gorm:"column:tips"` IsDelete bool `gorm:"column:is_delete"` IsRead bool `gorm:"column:is_read"` IsRemind bool `gorm:"column:is_remind"` CompletionTime time.Time `gorm:"column:completion_time"` CreateTime time.Time `gorm:"column:create_time"` FileIds string `gorm:"column:fileIds"` }
func (*Task) TaskDelete ¶
type TaskUser ¶
type User ¶
type User struct { ID int `gorm:"column:id"` OpenID string `gorm:"column:openId"` Phone string `gorm:"column:phone"` Gender int `gorm:"column:gender"` Password string `gorm:"column:password"` NickName string `gorm:"colunm:nick_name"` RealName string `gorm:"column:real_name"` AvatarURL string `gorm:"column:avatar_url"` CreateTime time.Time `gorm:"column:create_time"` UpdateTime time.Time `gorm:"column:update_time"` }
User 用户表
func (*User) UpdateUserInfo ¶
func (*User) UserDelete ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.