You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.8 KiB

4 years ago
package role
const TopRule = `
3 years ago
1.
4 years ago
2.TA
3.使
4.使
5.使`
const FirstRule = `
3 years ago
1.
4 years ago
2.TA
3.使
4.使
5.使`
const SecondRule = `
3 years ago
1.
4 years ago
2.TA
3.使
4.使
5.使`
type queryRuleReq struct {
Level int8 `json:"level"`
}
//// 查询规则
//func QueryRule(c *gin.Context) {
// var p queryRuleReq
// err := tools.ParseParams(&p, c)
// if err != nil {
// back.Fail(c, err.Error())
// return
// }
//
// var note string
// switch p.Level {
// case user_role.TopLevel:
// note = TopRule
// case user_role.FirstLevel:
// note = FirstRule
// case user_role.SecondLevel:
// note = SecondRule
// default:
// note = "错误的参数"
// }
//
// back.Suc(c, "操作成功", &note)
// return
//}