Passed
Push — main ( ab25eb...943fab )
by Yume
57s
created

models.UserLogType.ToString   C

Complexity

Conditions 9

Size

Total Lines 19
Code Lines 18

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 9
eloc 18
nop 0
dl 0
loc 19
rs 6.6666
c 0
b 0
f 0
1
package models
2
3
import (
4
	"gorm.io/gorm"
5
)
6
7
// Mem structure
8
type UserLogs struct {
9
	gorm.Model
10
	UserID uint `json:"user_id" example:"1"`
11
	User   User
12
	LogID  uint `json:"log_id" example:"1"`
13
	Log    Logs
14
}
15