Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BachelorsTComment ¶
type BachelorsTComment struct { Id int `orm:"pk"` Num int Content string `orm:"size(1000)"` Thumb int Time string `orm:"size(40)"` }
func GetBachCommentById ¶
func GetBachCommentById(inputId int) ([]BachelorsTComment, int64, error)
type BachelorsTCourses ¶
type BachelorsTCourses struct { Id int `orm:"pk"` Num int Courses string `orm:"size(100)"` Scores string `orm:"size(40)"` }
func GetBachCourseById ¶
func GetBachCourseById(inputId int) ([]BachelorsTCourses, int64, error)
type BachelorsTInfo ¶
type BachelorsTInfo struct { Id int `orm:"pk"` College string `orm:"size(100)"` ScoreNum int TName string `orm:"size(100)"` AvrScore float32 }
BachelorsTInfo Model Struct 本科生教师信息表
func GetBachInfoById ¶
func GetBachInfoById(inputId int) ([]BachelorsTInfo, int64, error)
type MasterTComment ¶
type MasterTComment struct { Id int `orm:"pk"` Num int Content string `orm:"size(3000)"` Thumb int Time string `orm:"size(40)"` }
func GetMasterCommentById ¶
func GetMasterCommentById(inputId int) ([]MasterTComment, int64, error)
type MasterTInfo ¶
type MasterTInfo struct { Id int `orm:"pk"` Name string `orm:"size(40)"` College string `orm:"size(40)"` Researchs string `orm:"size(400)"` Email string `orm:"size(100)"` Content string `orm:"size(2000)"` Rate float32 Rate1 float32 Rate2 float32 Rate3 float32 Rate4 float32 }
MasterTInfo Model Struct 研究生教师信息表
func GetMasterInfoById ¶
func GetMasterInfoById(inputId int) ([]MasterTInfo, int64, error)
type ReturnBachelorsData ¶
type ReturnBachelorsData struct { Status int `json:"status"` Msg string `json:"msg"` Info []BachelorsTInfo `json:"obj"` Course []BachelorsTCourses `json:"course"` Comment []BachelorsTComment `json:"comment"` }
func GetBachelorsDetailById ¶
func GetBachelorsDetailById(inputId int) ReturnBachelorsData
GetBachelorsDetailById 查找具体内容
func GetBachelorsListByName ¶
func GetBachelorsListByName(inputName string) ReturnBachelorsData
GetBachelorsListByName 查找列表
func InsertCommentToBachelors ¶
func InsertCommentToBachelors(Id int, Score int, Comment string) ReturnBachelorsData
InsertCommentToBachelors 添加评论数据
func UpdateThumbForBachelors ¶
func UpdateThumbForBachelors(inputId int, num int, thumb int) ReturnBachelorsData
UpdateThumbForBachelors 修改,点赞功能
type ReturnMasterData ¶
type ReturnMasterData struct { Status int `json:"status"` Msg string `json:"msg"` Info []MasterTInfo `json:"info"` Comment []MasterTComment `json:"comment"` }
func GetMasterDetailById ¶
func GetMasterDetailById(inputId int) ReturnMasterData
GetMasterDetailById 查找具体内容
func GetMasterListByName ¶
func GetMasterListByName(inputName string) ReturnMasterData
GetMasterListByName 按姓名查找
func InsertCommentToMaster ¶
func InsertCommentToMaster(Id int, Score [4]int, Comment string) ReturnMasterData
GetMasterDetailById 添加评论数据
func UpdateThumbForMaster ¶
func UpdateThumbForMaster(inputId int, num int, thumb int) ReturnMasterData
UpdateThumbForMaster 点赞功能
Click to show internal directories.
Click to hide internal directories.