示例#1
0
func NewErr(msg string) (err *ErrMsg) {
	return &ErrMsg{
		Id:         uuid.NewV4(),
		CreateTime: utils.Time(time.Now()),
		UpdateTime: utils.Time(time.Now()),
		Message:    msg,
	}
}
示例#2
0
//create time at Now
func (self *Server) crTime() {
	self.CreateTime = utils.Time(time.Now())
}
示例#3
0
//update time at Now
func (self *Server) upTime() {
	self.UpdateTime = utils.Time(time.Now())
}