Documentation ¶
Index ¶
- func AddAddressbook(data interface{}) error
- func AddContacter(data interface{}) error
- func AddDevCheckTask(ckTask *Devcheck) error
- func AddDevdept(data interface{}) error
- func AddDevinfo(dev *Devinfo) error
- func AddDevuser(data interface{}) error
- func AddMsgTag(msgID uint, ToID, FromID string) error
- func AddNetdiskDir(data interface{}) error
- func AddNetdiskFile(data interface{}) error
- func AddNote(data interface{}) error
- func AddOnduty(data interface{}) error
- func AddOpera()
- func AddProc(data interface{}) error
- func AddProcMod(data interface{}) error
- func AddProcNode()
- func AddProcType()
- func AddProcessBcms(data interface{}) error
- func AddProperty()
- func AddSendDevCkTasks(checkId uint, ckBz string)
- func AddSendMsg(data interface{}) error
- func AddState()
- func AddStudyAct(data interface{}) error
- func AddStudyActdetail(data interface{}) error
- func AddStudyGroup(data interface{}) error
- func AddStudyHlt(data interface{}) error
- func AddStudyMember(data interface{}) error
- func AddStudySignin(data interface{}) error
- func AddStudyTopic(data interface{}) error
- func AddType()
- func AddWorkrecord(data interface{}) error
- func AddYdksdata(data interface{}) error
- func AgreeChangeJgks(form OpForm, czr string) error
- func AgreeDevReback(form OpForm, czr string) error
- func CancelStudyHltStar(hltId uint, userid string) error
- func ChangeJgks(form OpForm, czr string) error
- func CheckSyrSelf(CheckID uint, DevinfoID, syr string) bool
- func CheckTable()
- func CleanUpDepartment() error
- func CleanUpUser() error
- func ConvSbbhToIdstr(sbbh uint) (idstr string)
- func CountDepartmentSyncNum(t string) (int, error)
- func CountStudyActHltStarsByStudyDm(actId, dm string) int
- func CountUserSyncNum(t string) (int, error)
- func CreateStudyHltStar(data interface{}) error
- func DelDevdeptGly(devd map[string]interface{}) error
- func DelDevinfo(id string) error
- func DelStudyAct(id string) error
- func DelStudyGroup(dm string) error
- func DelStudyGroupGly(devd map[string]interface{}) error
- func DelStudyHlt(id string) error
- func DelStudyMember(id uint) error
- func DelStudyTopic(id string) error
- func DeleteAddressbook(id uint, userID string) error
- func DeleteContacter(userid string, bookid uint) error
- func DeleteContacters(bookid uint) error
- func DeleteDepartment(deptId int) error
- func DeleteDevdept(jgdm string) error
- func DeleteDevuser(id uint) error
- func DeleteMsg(userid string, msg_id, tag uint) error
- func DeleteNetdiskDir(userid string, id int) error
- func DeleteNetdiskFile(id int) error
- func DeleteNote(id uint) error
- func DeleteProc(procid uint) error
- func DeleteUser(userid string) error
- func DepartmentSync(data interface{}) error
- func DevAllocate(form OpForm, syr, czr string) error
- func DevCheck(checkId uint, devinfoId string, ck interface{}) error
- func DevIssued(form OpForm, czr, czlx string) error
- func DevReback(form OpForm, syr, czr string) error
- func EditDevinfo(dev *Devinfo) error
- func EditDevinfoByAdmin(updMap map[string]interface{}) error
- func EditDevinfoCfwz(updMap map[string]interface{}) error
- func EditDevinfoPnum(id uint) error
- func ExecuSql(sql string) error
- func GenDevdeptDmBySjjgdm(sjjgdm string) (string, error)
- func GenGroupDmBySjjgdm(sjdm string) (string, error)
- func GenerateSbbh(lx, xlh string) string
- func GetCommonGly(srcJgdm, dstJgdm string) (gly string)
- func GetDevCheckTasksCnt(cond string) (cnt int)
- func GetNetdiskSpareCap(userid string) (int, error)
- func GetSjjgdm(jgdm string) (gljgdm string)
- func GetStudyActHltUsersByStudyDm(actId, dm string) []string
- func GetStudyActsCnt(share, status, tp, deadline string) (cnt int)
- func GetStudyHltsCnt(cond string) (cnt int)
- func GetStudyHltsCntByUserid(userid, status, flag string) (cnt int)
- func GetStudyTopicsCnt(rflag, share, status string) (cnt int)
- func GetWorkrecordSendCnt() (cnt int)
- func InitDb()
- func InsertNode(pns []*Procnode)
- func InsertOpera(devOpera []map[string]string)
- func InsertProcType(procType []map[string]string)
- func InsertProperty(devProperty []map[string]string)
- func InsertState(devState []map[string]string)
- func InsertType(devType []map[string]string)
- func IsChecked(CheckID uint, DevinfoID string) bool
- func IsDeptExist(deptId int, t string) bool
- func IsDevGyExist(jgksdm string) bool
- func IsDevXlhExist(xlh string) bool
- func IsDevdeptGylExist(jgdm string) bool
- func IsDevdeptUserExist(jgdm string) bool
- func IsDevtypeCorrect(dm string) bool
- func IsDevuserExist(jgdm, syr string) bool
- func IsDirContainFile(userid string, id int) bool
- func IsDirExist(userid string, id int) bool
- func IsHltStar(star *StudyHltStar) bool
- func IsJoinStrudyAct(actId uint, userid string) string
- func IsLeafDepartment(deptId int) bool
- func IsLeafDevdept(jgdm string) bool
- func IsLeafDevtype(dm string) bool
- func IsMemberExist(userid string) bool
- func IsNullStudyGroup(dm string) bool
- func IsParentDir(userid string, id int) bool
- func IsProcExist(data interface{}) (bool, uint, error)
- func IsProcManualDone(procid uint) bool
- func IsSameTitle(userid, title string) bool
- func IsSinin(signin *StudySignin) bool
- func IsSjjg(jgdm string) bool
- func IsStudyHltStar(hltId uint, userid string) bool
- func IsStudyMemberExist(dm, userid string) bool
- func IsStudySjjg(dm string) bool
- func IsUserDevBgr(userid string) bool
- func IsUserDevBgrByJgdm(userid, jgdm string) bool
- func IsUserDevExist(userid, jgdm string) bool
- func IsUserExist(userid string, t string) bool
- func ModNetdiskCap(userid string, cap int) error
- func QueryData(squery string) ([]map[string]string, error)
- func SaveUserdemo(userdemo interface{}) error
- func Setup()
- func UpdStudyAct(activity *StudyAct) error
- func UpdStudyActdetail(activity *StudyActdetail) error
- func UpdStudyGroup(devd *StudyGroup) error
- func UpdStudyHlt(hlt *StudyHlt) error
- func UpdStudyMember(u *StudyMember) error
- func UpdStudyTopic(topic *StudyTopic) error
- func UpdateAddressbook(book *MsgAddressbook) error
- func UpdateDevCkTaskFlag(id uint) error
- func UpdateDevdept(devd *Devdept) error
- func UpdateDevtodoFlag(id uint) error
- func UpdateDevuser(devu *Devuser) error
- func UpdateMsgFlag(msgID uint) error
- func UpdateNetdiskDir(netdisk *NetdiskTree) error
- func UpdateNetdiskFile(netdisk *Netdisk) error
- func UpdateNote(note *Note) error
- func UpdateNoteFlag(id uint) error
- func UpdateOndutyFlag(id uint) error
- func UpdateProc(proc *Process) error
- func UpdateProcMod(pm *Procmodify) error
- func UpdateProcessBcmsFlag(id uint) error
- func UpdateProcessFlag(ID uint) error
- func UpdateProcessModFlag(ID uint) error
- func UpdateWorkrecordFlag(id uint, upd map[string]interface{}) error
- func UserSync(user interface{}) error
- type Attachment
- type CountActResp
- type Department
- type Devcheck
- type Devckdetail
- type Devcktodd
- type DevdepUserInfo
- type Devdept
- func GetDevdept(jgdm string) (*Devdept, error)
- func GetDevdeptBySjjgdm(jgdm string) ([]*Devdept, error)
- func GetDevdeptsHasGly() ([]*Devdept, error)
- func GetDevdeptsHasGlyByUserid(gly string) ([]*Devdept, error)
- func GetGlyDepts(userid string) ([]*Devdept, error)
- func GetSyrDepts(userid string) ([]*Devdept, error)
- type DevdeptTree
- type Devinfo
- type DevinfoErr
- type DevinfoResp
- type Devmod
- type DevmodResp
- type Devmodetail
- type Devoperation
- type Devproperty
- type Devstate
- type Devtodo
- type DevtodoResp
- type Devtype
- type Devuser
- type Msg
- type MsgAddressbook
- type MsgContacter
- type MsgTag
- type Netdisk
- type NetdiskCap
- type NetdiskResp
- type NetdiskTree
- type Note
- type NoteResp
- type Onduty
- type OpForm
- type ProcResponse
- type Process
- type ProcessTag
- type Procmodify
- type Procnode
- type Proctype
- type ScopedSlots
- type StudyAct
- type StudyActdetail
- type StudyGroup
- type StudyGroupTree
- type StudyHlt
- type StudyHltStar
- type StudyMember
- type StudySignin
- type StudyTopic
- type Tree
- type User
- func GetFsdjUserByMc(mc string) ([]*User, error)
- func GetRecentContacter(userID string, pageSize int) ([]*User, error)
- func GetUserByDepartmentID(deptId string) ([]*User, error)
- func GetUserByMc(mc string) ([]*User, error)
- func GetUserByMobile(mobile string) (*User, error)
- func GetUserByUserid(userid string) (*User, error)
- type Userdemo
- type Ydksdata
- type Ydksworkrecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAddressbook ¶
func AddAddressbook(data interface{}) error
func AddContacter ¶
func AddContacter(data interface{}) error
func AddDevCheckTask ¶
func AddDevdept ¶
func AddDevdept(data interface{}) error
func AddDevuser ¶
func AddDevuser(data interface{}) error
func AddNetdiskDir ¶
func AddNetdiskDir(data interface{}) error
func AddNetdiskFile ¶
func AddNetdiskFile(data interface{}) error
func AddProcMod ¶
func AddProcMod(data interface{}) error
func AddProcNode ¶
func AddProcNode()
func AddProcType ¶
func AddProcType()
func AddProcessBcms ¶
func AddProcessBcms(data interface{}) error
func AddProperty ¶
func AddProperty()
func AddSendDevCkTasks ¶
func AddSendMsg ¶
func AddSendMsg(data interface{}) error
func AddStudyAct ¶
func AddStudyAct(data interface{}) error
func AddStudyActdetail ¶
func AddStudyActdetail(data interface{}) error
func AddStudyGroup ¶
func AddStudyGroup(data interface{}) error
func AddStudyHlt ¶
func AddStudyHlt(data interface{}) error
func AddStudyMember ¶
func AddStudyMember(data interface{}) error
func AddStudySignin ¶
func AddStudySignin(data interface{}) error
func AddStudyTopic ¶
func AddStudyTopic(data interface{}) error
func AddWorkrecord ¶
func AddWorkrecord(data interface{}) error
func AddYdksdata ¶
func AddYdksdata(data interface{}) error
func CancelStudyHltStar ¶
func CheckSyrSelf ¶
func CheckTable ¶
func CheckTable()
func CleanUpDepartment ¶
func CleanUpDepartment() error
func CleanUpUser ¶
func CleanUpUser() error
func ConvSbbhToIdstr ¶
func CountDepartmentSyncNum ¶
func CountStudyActHltStarsByStudyDm ¶
根据活动id和小组代码获取点赞风采的总数
func CountUserSyncNum ¶
func CreateStudyHltStar ¶
func CreateStudyHltStar(data interface{}) error
func DelDevdeptGly ¶
func DelDevinfo ¶
func DelStudyAct ¶
func DelStudyGroup ¶
func DelStudyGroupGly ¶
func DelStudyHlt ¶
func DelStudyMember ¶
func DelStudyTopic ¶
func DeleteAddressbook ¶
func DeleteContacter ¶
func DeleteContacters ¶
func DeleteDepartment ¶
func DeleteDevdept ¶
func DeleteDevuser ¶
func DeleteNetdiskDir ¶
func DeleteNetdiskFile ¶
func DeleteNote ¶
func DeleteProc ¶
func DeleteUser ¶
func DepartmentSync ¶
func DepartmentSync(data interface{}) error
func EditDevinfo ¶
func EditDevinfoCfwz ¶
func EditDevinfoPnum ¶
func GenDevdeptDmBySjjgdm ¶
func GetDevCheckTasksCnt ¶
func GetNetdiskSpareCap ¶
func GetStudyActHltUsersByStudyDm ¶
根据活动id和小组代码获取发布风采的人员名单
func GetStudyActsCnt ¶
func GetStudyHltsCnt ¶
func GetStudyHltsCntByUserid ¶
func GetStudyTopicsCnt ¶
func GetWorkrecordSendCnt ¶
func GetWorkrecordSendCnt() (cnt int)
func InsertNode ¶
func InsertNode(pns []*Procnode)
func InsertOpera ¶
func InsertProcType ¶
func InsertProperty ¶
func InsertState ¶
func InsertType ¶
func IsDeptExist ¶
func IsDevdeptGylExist ¶
func IsDevdeptUserExist ¶
func IsDevtypeCorrect ¶
func IsDevuserExist ¶
func IsDirContainFile ¶
func IsDirExist ¶
func IsHltStar ¶
func IsHltStar(star *StudyHltStar) bool
func IsJoinStrudyAct ¶
func IsLeafDepartment ¶
func IsLeafDevdept ¶
func IsLeafDevtype ¶
func IsMemberExist ¶
func IsNullStudyGroup ¶
func IsParentDir ¶
func IsProcExist ¶
func IsProcManualDone ¶
func IsSameTitle ¶
func IsSinin ¶
func IsSinin(signin *StudySignin) bool
func IsStudyHltStar ¶
func IsStudyMemberExist ¶
func IsStudySjjg ¶
func IsUserDevBgr ¶
func IsUserDevBgrByJgdm ¶
func IsUserDevExist ¶
func IsUserExist ¶
func ModNetdiskCap ¶
func SaveUserdemo ¶
func SaveUserdemo(userdemo interface{}) error
func UpdStudyAct ¶
func UpdStudyActdetail ¶
func UpdStudyActdetail(activity *StudyActdetail) error
func UpdStudyGroup ¶
func UpdStudyGroup(devd *StudyGroup) error
func UpdStudyHlt ¶
func UpdStudyMember ¶
func UpdStudyMember(u *StudyMember) error
func UpdStudyTopic ¶
func UpdStudyTopic(topic *StudyTopic) error
func UpdateAddressbook ¶
func UpdateAddressbook(book *MsgAddressbook) error
func UpdateDevCkTaskFlag ¶
func UpdateDevdept ¶
func UpdateDevtodoFlag ¶
func UpdateDevuser ¶
func UpdateMsgFlag ¶
func UpdateNetdiskDir ¶
func UpdateNetdiskDir(netdisk *NetdiskTree) error
func UpdateNetdiskFile ¶
func UpdateNote ¶
func UpdateNoteFlag ¶
func UpdateOndutyFlag ¶
func UpdateProc ¶
func UpdateProcMod ¶
func UpdateProcMod(pm *Procmodify) error
func UpdateProcessBcmsFlag ¶
func UpdateProcessFlag ¶
func UpdateProcessModFlag ¶
func UpdateWorkrecordFlag ¶
Types ¶
type Attachment ¶
type Attachment struct { ID uint `gorm:"primary_key;COMMENT:'文件标识';size:11;AUTO_INCREMENT"` MsgID uint `json:"msg_id" gorm:"COMMENT:'消息标识';size:11"` FileName string `json:"file_name" gorm:"COMMENT:'文件原始名'"` FileUrl string `json:"file_url" gorm:"COMMENT:'文件真实路径'"` FileSize int `json:"file_size" gorm:"COMMENT:'文件大小';size:20"` FileType string `json:"file_type" gorm:"COMMENT:'文件类型'"` Time string `json:"time" gorm:"COMMENT:'插入时间'"` }
附件
type CountActResp ¶
type CountActResp struct { ActID uint `json:"act_id"` Title string `json:"title"` Userid string `json:"userid"` Name string `json:"name"` Mobile string `json:"mobile"` Dm string `json:"dm"` Mc string `json:"mc"` }
func CountStudyAct ¶
func CountStudyAct(actId, dm string) ([]*CountActResp, error)
type Department ¶
type Department struct { ID int `gorm:"primary_key;COMMENT:'部门id'"` Name string `json:"name" gorm:"COMMENT:'部门名称'"` Parentid int `json:"parentid" gorm:"COMMENT:'父部门id,根部门为1'"` OuterDept bool `` /* 157-byte string literal not displayed */ SyncTime string `json:"sync_time" gorm:"COMMENT:'同步时间'"` }
func GetDepartmentByID ¶
func GetDepartmentByID(id int) (*Department, error)
func GetDepartmentByParentID ¶
func GetDepartmentByParentID(ParentID int) ([]*Department, error)
type Devcheck ¶
type Devcheck struct { ID uint `gorm:"primary_key;AUTO_INCREMENT;COMMENT:'盘点任务编码'"` Beg string `json:"beg" gorm:"COMMENT:'时间起'"` End string `json:"end" gorm:"COMMENT:'时间止'"` Fqr string `json:"fqr" gorm:"COMMENT:'发起人代码'"` Sbdl int `json:"sbdl" gorm:"default:1;COMMENT:'设备大类,1计算机类设备 2非计算类设备'"` Ckself string `json:"ckself" gorm:"COMMENT:'是否自我盘点(Y,N)'"` }
type Devckdetail ¶
type Devckdetail struct { ID uint `gorm:"primary_key;AUTO_INCREMENT"` CheckID uint `json:"check_id" gorm:"COMMENT:'盘点任务编码'"` Cktime string `json:"cktime" gorm:"COMMENT:'盘点时间'"` Pdr string `json:"pdr" gorm:"COMMENT:'盘点人代码'"` CkBz int `json:"ck_bz" gorm:"COMMENT:'0: 未盘点 1: 已盘点';size:1;default:'0'"` Sbbh string `json:"sbbh" gorm:"COMMENT:'6位设备编号'"` DevinfoID string `json:"devinfo_id" gorm:"COMMENT:'设备编号'"` Zcbh string `json:"zcbh" gorm:"COMMENT:'资产编号'"` Lx string `json:"lx" gorm:"COMMENT:'设备类型'"` Mc string `json:"mc" gorm:"COMMENT:'设备名称'"` Xh string `json:"xh" gorm:"COMMENT:'设备型号'"` Xlh string `json:"xlh" gorm:"COMMENT:'序列号'"` Ly string `json:"ly" gorm:"COMMENT:'设备来源'"` Gys string `json:"gys" gorm:"COMMENT:'供应商'"` Jg string `json:"jg" gorm:"COMMENT:'价格'"` Scs string `json:"scs" gorm:"COMMENT:'生产商'"` Scrq string `json:"scrq" gorm:"COMMENT:'生产日期'"` Grrq string `json:"grrq" gorm:"COMMENT:'购入日期'"` Bfnx string `json:"bfnx" gorm:"COMMENT:'设备报废年限'"` Rkrq string `json:"rkrq" gorm:"COMMENT:'入库日期'"` Czr string `json:"czr" gorm:"COMMENT:'操作人'"` Czrq string `json:"czrq" gorm:"COMMENT:'操作日期'"` Zt string `json:"zt" gorm:"COMMENT:'设备状态'"` Jgdm string `json:"jgdm" gorm:"COMMENT:'设备管理机构代码'"` Syr string `json:"syr" gorm:"COMMENT:'设备使用人代码'"` SyrJgdm string `json:"syr_jgdm" gorm:"COMMENT:'使用人员所在设备管理机构代码'"` Cfwz string `json:"cfwz" gorm:"COMMENT:'存放位置'"` Sx string `json:"sx" gorm:"COMMENT:'设备属性'"` Bgr string `json:"bgr" gorm:"_"` }
func GetDevckdetails ¶
func GetDevckdetails(checkId, ckBz, syr, jgdm string) ([]*Devckdetail, error)
type Devcktodd ¶
type Devcktodd struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` Jsr string `json:"jsr" gorm:"COMMENT:'消息接收人'"` DevcheckID uint `json:"devcheck_id" gorm:"COMMENT:'盘点任务编码'"` Devcheck Devcheck FlagNotice int `json:"flag_notice" gorm:"COMMENT:'0: 未推送 1: 已推送';size:1;default:'0'"` }
推送钉钉盘点任务
func GetDevCkTaskFlag ¶
type DevdepUserInfo ¶
type Devdept ¶
type Devdept struct { ID uint `gorm:"primary_key"` Jgdm string `json:"jgdm" gorm:"COMMENT:'设备管理机构代码'"` Jgmc string `json:"jgmc" gorm:"COMMENT:'设备管理机构名称'"` Sjjgdm string `json:"sjjgdm" gorm:"COMMENT:'上级设备管理机构代码'"` Gly string `json:"gly" gorm:"COMMENT:'设备管理员代码'"` Gly2 string `json:"gly2" gorm:"COMMENT:'设备管理员(非计算机类)代码'"` Bgr string `json:"bgr" gorm:"COMMENT:'设备保管人代码'"` Lrr string `json:"lrr" gorm:"COMMENT:'录入人代码'"` Lrrq string `json:"lrrq" gorm:"COMMENT:'录入日期'"` Xgr string `json:"xgr" gorm:"COMMENT:'修改人代码'"` Xgrq string `json:"xgrq" gorm:"COMMENT:'修改日期'"` }
func GetDevdept ¶
func GetDevdeptBySjjgdm ¶
func GetDevdeptsHasGly ¶
func GetGlyDepts ¶
func GetSyrDepts ¶
type DevdeptTree ¶
type DevdeptTree struct { Jgdm string `json:"jgdm"` Jgmc string `json:"jgmc"` Sjjgdm string `json:"sjjgdm"` Gly string `json:"gly"` Disabled bool `json:"disabled"` ScopedSlots `json:"scopedSlots"` Children []*DevdeptTree `json:"children"` }
type Devinfo ¶
type Devinfo struct { Sbbh uint `json:"sbbh" gorm:"primary_key;AUTO_INCREMENT;COMMENT:'根据主键id生成6位设备编号'"` ID string `json:"ID" gorm:"COMMENT:'设备编号'"` Zcbh string `json:"zcbh" gorm:"COMMENT:'资产编号'"` Lx string `json:"lx" gorm:"COMMENT:'设备类型'"` Mc string `json:"mc" gorm:"COMMENT:'设备名称'"` Xh string `json:"xh" gorm:"COMMENT:'设备型号'"` Xlh string `json:"xlh" gorm:"COMMENT:'序列号'"` Ly string `json:"ly" gorm:"COMMENT:'设备来源'"` Gys string `json:"gys" gorm:"COMMENT:'供应商'"` Jg string `json:"jg" gorm:"COMMENT:'价格'"` Scs string `json:"scs" gorm:"COMMENT:'生产商'"` Scrq string `json:"scrq" gorm:"COMMENT:'生产日期'"` Grrq string `json:"grrq" gorm:"COMMENT:'购入日期'"` Bfnx string `json:"bfnx" gorm:"COMMENT:'设备报废年限'"` QrUrl string `json:"qrurl" gorm:"COMMENT:'二维码URL';column:qrurl"` Rkrq string `json:"rkrq" gorm:"COMMENT:'入库日期'"` Czr string `json:"czr" gorm:"COMMENT:'操作人'"` Czrq string `json:"czrq" gorm:"COMMENT:'操作日期'"` Zt string `json:"zt" gorm:"COMMENT:'设备状态'"` Jgdm string `json:"jgdm" gorm:"COMMENT:'设备管理机构代码'"` Jgksdm string `json:"jgksdm" gorm:"COMMENT:'设备所属机构代码'"` Syr string `json:"syr" gorm:"COMMENT:'设备使用人代码'"` Cfwz string `json:"cfwz" gorm:"COMMENT:'存放位置'"` Sx string `json:"sx" gorm:"COMMENT:'设备属性'"` Pnum int `json:"pnum" gorm:"default:0;COMMENT:'二维码打印次数'"` Img string `json:"img" gorm:"COMMENT:'设备照片URL'"` Sbdl int `json:"sbdl" gorm:"default:1;COMMENT:'设备大类,1计算机类设备 2非计算类设备'"` Zw int `json:"zw" gorm:"default:1;COMMENT:'账外标志,1为账内 2为账外'"` }
new devinfo info
func GetDevinfoByID ¶
func GetDevinfoBySbbh ¶
func GetDevinfosByJgdm ¶
func GetDevinfosToBeStored ¶
type DevinfoErr ¶
批量导入
func ImpDevinfos ¶
func InsertDevinfoXml ¶
func InsertDevinfoXmlGoroutine ¶
func InsertDevinfoXmlGoroutine(devs []*Devinfo, czr string) ([]*DevinfoErr, int, int)
多协程插入
type DevinfoResp ¶
type DevinfoResp struct { *Devinfo Bgr string `json:"bgr"` Jgmc string `json:"jgmc"` Ksmc string `json:"ksmc"` SyrName string `json:"syr_name"` SyrMobile string `json:"syr_mobile"` Idstr string `json:"idstr"` //6位短编号 }
func GetDevinfoRespByID ¶
func GetDevinfoRespByID(id string) (*DevinfoResp, error)
func GetDevinfos ¶
func GetDevinfosGly ¶
func GetDevinfosGly(con map[string]string) ([]*DevinfoResp, error)
type Devmod ¶
type Devmod struct { ID uint `gorm:"primary_key;AUTO_INCREMENT"` Lsh string `json:"lsh" gorm:"COMMENT:'流水号'"` PreLsh string `json:"pre_lsh" gorm:"COMMENT:'前置流水号'"` Czlx string `json:"czlx" gorm:"COMMENT:'操作类型'"` Czrq string `json:"czrq" gorm:"COMMENT:'操作日期'"` Num int `json:"num" gorm:"COMMENT:'设备数'"` Czr string `json:"czr" gorm:"COMMENT:'操作人'"` Jgdm string `json:"jgdm" gorm:"COMMENT:'设备管理机构代码'"` }
func GetDevMods ¶
type DevmodResp ¶
type DevmodResp struct { *Devmodetail Idstr string `json:"idstr"` //6位短编号 Sbbh uint `json:"sbbh"` //主键 Mc string `json:"mc"` Zt string `json:"zt"` Rkrq string `json:"rkrq"` Ly string `json:"ly"` Czr string `json:"czr"` Jgdm string `json:"jgdm"` Jgmc string `json:"jgmc"` }
func GetDevModetails ¶
func GetDevModetails(lsh string, pageNo, pageSize int) ([]*DevmodResp, error)
func GetDevModsByDevid ¶
func GetDevModsByDevid(devid string) ([]*DevmodResp, error)
type Devmodetail ¶
type Devmodetail struct { ID uint `gorm:"primary_key;AUTO_INCREMENT"` Lsh string `json:"lsh" gorm:"COMMENT:'流水号'"` Czlx string `json:"czlx" gorm:"COMMENT:'操作类型'"` Czrq string `json:"czrq" gorm:"COMMENT:'操作日期'"` Lx string `json:"lx" gorm:"COMMENT:'设备类型'"` DevID string `json:"devid" gorm:"COMMENT:'设备编号';column:devid"` //devinfo ID Zcbh string `json:"zcbh" gorm:"COMMENT:'资产编号'"` Syr string `json:"syr" gorm:"COMMENT:'设备使用人代码'"` Bz string `json:"bz" gorm:"COMMENT:'备注'"` }
type Devoperation ¶
type Devoperation struct { ID uint `gorm:"primary_key"` Dm string `json:"dm" gorm:"COMMENT:'操作类型代码'"` Mc string `json:"mc" gorm:"COMMENT:'操作类型'"` }
func GetDevOp ¶
func GetDevOp() ([]*Devoperation, error)
代码 名称 1 设备入库 2 设备出库 3 分配共用 4 分配专有 5 借出共用 6 借出专有 7 设备收回 8 设备交回 --- 人->库 9 设备报废 10 设备上交 --- 库->库 11 机构变更 12 设备初始化 13 管理员变更
type Devproperty ¶
type Devproperty struct { ID uint `gorm:"primary_key"` Dm string `json:"dm" gorm:"COMMENT:'设备属性代码'"` Mc string `json:"mc" gorm:"COMMENT:'设备属性'"` }
func GetDevproperty ¶
func GetDevproperty() ([]*Devproperty, error)
func GetDevpropertyByDm ¶
func GetDevpropertyByDm(dm string) (*Devproperty, error)
type Devstate ¶
type Devstate struct { ID uint `gorm:"primary_key"` Dm string `json:"dm" gorm:"COMMENT:'设备状态代码'"` Mc string `json:"mc" gorm:"COMMENT:'设备状态'"` }
func GetDevstate ¶
func GetDevstateByDm ¶
type Devtodo ¶
type Devtodo struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` Czlx string `json:"czlx" gorm:"COMMENT:'操作类型'"` Lsh string `json:"lsh" gorm:"COMMENT:'流水号'"` Czr string `json:"czr" gorm:"COMMENT:'操作人'"` Czrq string `json:"czrq" gorm:"COMMENT:'操作日期'"` Jgdm string `json:"jgdm" gorm:"COMMENT:'设备管理机构代码'"` DstJgdm string `json:"dst_jgdm" gorm:"COMMENT:'更改后设备管理机构代码'"` SrcJgksdm string `json:"src_jgksdm" gorm:"COMMENT:'设备所属机构代码'"` DstJgksdm string `json:"dst_jgksdm" gorm:"COMMENT:'更改后设备所属机构代码'"` SrcCfwz string `json:"src_cfwz" gorm:"COMMENT:'存放位置'"` DstCfwz string `json:"dst_cfwz" gorm:"COMMENT:'更改后存放位置'"` Bz string `json:"bz" gorm:"COMMENT:'待办备注'"` DevID string `json:"devid" gorm:"COMMENT:'设备编号';column:devid"` //devinfo ID Done int `json:"done" gorm:"COMMENT:'0: 待办 1: 已办';size:1;default:'0'"` FlagNotice int `json:"flag_notice" gorm:"COMMENT:'0: 未推送 1: 已推送';size:1;default:'0'"` }
type DevtodoResp ¶
type DevtodoResp struct { Devtodo Czrid string `json:"czrid"` Gly string `json:"gly"` Bgr string `json:"bgr"` Zcbh string `json:"zcbh"` Mc string `json:"mc"` Zt string `json:"zt"` Num int `json:"num"` SrcJgdm string `json:"src_jgdm"` Jgmc string `json:"jgmc"` //调整前管理机构名称 DstJgmc string `json:"dst_jgmc"` //调整后管理机构名称 SrcKsmc string `json:"src_ksmc"` //调整前所属科室名称 DstKsmc string `json:"dst_ksmc"` //调整后所属科室名称 }
func GetDevFlag ¶
func GetDevFlag() ([]*DevtodoResp, error)
func GetDevTodosOrDones ¶
func GetDevTodosOrDones(done int) ([]DevtodoResp, error)
func GetDevTodosOrDonesByToid ¶
func GetDevTodosOrDonesByToid(id uint, done int) (*DevtodoResp, error)
func GetUpDevTodosOrDones ¶
func GetUpDevTodosOrDones(done int, userid string) ([]DevtodoResp, error)
type Devtype ¶
type Devtype struct { ID uint `gorm:"primary_key"` Dm string `json:"dm" gorm:"COMMENT:'设备类型代码'"` Sjdm string `json:"sjdm" gorm:"COMMENT:'上级设备类型代码'"` Mc string `json:"mc" gorm:"COMMENT:'设备类型'"` }
func GetDevtype ¶
func GetDevtypeByDm ¶
func GetDevtypeByMc ¶
func GetDevtypeBySjdm ¶
type Devuser ¶
type Devuser struct { ID uint `gorm:"primary_key"` Jgdm string `json:"jgdm" gorm:"COMMENT:'设备管理机构代码'"` Syr string `json:"syr" gorm:"COMMENT:'设备使用人代码'"` }
func GetDevuser ¶
type Msg ¶
type Msg struct { ID uint `gorm:"primary_key;COMMENT:'消息标识';size:11;AUTO_INCREMENT"` FromName string `json:"from_name" gorm:"COMMENT:'发件人名'"` FromID string `json:"from_id" gorm:"COMMENT:'发件人id'"` ToName string `json:"to_name" gorm:"COMMENT:'收件人名'"` ToID string `json:"to_id" gorm:"COMMENT:'收件人id'"` Title string `json:"title" gorm:"COMMENT:'消息标题'"` Content string `json:"content" gorm:"COMMENT:'消息内容';size:1000"` Time string `json:"time" gorm:"COMMENT:'发送时间'"` FlagNotice int `json:"flag_notice" gorm:"COMMENT:'0: 未推送 1: 已推送';size:1;default:'0'"` Attachments []Attachment }
消息
func GetMsgFlag ¶
type MsgAddressbook ¶
type MsgAddressbook struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` Name string `json:"name" gorm:"COMMENT:'通讯组名称'"` UserID string `json:"userid" gorm:"column:userid;COMMENT:'通讯组所属人标识'"` }
func GetAddressbooks ¶
func GetAddressbooks(userID string) ([]*MsgAddressbook, error)
type MsgContacter ¶
type MsgContacter struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` BookeID uint `json:"bookid" gorm:"column:bookid;COMMENT:'通讯组ID'"` UserID string `json:"userid" gorm:"column:userid;COMMENT:'联系人标识'"` DeptName string `json:"deptname" gorm:"column:deptname;COMMENT:'联系人所属部门名称'"` }
func GetContacters ¶
func GetContacters(bookid uint) ([]*MsgContacter, error)
type MsgTag ¶
type MsgTag struct { ID uint `gorm:"primary_key;AUTO_INCREMENT"` Tag uint `json:"tag" gorm:"COMMENT:'0:已删除 1: 收件箱 2: 发件箱 3: 草稿箱';type:varchar(255);type:int(11);default:'1'"` MsgID uint `json:"msg_id" gorm:"COMMENT:'消息标识';type:int(11)"` OwnerID string `json:"owner_id" gorm:"type:varchar(100)"` FlagRead uint `json:"flag_read" gorm:"COMMENT:'0: 未读 1: 已读';type:int(1);default:'0'"` }
消息标签
type Netdisk ¶
type Netdisk struct { ID int `gorm:"primary_key;size:11;AUTO_INCREMENT"` UserID string `json:"userid" gorm:"column:userid;COMMENT:'用户标识'"` TreeID int `json:"tree_id" gorm:"COMMENT:'文件夹id,回收站0,网盘>0'"` OrID int `json:"orid" gorm:"column:orid;default:'9999';COMMENT:'源文件夹id,存储回收站内文件源位置id'"` FileName string `json:"file_name" gorm:"COMMENT:'文件原始名'"` FileUrl string `json:"file_url" gorm:"COMMENT:'文件真实文件名'"` FileSize int `json:"file_size" gorm:"COMMENT:'文件大小'"` Xgrq string `json:"xgrq" gorm:"COMMENT:'修改时间'"` }
func GetNetdiskFileDetail ¶
func GetTrashFiles ¶
type NetdiskCap ¶
type NetdiskResp ¶
func GetNetdiskFileList ¶
func GetNetdiskFileList(userid string, treeid, pageNum, pageSize int) ([]*NetdiskResp, error)
type NetdiskTree ¶
type Note ¶
type Note struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` Title string `json:"title" gorm:"COMMENT:'标题'"` Content string `json:"content" gorm:"COMMENT:'内容';size:65535"` UserID string `json:"userid" gorm:"column:userid;COMMENT:'用户标识'"` Xgrq string `json:"xgrq" gorm:"COMMENT:'修改日期'"` FlagNotice int `json:"flag_notice" gorm:"COMMENT:'1: 未推送 2: 已推送';size:1;default:'2'"` }
func GetNoteFlag ¶
func SimilarTitle ¶
type NoteResp ¶
func GetNoteDetail ¶
type Onduty ¶
type Onduty struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` UserID string `json:"userid" gorm:"column:userid;COMMENT:'用户标识'"` Content string `json:"content" gorm:"COMMENT:'内容';size:65535"` Tsrq string `json:"tsrq" gorm:"COMMENT:'推送日期'"` FlagNotice int `json:"flag_notice" gorm:"COMMENT:'1: 未推送 2: 已推送';size:1;default:'1'"` }
func GetOndutyFlag ¶
type OpForm ¶
type OpForm struct { Ids []string `json:"ids"` Dms []string `json:"dms"` //交回&批量收回 SrcJgdm string `json:"src_jgdm"` DstJgdm string `json:"dst_jgdm"` //分配,下发,上交 SrcJgksdm string `json:"src_jgksdm"` //调整前所属科室代码 DstJgksdm string `json:"dst_jgksdm"` //调整后所属科室代码 SrcCfwz string `json:"src_cfwz"` //调整前存放位置 DstCfwz string `json:"dst_cfwz"` //调整后存放位置 Lsh string `json:"lsh"` //上交时,用于修改devtodo表done Czr string `json:"czr"` //inner传递操作人mobile Syr string `json:"syr"` //inner传递使用人mobile CuserID string `json:"cuserid"` //epp传递操作人userid SuserID string `json:"suserid"` //epp传递使用人userid Cfwz string `json:"cfwz"` Czlx string `json:"czlx"` Agree string `json:"agree"` //Y:同意 N:不同意 }
type ProcResponse ¶
type ProcResponse struct { ID uint Dm string `json:"dm"` Dmmc string `json:"dmmc"` Tbr string `json:"tbr"` Mobile string `json:"mobile"` Devid string `json:"devid"` SyrName string `json:"syr_name"` Syr string `json:"syr"` //syr mobile Cfwz string `json:"cfwz"` Zp string `json:"zp"` Title string `json:"title"` Xq string `json:"xq"` Bcms string `json:"bcms"` Tbsj string `json:"tbsj"` Modifyid uint `json:"modifyid"` Node string `json:"node"` Czr string `json:"czr"` Zt string `json:"zt"` }
func GetProcDetail ¶
func GetProcDetail(procid uint) (*ProcResponse, error)
func GetProcDoneList ¶
func GetProcDoneList(czr string) ([]*ProcResponse, error)
func GetProcSaveList ¶
func GetProcSaveList(tbr string) ([]*ProcResponse, error)
func GetProcTodoList ¶
func GetProcTodoList(czr string) ([]*ProcResponse, error)
type Process ¶
type Process struct { ID uint `gorm:"primary_key;COMMENT:'流程实例ID'"` Dm string `json:"dm" gorm:"COMMENT:'提报类型代码'"` Tbr string `json:"tbr" gorm:"COMMENT:'提报人'"` Mobile string `json:"mobile" gorm:"COMMENT:'提报人员电话'"` DevID string `json:"devid" gorm:"COMMENT:'设备编号';column:devid"` Zp string `json:"zp" gorm:"COMMENT:'设备照片'"` SyrName string `json:"syr_name" gorm:"COMMENT:'使用人姓名'"` Syr string `json:"syr" gorm:"COMMENT:'使用人手机号'"` Cfwz string `json:"cfwz" gorm:"COMMENT:'存放位置'"` Title string `json:"title" gorm:"COMMENT:'提报事项'"` Xq string `json:"xq" gorm:"COMMENT:'详细描述'"` Bcms string `json:"bcms" gorm:"COMMENT:'补充描述'"` Tbsj string `json:"tbsj" gorm:"COMMENT:'提报日期'"` Zfbz string `json:"zfbz" gorm:"COMMENT:'作废标志,0:未作废,1:作废';default:'0'"` }
type ProcessTag ¶
type ProcessTag struct { ID uint `gorm:"primary_key;AUTO_INCREMENT"` ProcID uint `json:"proc_id" gorm:"COMMENT:'流程实例ID'"` FlagNotice int `json:"flag_notice" gorm:"COMMENT:'0: 未推送 1: 已推送';size:1;default:'0'"` }
func GetProcessBcmsFlag ¶
func GetProcessBcmsFlag() ([]*ProcessTag, error)
type Procmodify ¶
type Procmodify struct { ID uint `gorm:"primary_key;AUTO_INCREMENT"` ProcID uint `json:"procid" gorm:"COMMENT:'流程实例ID';column:procid"` Dm string `json:"dm" gorm:"COMMENT:'提报类型代码'"` Node string `json:"node" gorm:"COMMENT:'当前节点代码'"` Tsr string `json:"tsr" gorm:"COMMENT:'推送人'"` Czr string `json:"czr" gorm:"COMMENT:'操作人'"` Spyj string `json:"spyj" gorm:"COMMENT:'审批意见'"` Czrq string `json:"czrq" gorm:"COMMENT:'操作日期'"` FlagNotice int `json:"flag_notice" gorm:"COMMENT:'0: 未推送 1: 已推送';size:1;default:'0'"` }
func GetProcMod ¶
func GetProcMod(id uint) (*Procmodify, error)
func GetProcMods ¶
func GetProcMods(procid uint) ([]*Procmodify, error)
func GetProcessFlag ¶
func GetProcessFlag() ([]*Procmodify, error)
type Procnode ¶
type Procnode struct { ID uint `gorm:"primary_key"` Dm string `json:"dm" gorm:"COMMENT:'提报类型代码'"` Node string `json:"node" gorm:"COMMENT:'当前节点代码'"` Last string `json:"last" gorm:"COMMENT:'上一节点(0表示起始)'"` Next string `json:"next" gorm:"COMMENT:'下一节点(-1表示终结)'"` Rname string `json:"rname" gorm:"COMMENT:'节点人员代码集'"` Role string `json:"role" gorm:"COMMENT:'节点操作人员角色'"` Flag string `json:"flag" gorm:"COMMENT:'是否自动跳过(0不跳过,1跳过)';default:'0'"` }
type Proctype ¶
type ScopedSlots ¶
type ScopedSlots struct {
Title string `json:"title"`
}
type StudyAct ¶
type StudyAct struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` TopicImage string `json:"topic_image" gorm:"COMMENT:'主题图片'"` Title string `json:"title" gorm:"COMMENT:'活动主题'"` Content string `json:"content" gorm:"COMMENT:'活动内容';size:65535"` ImageUrl string `json:"image_url" gorm:"COMMENT:'活动图片真实路径';size:65535"` ImageUrls []string `json:"image_urls" gorm:"-"` //返回前台[]Url Fbrq string `json:"fbrq" gorm:"COMMENT:'发布日期'"` Xgrq string `json:"xgrq" gorm:"COMMENT:'修改日期'"` Deadline string `json:"deadline" gorm:"COMMENT:'活动期限'"` Status string `json:"status" gorm:"COMMENT:'状态,0:未审核 1:审核通过(发布) 2:撤销发布';default:'0'"` Type string `json:"type" gorm:"COMMENT:'状态,1:普通活动 2:学习笔记';default:'0'"` JoinNum int `json:"join_num" gorm:"-"` //参加人数 Joined bool `json:"joined" gorm:"-"` //参与标志 StudyActdetails []StudyActdetail StudyHlts []StudyHlt }
党建活动
func GetStudyAct ¶
type StudyActdetail ¶
type StudyActdetail struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` StudyActID uint `json:"study_act_id" gorm:"COMMENT:'活动id'"` UserID string `json:"userid" gorm:"column:userid;COMMENT:'用户标识'"` Bmrq string `json:"bmrq" gorm:"COMMENT:'报名日期'"` Status string `json:"status" gorm:"COMMENT:'状态,0:未审核 1:审核通过';default:'0'"` Sprq string `json:"sprq" gorm:"COMMENT:'审批日期'"` StudyAct StudyAct }
党建活动参与详情
func GetApproveStudyActs ¶
func GetApproveStudyActs(cond string) ([]*StudyActdetail, error)
func GetStudyActdetails ¶
func GetStudyActdetails(actId uint, status string) ([]*StudyActdetail, error)
type StudyGroup ¶
type StudyGroup struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` Dm string `json:"dm" gorm:"COMMENT:'学习小组代码'"` Mc string `json:"mc" gorm:"COMMENT:'学习小组名称'"` Sjdm string `json:"sjdm" gorm:"COMMENT:'上级学习小组代码'"` Gly string `json:"gly" gorm:"COMMENT:'管理员代码'"` Lrr string `json:"lrr" gorm:"COMMENT:'录入人代码'"` Lrrq string `json:"lrrq" gorm:"COMMENT:'录入日期'"` Xgr string `json:"xgr" gorm:"COMMENT:'修改人代码'"` Xgrq string `json:"xgrq" gorm:"COMMENT:'修改日期'"` }
func GetStudyGroup ¶
func GetStudyGroup(dm string) (*StudyGroup, error)
func GetStudyGroupBySjdm ¶
func GetStudyGroupBySjdm(dm string) ([]*StudyGroup, error)
type StudyGroupTree ¶
type StudyGroupTree struct { Dm string `json:"dm"` Mc string `json:"mc"` Sjdm string `json:"sjdm"` Gly string `json:"gly"` Disabled bool `json:"disabled"` ScopedSlots `json:"scopedSlots"` Children []*StudyGroupTree `json:"children"` }
type StudyHlt ¶
type StudyHlt struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` StudyActID uint `json:"act_id" gorm:"column:act_id;COMMENT:'活动id'"` UserID string `json:"userid" gorm:"column:userid;COMMENT:'用户标识'"` Title string `json:"title" gorm:"COMMENT:'风采主题'"` Content string `json:"content" gorm:"COMMENT:'风采内容';size:65535"` HltUrl string `json:"hlt_url" gorm:"COMMENT:'风采文件真实路径';size:65535"` HltUrls []string `json:"hlt_urls" gorm:"-"` //返回前台[]Url Fbrq string `json:"fbrq" gorm:"COMMENT:'发布日期'"` Xgrq string `json:"xgrq" gorm:"COMMENT:'修改日期'"` Flag string `json:"flag" gorm:"COMMENT:'0:图文 1:视频';default:'0'"` Status string `json:"status" gorm:"COMMENT:'状态,0:未审核 1:审核通过(发布) 2:撤销发布 3:审核驳回';default:'0'"` TypeStatus string `json:"type_status" gorm:"COMMENT:'自我推荐精选,0:未推选 1:自我推选 2:审核通过';default:'0'"` StarNum int `json:"star_num" gorm:"-"` //点赞数 Star bool `json:"star" gorm:"-"` //点赞标志,仅前台展示,不做数据库存储 Dm string `json:"dm" gorm:"-"` //发布人所在学习小组 StudyHltStars []StudyHltStar }
党员风采
func GetStudyHlt ¶
type StudyHltStar ¶
type StudyHltStar struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` StudyHltID uint `json:"study_hlt_id" gorm:"COMMENT:'党员风采id'"` UserID string `json:"userid" gorm:"column:userid;COMMENT:'用户标识'"` Stime string `json:"stime" form:"COMMENT:'点赞时间'"` }
党员风采点赞
type StudyMember ¶
type StudyMember struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` Dm string `json:"dm" gorm:"COMMENT:'学习小组代码'"` UserID string `json:"userid" gorm:"column:userid;COMMENT:'用户标识'"` }
func GetStudyMember ¶
func GetStudyMember(userid string) (*StudyMember, error)
func GetStudyMembers ¶
func GetStudyMembers(dm string) ([]*StudyMember, error)
type StudySignin ¶
type StudySignin struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` UserID string `json:"userid" gorm:"column:userid;COMMENT:'用户标识'"` Qdrq string `json:"qdrq" gorm:"COMMENT:'签到日期'"` }
党建每日签到
func GetSigninByUserid ¶
func GetSigninByUserid(userid string) ([]*StudySignin, error)
func GetSigninsByQdrq ¶
func GetSigninsByQdrq(qdrq string) ([]*StudySignin, error)
type StudyTopic ¶
type StudyTopic struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` TopicImage string `json:"topic_image" gorm:"COMMENT:'主题图片'"` Title string `json:"title" gorm:"COMMENT:'标题'"` Content string `json:"content" gorm:"COMMENT:'内容';size:65535"` ImageUrl string `json:"image_url" gorm:"COMMENT:'图片真实路径';size:65535"` ImageUrls []string `json:"image_urls" gorm:"-"` //返回前台[]Url Fbrq string `json:"fbrq" gorm:"COMMENT:'发布日期'"` Xgrq string `json:"xgrq" gorm:"COMMENT:'修改日期'"` Rflag string `json:"rflag" gorm:"COMMENT:'轮播标志,0:否 1:轮播';default:'0'"` Status string `json:"status" gorm:"COMMENT:'状态,0:未审核 1:审核通过(发布) 2:撤销发布';default:'0'"` }
党建图文
func GetStudyTopic ¶
func GetStudyTopic(id string) (*StudyTopic, error)
func GetStudyTopics ¶
func GetStudyTopics(rflag, share, status string, pageNo, pageSize int) ([]*StudyTopic, error)
type Tree ¶
type User ¶
type User struct { UserID string `json:"userid" gorm:"primary_key;column:userid;COMMENT:'用户标识'"` Name string `json:"name" gorm:"COMMENT:'名称'"` Department string `json:"deptId" gorm:"column:deptId;COMMENT:'部门id'"` Mobile string `json:"mobile" gorm:"COMMENT:'手机号'"` IsAdmin bool `json:"isAdmin" gorm:"column:IsAdmin;COMMENT:'是否是企业的管理员,true表示是,false表示不是'"` Active bool `json:"active" gorm:"COMMENT:'是否激活'"` Avatar string `json:"avatar" gorm:"COMMENT:'头像url'"` Remark string `json:"remark" gorm:"COMMENT:'备注'"` SyncTime string `json:"sync_time" gorm:"COMMENT:'同步时间'"` }
func GetFsdjUserByMc ¶
func GetUserByDepartmentID ¶
func GetUserByMc ¶
func GetUserByMobile ¶
func GetUserByUserid ¶
type Userdemo ¶
type Userdemo struct { UserID string `json:"userid" gorm:"primary_key;column:userid;COMMENT:'用户标识'"` Name string `json:"name" gorm:"COMMENT:'名称'"` Department string `json:"deptId" gorm:"column:deptId;COMMENT:'部门id'"` Mobile string `json:"mobile" gorm:"COMMENT:'手机号'"` IsAdmin bool `json:"isAdmin" gorm:"column:IsAdmin;COMMENT:'是否是企业的管理员,true表示是,false表示不是'"` Active bool `json:"active" gorm:"COMMENT:'是否激活'"` Avatar string `json:"avatar" gorm:"COMMENT:'头像url'"` Remark string `json:"remark" gorm:"COMMENT:'备注'"` SyncTime string `json:"sync_time" gorm:"COMMENT:'同步时间'"` }
用户信息参照表
func GetUserdemoByMobile ¶
func GetUserdemoByUserid ¶
type Ydksdata ¶
type Ydksdata struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` Lb string `json:"lb" gorm:"COMMENT:'业务类别'"` Data string `json:"data" gorm:"COMMENT:'json数据';size:65535"` Rq string `json:"rq" gorm:"COMMENT:'插入日期'"` }
func GetYdksdata ¶
type Ydksworkrecord ¶
type Ydksworkrecord struct { ID uint `gorm:"primary_key;size:11;AUTO_INCREMENT"` Lb string `json:"lb" gorm:"COMMENT:'业务类别'"` Req string `json:"req" gorm:"COMMENT:'钉钉推送请求json';size:65535"` Crrq string `json:"crrq" gorm:"COMMENT:'插入日期'"` Tsrq string `json:"tsrq" gorm:"COMMENT:'推送日期'"` FlagNotice string `json:"flag_notice" gorm:"COMMENT:'1: 未推送 2: 已推送';size:1;default:'1'"` UserID string `json:"userid" gorm:"column:userid;COMMENT:'用户标识'"` RecordID string `json:"record_id" gorm:"COMMENT:'待办事项唯一id'"` Result bool `json:"result" gorm:"更新待办结果:true表示更新成功,false表示更新失败'"` }
func GetWorkrecordFlag ¶
func GetWorkrecordFlag() ([]*Ydksworkrecord, error)
func GetYtstworkrecords ¶
func GetYtstworkrecords(flag, Cond, lbCond string) ([]*Ydksworkrecord, error)
Source Files ¶
- attachment.go
- department.go
- devcheck.go
- devckdetail.go
- devcktodd.go
- devdept.go
- devinfo.go
- devmod.go
- devmodetail.go
- devoperation.go
- devproperty .go
- devstate.go
- devtodo.go
- devtype.go
- devuser.go
- initdb.go
- models.go
- msg.go
- msgaddress.go
- msgcontacter.go
- msgtag.go
- netdisk.go
- netdiskcap.go
- netdisktree.go
- note.go
- onduty.go
- process.go
- processtag.go
- procmodify.go
- procnode.go
- proctype.go
- studyact.go
- studyactdetail.go
- studygroup.go
- studyhlt.go
- studyhltstar.go
- studymember.go
- studysignin.go
- studytopic.go
- user.go
- userdemo.go
- ydksdata.go
- ydksworkrecord.go
Click to show internal directories.
Click to hide internal directories.