示例#1
0
func New(functions *shared.Functions) (*Messages, error) {
	msgs := &Messages{
		data: functions.Database(),
	}
	err := msgs.init()
	if err != nil {
		return nil, err
	}
	return msgs, nil
}
示例#2
0
文件: images.go 项目: alankm/vorteil
func New(functions *shared.Functions) (*Images, error) {
	imgs := &Images{
		data: functions.Database(),
	}
	return imgs, nil
}
示例#3
0
func New(functions *shared.Functions) (*Privileges, error) {
	privs := &Privileges{
		data: functions.Database(),
	}
	return privs, nil
}