Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActivityInfo ¶
type ActivityInfo struct { Id string `form:"id" json:"id" gorm:"primary_key;comment:id;"` Name string `form:"name" json:"name" gorm:"not null;type:varchar(1024);comment:活动名称"` Start string `form:"start" json:"start" gocp:"time"` End string `form:"end" json:"end" gocp:"time"` ResponsiblePerson string `form:"responsiblePerson" json:"responsiblePerson" gorm:"type:varchar(128);comment:负责人"` State uint8 `form:"state" json:"state" gorm:"not null;comment:状态"` TangentId string `form:"tangentId" json:"tangentId" gorm:"not null;type:varchar(32);comment:组织id"` }
type GetActivityParam ¶
type GetActivityParam struct { ActivityInfo PageQuery }
type Resp ¶
type Resp struct { Data any `json:"data"` Code int `json:"code"` Suc bool `json:"suc"` Msg string `json:"msg"` }
func CreateActivity ¶
func CreateActivity(params ActivityInfo) (*Resp, error)
func DeleteActivity ¶
func DeleteActivity(params ActivityInfo) (*Resp, error)
func GetActivity ¶
func GetActivity(params GetActivityParam) (*Resp, error)
func UpdateActivity ¶
func UpdateActivity(params ActivityInfo) (*Resp, error)
Click to show internal directories.
Click to hide internal directories.